org.jibx.maven
Class AbstractCodeGenMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jibx.maven.AbstractJibxMojo
          extended by org.jibx.maven.AbstractCodeGenMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
SchemaCodeGenMojo, TestSchemaCodeGenMojo

public abstract class AbstractCodeGenMojo
extends AbstractJibxMojo

Generates Java sources from XSD schemas.

Author:
Jerome Bernard, Don Corley

Field Summary
 
Fields inherited from class org.jibx.maven.AbstractJibxMojo
project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractCodeGenMojo()
           
 
Method Summary
protected  void checkConfiguration()
          Verifies the plugins configuration and sets default values if needed.
 void execute()
          Determines if running in single- or multi-module mode, collects all bindings and finally runs the binding compiler.
protected  String getSchemaBindingDirectory()
          Get the binding files directory.
protected  String getSchemaLocation()
          Get the schema files directory.
 String getSingleModuleBindingPath(String basedir, String includeBinding)
          Get the binding path name for a single module binding.
 
Methods inherited from class org.jibx.maven.AbstractJibxMojo
addDependentArtifact, addDependentBinding, addManualDependentBinding, extractBaseBindingFile, fixFilePath, getBaseBindingDirectory, getBaseBindings, getFullPath, getIncludedFiles, getProjectBasedir, getProjectCompileClasspathElements
 
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
 

Constructor Detail

AbstractCodeGenMojo

public AbstractCodeGenMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Description copied from class: AbstractJibxMojo
Determines if running in single- or multi-module mode, collects all bindings and finally runs the binding compiler.

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Specified by:
execute in class AbstractJibxMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

getSingleModuleBindingPath

public String getSingleModuleBindingPath(String basedir,
                                         String includeBinding)
Get the binding path name for a single module binding.

Parameters:
basedir -
includeBinding -
Returns:

checkConfiguration

protected void checkConfiguration()
Verifies the plugins configuration and sets default values if needed. Note: Remember to call inherited methods first.

Overrides:
checkConfiguration in class AbstractJibxMojo

getSchemaLocation

protected String getSchemaLocation()
Get the schema files directory.

Returns:
The binding files directory.

getSchemaBindingDirectory

protected String getSchemaBindingDirectory()
Get the binding files directory.

Overrides:
getSchemaBindingDirectory in class AbstractJibxMojo
Returns:
The binding files directory.


Copyright © 2005-2011 jibx.org. All Rights Reserved.