com.sun.tools.jxc
Class ConfigReader

java.lang.Object
  extended by com.sun.tools.jxc.ConfigReader

public final class ConfigReader
extends 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(com.sun.mirror.apt.AnnotationProcessorEnvironment env, Collection<? extends com.sun.mirror.declaration.TypeDeclaration> classes, File xmlFile, ErrorHandler errorHandler)
           
 
Method Summary
 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
 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
 

Constructor Detail

ConfigReader

public ConfigReader(com.sun.mirror.apt.AnnotationProcessorEnvironment env,
                    Collection<? extends com.sun.mirror.declaration.TypeDeclaration> classes,
                    File xmlFile,
                    ErrorHandler errorHandler)
             throws SAXException,
                    IOException
Parameters:
classes - The set of classes passed to the AnnotationProcessor
xmlFile - The configuration file.
Throws:
SAXException - If this is thrown, the error has already been reported.
IOException - If any IO errors occur.
Method Detail

getClassesToBeIncluded

public 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 SchemaOutputResolver getSchemaOutputResolver()
This returns the SchemaOutputResolver to generate the schemas