Package org.apache.olingo.ext.pojogen
Class AbstractPOJOGenMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.olingo.ext.pojogen.AbstractPOJOGenMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
V4POJOGenMojo
public abstract class AbstractPOJOGenMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
Base package.protected String
Local file from which Edm information can be loaded.protected String
Generated files base root.protected String
OData service root URL.protected static String
protected AbstractUtility
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
createUtility
(org.apache.olingo.commons.api.edm.Edm edm, org.apache.olingo.commons.api.edm.EdmSchema schema, String basePackage) void
execute()
protected abstract org.apache.olingo.client.api.ODataClient
protected abstract AbstractUtility
protected abstract String
protected File
protected File
protected org.apache.velocity.VelocityContext
protected void
protected void
protected void
protected void
writeFile
(String name, File path, org.apache.velocity.VelocityContext ctx, org.apache.velocity.Template template, boolean append) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
outputDirectory
Generated files base root. -
serviceRootURL
OData service root URL. -
localEdm
Local file from which Edm information can be loaded. -
basePackage
Base package. -
namespaces
-
TOOL_DIR
-
utility
-
-
Constructor Details
-
AbstractPOJOGenMojo
public AbstractPOJOGenMojo()
-
-
Method Details
-
getVersion
-
mkdir
-
mkPkgDir
-
writeFile
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 - Throws:
org.apache.maven.plugin.MojoExecutionException
-
newContext
protected org.apache.velocity.VelocityContext newContext() -
parseObj
protected void parseObj(File base, String pkg, String name, String out) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
parseObj
protected void parseObj(File base, String pkg, String name, String out, Map<String, Object> objs) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
parseObj
protected void parseObj(File base, boolean append, String pkg, String name, String out, Map<String, Object> objs) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
createUtility
protected abstract void createUtility(org.apache.olingo.commons.api.edm.Edm edm, org.apache.olingo.commons.api.edm.EdmSchema schema, String basePackage) -
getUtility
-
getClient
protected abstract org.apache.olingo.client.api.ODataClient getClient() -
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-