| Modifier and Type | Class and Description |
|---|---|
| private static class | ConfigReader.
Controls where the JAXB RI puts the generates schema files. |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | classesToBeIncluded
The set of classes to be passed to XJC |
| private static SchemaCache | configSchema
Lazily parsed schema for the binding file. |
| private final ProcessingEnvironment | |
| private final SchemaOutputResolver | schemaOutputResolver
The SchemaOutputResolver used to generate the schemas |
| Access | Constructor and Description |
|---|---|
| public | ConfigReader(ProcessingEnvironment
The ProcessingEnvironment env, Collection<? extends TypeElement> The set of classes passed to the AnnotationProcessor classes, File The configuration file. xmlFile, ErrorHandler The error handler errorHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | checkAllClasses(Config config, Collection<? extends TypeElement> rootClasses)
This creates a regular expression for the user pattern , matches the input classes passed by the user and returns the final list of classes that need to be included for a config file after applying those patterns |
| private boolean | checkPatternMatch(String
The qualified name of the TypeDeclaration qualifiedName, Pattern The pattern obtained from the users input pattern)This will check if the qualified name matches the pattern |
| private SchemaOutputResolver | |
| public Collection | Returns: to be included classes.Return collection of classes to be included based on the configuration. |
| public SchemaOutputResolver | Returns: schema output resolverThis returns the SchemaOutputResolver to generate the schemas |
| private Config | Returns: A non null Config objectThe xml config file which is passed by the user to annotation processing xmlFile, ErrorHandler errorHandler, boolean disableSecureProcessing)Parses an xml config file and returns a Config object. |
| classesToBeIncluded | back to summary |
|---|---|
| private final Set<Reference> classesToBeIncluded The set of classes to be passed to XJC | |
| configSchema | back to summary |
|---|---|
| private static SchemaCache configSchema Lazily parsed schema for the binding file. | |
| env | back to summary |
|---|---|
| private final ProcessingEnvironment env | |
| schemaOutputResolver | back to summary |
|---|---|
| private final SchemaOutputResolver schemaOutputResolver The SchemaOutputResolver used to generate the schemas | |
| ConfigReader | back to summary |
|---|---|
public ConfigReader(ProcessingEnvironment env, Collection<? extends TypeElement> classes, File xmlFile, ErrorHandler errorHandler) throws SAXException, IOException
| |
| checkAllClasses | back to summary |
|---|---|
| private void checkAllClasses(Config config, Collection<? extends TypeElement> rootClasses) This creates a regular expression for the user pattern , matches the input classes passed by the user and returns the final list of classes that need to be included for a config file after applying those patterns | |
| checkPatternMatch | back to summary |
|---|---|
| private boolean checkPatternMatch(String qualifiedName, Pattern pattern) This will check if the qualified name matches the pattern | |
| createSchemaOutputResolver | back to summary |
|---|---|
| private SchemaOutputResolver createSchemaOutputResolver(Config config, String xmlpath) | |
| getClassesToBeIncluded | back to summary |
|---|---|
| public Collection Return collection of classes to be included based on the configuration.
| |
| getSchemaOutputResolver | back to summary |
|---|---|
| public SchemaOutputResolver getSchemaOutputResolver() This returns the SchemaOutputResolver to generate the schemas
| |
| parseAndGetConfig | back to summary |
|---|---|
| private Config parseAndGetConfig(File xmlFile, ErrorHandler errorHandler, boolean disableSecureProcessing) throws SAXException, IOException Parses an xml config file and returns a Config object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final File | baseDir
Directory to which we put the rest of the files. |
| private final Map | schemas
Namespace URI to the location of the schema. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Result | createOutput(String namespaceUri, String suggestedFileName)
Implements abstract jakarta. Decides where the schema file (of the given namespace URI)
will be written, and return it as a |
| baseDir | back to summary |
|---|---|
| private final File baseDir Directory to which we put the rest of the files. Never be null. | |
| schemas | back to summary |
|---|---|
| private final Map<String, File> schemas Namespace URI to the location of the schema. This captures what the user specifies. | |
| SchemaOutputResolverImpl | back to summary |
|---|---|
| public SchemaOutputResolverImpl(File baseDir) | |
| addSchemaInfo | back to summary |
|---|---|
| public void addSchemaInfo(String namespaceUri, File location) | |
| createOutput | back to summary |
|---|---|
| public Result createOutput(String namespaceUri, String suggestedFileName) Implements abstract jakarta. Decides where the schema file (of the given namespace URI)
will be written, and return it as a
| |