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 apt
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 apt.
Constructor Summary |
ConfigReader(AnnotationProcessorEnvironment env,
java.util.Collection<? extends TypeDeclaration> classes,
java.io.File xmlFile,
org.xml.sax.ErrorHandler errorHandler)
|
Method Summary |
java.util.Collection<Reference> |
getClassesToBeIncluded()
This creates 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 |
javax.xml.bind.SchemaOutputResolver |
getSchemaOutputResolver()
This returns the SchemaOutputResolver to generate the schemas |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigReader
public ConfigReader(AnnotationProcessorEnvironment env,
java.util.Collection<? extends TypeDeclaration> 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.
getClassesToBeIncluded
public java.util.Collection<Reference> getClassesToBeIncluded()
- This creates 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