Top Description Fields Constructors Methods
com.sun.tools.jxc.ap

public Class SchemaGenerator

extends AbstractProcessor
Class Inheritance
Annotations
@SupportedAnnotationTypes:*
Imports
com.sun.tools.jxc.api.J2SJAXBModel, .JXC, .Reference, javax.annotation.processing.AbstractProcessor, .Processor, .RoundEnvironment, .SupportedAnnotationTypes, javax.lang.model.SourceVersion, javax.lang.model.element.Element, .ElementKind, .TypeElement, javax.lang.model.util.ElementFilter, javax.tools.Diagnostic, .StandardLocation, .FileObject, jakarta.xml.bind.SchemaOutputResolver, javax.xml.transform.Result, javax.xml.transform.stream.StreamResult, java.io.File, .FileOutputStream, .IOException, .OutputStream, java.util.ArrayList, .Collection, .Collections, .HashMap, .List, .Map, .Set

Processor that implements the schema generator command line tool.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private File
private final Map<String, File>
schemaLocations

User-specified schema locations, if any.

Inherited from javax.annotation.processing.AbstractProcessor:
processingEnv

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private void
filterClass(List<Reference>
list of found classes
result
,
Collection<? extends Element>
tree to be filtered
elements
)

Filter classes (note that enum is kind of class) from elements tree

public SourceVersion
public boolean
process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)

Implements abstract javax.annotation.processing.AbstractProcessor.process.

Implements javax.annotation.processing.Processor.process.

Processes a set of annotation interfaces on root elements originating from the prior round and returns whether or not these annotation interfaces are claimed by this processor.

public void
setEpisodeFile(File episodeFile)

Inherited from javax.annotation.processing.AbstractProcessor:
getCompletionsgetSupportedAnnotationTypesgetSupportedOptionsinitisInitialized

Field Detail

episodeFileback to summary
private File episodeFile
schemaLocationsback to summary
private final Map<String, File> schemaLocations

User-specified schema locations, if any.

Constructor Detail

SchemaGeneratorback to summary
public SchemaGenerator()
SchemaGeneratorback to summary
public SchemaGenerator(Map<String, File> m)

Method Detail

filterClassback to summary
private void filterClass(List<Reference> result, Collection<? extends Element> elements)

Filter classes (note that enum is kind of class) from elements tree

Parameters
result:List<Reference>

list of found classes

elements:Collection<? extends Element>

tree to be filtered

getSupportedSourceVersionback to summary
public SourceVersion getSupportedSourceVersion()

Overrides javax.annotation.processing.AbstractProcessor.getSupportedSourceVersion.

Implements javax.annotation.processing.Processor.getSupportedSourceVersion.

Doc from javax.annotation.processing.AbstractProcessor.getSupportedSourceVersion.

Returns the latest source version supported by this annotation processor.

Annotations
@Override
processback to summary
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)

Implements abstract javax.annotation.processing.AbstractProcessor.process.

Implements javax.annotation.processing.Processor.process.

Doc from javax.annotation.processing.AbstractProcessor.process.

Processes a set of annotation interfaces on root elements originating from the prior round and returns whether or not these annotation interfaces are claimed by this processor. If true is returned, the annotation interfaces are claimed and subsequent processors will not be asked to process them; if false is returned, the annotation interfaces are unclaimed and subsequent processors may be asked to process them. A processor may always return the same boolean value or may vary the result based on its own chosen criteria.

The input set will be empty if the processor supports "*" and the root elements have no annotations. A Processor must gracefully handle an empty set of annotations.

Annotations
@Override
@SuppressWarnings:unchecked
setEpisodeFileback to summary
public void setEpisodeFile(File episodeFile)