Package com.sun.tools.jxc
Class ConfigReader
java.lang.Object
com.sun.tools.jxc.ConfigReader
This reads the config files passed by the user to annotation processing
and obtains a list of classes that need to be included
for a particular config from the set of classes passed
by the user to annotation processing.
- Author:
- Bhakti Mehta ([email protected])
-
Constructor Summary
ConstructorDescriptionConfigReader
(ProcessingEnvironment env, Collection<? extends TypeElement> classes, File xmlFile, ErrorHandler errorHandler) -
Method Summary
Modifier and TypeMethodDescriptionReturn collection of classes to be included based on the configuration.This returns the SchemaOutputResolver to generate the schemas
-
Constructor Details
-
ConfigReader
public ConfigReader(ProcessingEnvironment env, Collection<? extends TypeElement> classes, File xmlFile, ErrorHandler errorHandler) throws SAXException, IOException - Parameters:
env
- The ProcessingEnvironmentclasses
- The set of classes passed to the AnnotationProcessorxmlFile
- The configuration file.errorHandler
- The error handler- Throws:
SAXException
- If this is thrown, the error has already been reported.IOException
- If any IO errors occur.
-
-
Method Details
-
getClassesToBeIncluded
Return collection of classes to be included based on the configuration.- Returns:
- to be included classes.
-
getSchemaOutputResolver
This returns the SchemaOutputResolver to generate the schemas- Returns:
- schema output resolver
-