public abstract class AbstractPOJOGenMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
basePackage
Base package.
|
protected String |
localEdm
Local file from which Edm information can be loaded.
|
protected Set<String> |
namespaces |
protected String |
outputDirectory
Generated files base root.
|
protected String |
serviceRootURL
OData service root URL.
|
protected static String |
TOOL_DIR |
protected AbstractUtility |
utility |
| Constructor and Description |
|---|
AbstractPOJOGenMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
createUtility(Edm edm,
EdmSchema schema,
String basePackage) |
void |
execute() |
protected abstract ODataClient |
getClient() |
protected abstract AbstractUtility |
getUtility() |
protected abstract String |
getVersion() |
protected File |
mkdir(String path) |
protected File |
mkPkgDir(String path) |
protected org.apache.velocity.VelocityContext |
newContext() |
protected void |
parseObj(File base,
boolean append,
String pkg,
String name,
String out,
Map<String,Object> objs) |
protected void |
parseObj(File base,
String pkg,
String name,
String out) |
protected void |
parseObj(File base,
String pkg,
String name,
String out,
Map<String,Object> objs) |
protected void |
writeFile(String name,
File path,
org.apache.velocity.VelocityContext ctx,
org.apache.velocity.Template template,
boolean append) |
@Parameter(property="outputDirectory",
required=true)
protected String outputDirectory
@Parameter(property="serviceRootURL",
required=false)
protected String serviceRootURL
@Parameter(property="localEdm",
required=false)
protected String localEdm
@Parameter(property="basePackage",
required=false)
protected String basePackage
protected static String TOOL_DIR
protected AbstractUtility utility
protected abstract String getVersion()
protected void writeFile(String name, File path, org.apache.velocity.VelocityContext ctx, org.apache.velocity.Template template, boolean append) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.velocity.VelocityContext newContext()
protected void parseObj(File base, String pkg, String name, String out) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void parseObj(File base, String pkg, String name, String out, Map<String,Object> objs) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void parseObj(File base, boolean append, String pkg, String name, String out, Map<String,Object> objs) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected abstract AbstractUtility getUtility()
protected abstract ODataClient getClient()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2013–2023 The Apache Software Foundation. All rights reserved.