Package com.sun.tools.jxc
Class ConfigReader
- java.lang.Object
-
- com.sun.tools.jxc.ConfigReader
-
public final class ConfigReader extends java.lang.Object
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 (bhakti.mehta@sun.com)
-
-
Constructor Summary
Constructors Constructor Description ConfigReader(javax.annotation.processing.ProcessingEnvironment env, java.util.Collection<? extends javax.lang.model.element.TypeElement> classes, java.io.File xmlFile, org.xml.sax.ErrorHandler errorHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Reference>
getClassesToBeIncluded()
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 patternsjavax.xml.bind.SchemaOutputResolver
getSchemaOutputResolver()
This returns the SchemaOutputResolver to generate the schemas
-
-
-
Constructor Detail
-
ConfigReader
public ConfigReader(javax.annotation.processing.ProcessingEnvironment env, java.util.Collection<? extends javax.lang.model.element.TypeElement> classes, java.io.File xmlFile, org.xml.sax.ErrorHandler errorHandler) throws org.xml.sax.SAXException, java.io.IOException
- Parameters:
classes
- The set of classes passed to the AnnotationProcessorxmlFile
- The configuration file.- Throws:
org.xml.sax.SAXException
- If this is thrown, the error has already been reported.java.io.IOException
- If any IO errors occur.
-
-
Method Detail
-
getClassesToBeIncluded
public java.util.Collection<Reference> getClassesToBeIncluded()
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
-
getSchemaOutputResolver
public javax.xml.bind.SchemaOutputResolver getSchemaOutputResolver()
This returns the SchemaOutputResolver to generate the schemas
-
-