| java.lang.Object org.geotools.maven.xmlcodegen.AbstractGenerator
All known Subclasses: org.geotools.maven.xmlcodegen.SchemaLocationResolverGenerator, org.geotools.maven.xmlcodegen.SchemaGenerator, org.geotools.maven.xmlcodegen.ConfigurationGenerator, org.geotools.maven.xmlcodegen.BindingGenerator,
AbstractGenerator | abstract public class AbstractGenerator (Code) | | Abstract base class for code generators.
author: Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org |
overwriting | boolean overwriting(Code) | | Flag determining if generator will overwrite existing files.
|
schemaLookupDirectories | File[] schemaLookupDirectories(Code) | | lookup directories for schemas
|
execute | protected String execute(String templateName, Object input) throws ClassNotFoundException, RuntimeException(Code) | | Executes a code generation template.
The class of the template is formed by prepending
org.geotools.xml.codegen. to name .
Parameters: templateName - The non-qualified class name of the template. Parameters: input - The input to the template. The result of the code generator throws: ClassNotFoundException - If the template class could not befound. throws: RuntimeException - If any exceptions ( ex, relection) occur.while attempting to execute the template. |
setLocation | public void setLocation(String location)(Code) | | Sets the location to write out generated java classes.
Parameters: location - A file path. |
setOverwriting | public void setOverwriting(boolean overwriting)(Code) | | Flag controlling the behaviour of the generator when a generated file
already exists.
If set to true , the generator will overwrite existing files.
if set to false , the generator will not overwrite the file
and issue a warning.
Parameters: overwriting - overwrite flag. |
setPackageBase | public void setPackageBase(String packageBase)(Code) | | Sets the base package for generated classes.
Parameters: packageBase - Dot seperate package name, or null forno package. |
setSchemaLookupDirectories | public void setSchemaLookupDirectories(File[] schemaLookupDirectories)(Code) | | Sets the directories to use when attempting to locate a schema via a
relative reference.
Parameters: schemaLookupDirectories - An array of directories. |
|
|