org.geotools.maven.xmlcodegen
Class AbstractGeneratorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.geotools.maven.xmlcodegen.AbstractGeneratorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
BindingGeneratorMojo, SchemaGeneratorMojo

public abstract class AbstractGeneratorMojo
extends org.apache.maven.plugin.AbstractMojo

Generates the bindings and utility classes used to parse xml documents for a particular schema.

Author:
Justin Deoliveira, The Open Planning Project

Field Summary
protected  java.lang.String destinationPackage
          The destination package of the generated source files in the standard dot-seperated naming format.
protected  java.lang.String[] includes
          List of names of attributes, elements, and types to include, if unset all will be generated.
protected  java.io.File outputDirectory
          Directory to output generated files to.
protected  boolean overwriteExistingFiles
          Flag controlling wether files should overide files that already exist with the same name.
protected  java.io.File schemaLocation
          The .xsd file defining the schema to generate bindings for.
protected  java.io.File[] schemaLookupDirectories
          Additional directories used to locate included and imported schemas.
protected  java.io.File schemaSourceDirectory
          Directory containing xml schemas, default is ${basedir}/src/main/xsd.
protected  java.io.File sourceOutputDirectory
          Directory to output generated source files to.
protected  java.lang.String targetPrefix
          The prefix to use for the targetNamespace.
protected  java.io.File testOutputDirectory
          Directory to output generated test files to.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractGeneratorMojo()
           
 
Method Summary
protected  org.eclipse.xsd.XSDSchema schema()
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

schemaLocation

protected java.io.File schemaLocation
The .xsd file defining the schema to generate bindings for.


schemaSourceDirectory

protected java.io.File schemaSourceDirectory
Directory containing xml schemas, default is ${basedir}/src/main/xsd.


schemaLookupDirectories

protected java.io.File[] schemaLookupDirectories
Additional directories used to locate included and imported schemas.


destinationPackage

protected java.lang.String destinationPackage
The destination package of the generated source files in the standard dot-seperated naming format.


outputDirectory

protected java.io.File outputDirectory
Directory to output generated files to. Default is ${project.build.sourceDirectory}

Deprecated, use one of sourceOutputDirectory or testOutputDirectory


sourceOutputDirectory

protected java.io.File sourceOutputDirectory
Directory to output generated source files to. Default is ${project.build.sourceDirectory}


testOutputDirectory

protected java.io.File testOutputDirectory
Directory to output generated test files to. Default is ${project.build.testDirectory}


overwriteExistingFiles

protected boolean overwriteExistingFiles
Flag controlling wether files should overide files that already exist with the same name. False by default.


includes

protected java.lang.String[] includes
List of names of attributes, elements, and types to include, if unset all will be generated.


targetPrefix

protected java.lang.String targetPrefix
The prefix to use for the targetNamespace.

Constructor Detail

AbstractGeneratorMojo

public AbstractGeneratorMojo()
Method Detail

schema

protected org.eclipse.xsd.XSDSchema schema()


Copyright © 1996-2010 Geotools. All Rights Reserved.