com.sun.tools.jxc

Class 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(AnnotationProcessorEnvironment env, Collection<? extends 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
SchemaOutputResolvergetSchemaOutputResolver()
This returns the SchemaOutputResolver to generate the schemas

Constructor Detail

ConfigReader

public ConfigReader(AnnotationProcessorEnvironment env, Collection<? extends TypeDeclaration> classes, File xmlFile, ErrorHandler errorHandler)

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