org.jibx.maven
Class AbstractCodeGenMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jibx.maven.AbstractJibxMojo
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
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| 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 |
AbstractCodeGenMojo
public AbstractCodeGenMojo()
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.