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 StringBase package.protected StringLocal file from which Edm information can be loaded.protected StringGenerated files base root.protected StringOData service root URL.protected static Stringprotected AbstractUtilityFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcreateUtility(Edm edm, EdmSchema schema, String basePackage) voidexecute()protected abstract ODataClientprotected abstract AbstractUtilityprotected abstract Stringprotected Fileprotected Fileprotected org.apache.velocity.VelocityContextprotected voidprotected voidprotected voidprotected voidwriteFile(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
-
getUtility
-
getClient
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-