Package org.bndly.schema.beans
Class SchemaBeanGeneratorMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.bndly.schema.beans.AbstractSchemaBasedBeanGeneratorMojo
-
- org.bndly.schema.beans.SchemaBeanGeneratorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate") public class SchemaBeanGeneratorMojo extends AbstractSchemaBasedBeanGeneratorMojo
Generates Schema Beans from a predefined Schema
-
-
Field Summary
-
Fields inherited from class org.bndly.schema.beans.AbstractSchemaBasedBeanGeneratorMojo
importStateHolder, schemaExtensions, schemaProviderClass, schemaRoot, targetFolder, targetPackage
-
-
Constructor Summary
Constructors Constructor Description SchemaBeanGeneratorMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidassertIsImported(org.bndly.code.model.CodeBlock importBlock, Class<?> typeToImport, ImportStateHolder importStateHolder)protected static voidassertIsImported(org.bndly.code.model.CodeBlock importBlock, String typeToImport, ImportStateHolder importStateHolder)protected voiddoCodeGenerationWithSchema(org.bndly.schema.model.Schema schema, org.bndly.code.common.CodeGenerationContext ctx, File targetPath)protected static StringgetJavaTypeNameForAttribute(org.bndly.schema.model.Attribute attribute, org.bndly.code.model.CodeBlock importBlock, ImportStateHolder importStateHolder)protected static StringgetJavaTypeNameForAttribute(org.bndly.schema.model.Attribute attribute, org.bndly.code.model.CodeBlock importBlock, ImportStateHolder importStateHolder, boolean importAttributeHolders)protected static StringupperCaseFirstLetter(String string)-
Methods inherited from class org.bndly.schema.beans.AbstractSchemaBasedBeanGeneratorMojo
execute, writeCodeToFile, writeCodeToFile, writeCodeToFile
-
-
-
-
Method Detail
-
doCodeGenerationWithSchema
protected void doCodeGenerationWithSchema(org.bndly.schema.model.Schema schema, org.bndly.code.common.CodeGenerationContext ctx, File targetPath) throws IOException, org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
doCodeGenerationWithSchemain classAbstractSchemaBasedBeanGeneratorMojo- Throws:
IOExceptionorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getJavaTypeNameForAttribute
protected static String getJavaTypeNameForAttribute(org.bndly.schema.model.Attribute attribute, org.bndly.code.model.CodeBlock importBlock, ImportStateHolder importStateHolder)
-
getJavaTypeNameForAttribute
protected static String getJavaTypeNameForAttribute(org.bndly.schema.model.Attribute attribute, org.bndly.code.model.CodeBlock importBlock, ImportStateHolder importStateHolder, boolean importAttributeHolders)
-
assertIsImported
protected static void assertIsImported(org.bndly.code.model.CodeBlock importBlock, String typeToImport, ImportStateHolder importStateHolder)
-
assertIsImported
protected static void assertIsImported(org.bndly.code.model.CodeBlock importBlock, Class<?> typeToImport, ImportStateHolder importStateHolder)
-
-