Class ModelloStaxReaderMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="stax-reader",
          defaultPhase=GENERATE_SOURCES,
          threadSafe=true)
    public class ModelloStaxReaderMojo
    extends AbstractModelloSourceGeneratorMojo
    Creates an StAX reader from the model.
    • Field Detail

      • versionCheck

        @Parameter(property="modello.stax.versionCheck",
                   defaultValue="true")
        private boolean versionCheck
        Whether the generated reader checks that the model version of the document matches the version of the reader. Only applies to models with a versionDefinition.
        Since:
        2.9.0
    • Constructor Detail

      • ModelloStaxReaderMojo

        @Inject
        public ModelloStaxReaderMojo​(org.codehaus.plexus.build.BuildContext buildContext,
                                     org.codehaus.modello.core.ModelloCore modelloCore)
    • Method Detail

      • customizeParameters

        protected void customizeParameters​(java.util.Map<java.lang.String,​java.lang.Object> parameters)
        Description copied from class: AbstractModelloGeneratorMojo
        Override this method to customize the values in the properties set.

        This method will be called after the parameters have been populated with the parameters in the abstract mojo.

        Overrides:
        customizeParameters in class AbstractModelloSourceGeneratorMojo
        Parameters:
        parameters - the parameters to customize