Class AbstractModelloGenerator

java.lang.Object
org.codehaus.modello.plugin.AbstractModelloGenerator
All Implemented Interfaces:
ModelloGenerator

public abstract class AbstractModelloGenerator extends Object implements ModelloGenerator
Author:
Jason van Zyl, Emmanuel Venisse
  • Constructor Details

    • AbstractModelloGenerator

      public AbstractModelloGenerator()
  • Method Details

    • getLogger

      protected org.slf4j.Logger getLogger()
    • initialize

      protected void initialize(Model model, Properties parameters) throws ModelloException
      Throws:
      ModelloException
    • 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)
    • capitalise

      protected String capitalise(String str)
    • singular

      public static String singular(String name)
    • uncapitalise

      public static String uncapitalise(String str)
    • isEmpty

      protected boolean isEmpty(String string)
    • getParameter

      @Deprecated protected String getParameter(String name, Properties parameters)
      Deprecated.
      Parameters:
      name - parameter name
      parameters - the properties
      Returns:
      the parameter value
    • getParameter

      protected String getParameter(Properties parameters, String name)
    • getParameter

      protected String getParameter(Properties parameters, String name, String defaultValue)
    • getBuildContext

      protected org.codehaus.plexus.build.BuildContext getBuildContext()
    • newWriter

      protected Writer newWriter(Path path) throws IOException
      Throws:
      IOException
    • newWriter

      protected Writer newWriter(Path path, Charset charset) throws IOException
      Throws:
      IOException