public abstract class BaseJibxProjectBuilder
extends org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo
| Modifier and Type | Field and Description |
|---|---|
static String |
STRING_ENCODING |
static String |
URL_ENCODING |
| Constructor and Description |
|---|
BaseJibxProjectBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Run
|
Object |
getBindingFromStream(Class<?> bindingClass,
InputStream inStream)
Read the template into the model.
|
String |
schemaLocationToPackage(String schemaLocation,
StringBuilder sbGroupId)
Calculate the groupId and artifactId.
|
String |
stringToPackageName(String packageName)
Make this string a valid package name.
|
boolean |
writeThisModel(Model message,
OutputStream out)
Write this model to this outstream.
|
void |
writeThisModel(String artifactId,
Model model)
Write this model using this project name.
|
getLog, getPluginContext, setLog, setPluginContextpublic static final String URL_ENCODING
public static final String STRING_ENCODING
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic String schemaLocationToPackage(String schemaLocation, StringBuilder sbGroupId)
schemaLocation - sbGroupId - public String stringToPackageName(String packageName)
packageName - public Object getBindingFromStream(Class<?> bindingClass, InputStream inStream)
public void writeThisModel(String artifactId, Model model)
artifactId - model - public boolean writeThisModel(Model message, OutputStream out)
message - out - Copyright © 2005-2014 jibx.org. All Rights Reserved.