Class AbstractModelloGenerator

    • Constructor Detail

      • AbstractModelloGenerator

        public AbstractModelloGenerator()
    • Method Detail

      • getModel

        protected Model getModel()
      • getGeneratedVersion

        protected Version getGeneratedVersion()
      • isPackageWithVersion

        protected boolean isPackageWithVersion()
      • getOutputDirectory

        public File getOutputDirectory()
      • getEncoding

        protected String getEncoding()
      • getHeader

        protected String getHeader()
      • isClassInModel

        protected boolean isClassInModel​(String fieldType,
                                         Model model)
      • getFieldsForClass

        protected List<ModelField> getFieldsForClass​(ModelClass modelClass)
        Return the child fields of this class.
        Parameters:
        modelClass - current class
        Returns:
        the list of fields of this class
      • isInnerAssociation

        protected boolean isInnerAssociation​(ModelField field)
      • isMap

        protected boolean isMap​(String fieldType)
      • isCollection

        protected boolean isCollection​(String fieldType)
      • uncapitalise

        public static String uncapitalise​(String str)
      • isEmpty

        protected boolean isEmpty​(String string)
      • contextualize

        public void contextualize​(org.codehaus.plexus.context.Context ctx)
                           throws org.codehaus.plexus.context.ContextException
        Specified by:
        contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
        Throws:
        org.codehaus.plexus.context.ContextException
      • getBuildContext

        protected org.sonatype.plexus.build.incremental.BuildContext getBuildContext()