Class AbstractSchemaBasedBeanGeneratorMojo

    • Field Detail

      • targetFolder

        @Parameter
        protected String targetFolder
        The target folder for generated files
      • targetPackage

        @Parameter
        protected String targetPackage
        The package name to use for the generated schema beans.
      • schemaProviderClass

        @Parameter
        protected String schemaProviderClass
        The class that provides the schema
      • schemaRoot

        @Parameter
        protected String schemaRoot
        The path to the root schema definition file
      • schemaExtensions

        @Parameter
        protected List<String> schemaExtensions
        The paths to the schema extension definition files
    • Constructor Detail

      • AbstractSchemaBasedBeanGeneratorMojo

        public AbstractSchemaBasedBeanGeneratorMojo()
    • Method Detail

      • execute

        public final void execute()
                           throws org.apache.maven.plugin.MojoExecutionException,
                                  org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • writeCodeToFile

        protected void writeCodeToFile​(org.bndly.code.model.CodeBlock code,
                                       File path,
                                       org.bndly.schema.model.NamedAttributeHolder nah,
                                       String prefix,
                                       String suffix)
                                throws IOException
        Throws:
        IOException
      • writeCodeToFile

        protected void writeCodeToFile​(org.bndly.code.model.CodeBlock code,
                                       File path,
                                       org.bndly.schema.model.NamedAttributeHolder nah,
                                       String suffix)
                                throws IOException
        Throws:
        IOException
      • writeCodeToFile

        protected void writeCodeToFile​(org.bndly.code.model.CodeBlock code,
                                       File path,
                                       String fileName)
                                throws IOException
        Throws:
        IOException
      • doCodeGenerationWithSchema

        protected abstract void doCodeGenerationWithSchema​(org.bndly.schema.model.Schema schema,
                                                           org.bndly.code.common.CodeGenerationContext ctx,
                                                           File path)
                                                    throws IOException,
                                                           org.apache.maven.plugin.MojoExecutionException,
                                                           org.apache.maven.plugin.MojoFailureException
        Throws:
        IOException
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException