Class BeanGenConfig


  • public final class BeanGenConfig
    extends Object
    Configuration for the code generator.
    • Method Detail

      • parse

        public static BeanGenConfig parse​(String resourceLocator)
        Parses the configuration file.

        This loads the file as an ini file in this package.

        Parameters:
        resourceLocator - the configuration resource locator, not null
        Returns:
        the configuration
      • getCopyGenerators

        public Map<String,​org.joda.beans.gen.CopyGen> getCopyGenerators()
        The copy generators.
        Returns:
        the generators, not null
      • getBuilderGenerators

        public Map<String,​org.joda.beans.gen.BuilderGen> getBuilderGenerators()
        The builder generators.
        Returns:
        the generators, not null
      • getBuilderTypes

        public Map<String,​String> getBuilderTypes()
        The builder types.
        Returns:
        the types, not null
      • getInvalidImmutableTypes

        public Set<String> getInvalidImmutableTypes()
        The invalid immutable types.
        Returns:
        the invalid immutable types, not null
      • getImmutableVarArgs

        public Map<String,​String> getImmutableVarArgs()
        The builder varargs code.
        Returns:
        the varargs, not null
      • getImmutableGetClones

        public Map<String,​String> getImmutableGetClones()
        The builder types.
        Returns:
        the types, not null
      • getIndent

        public String getIndent()
        Gets the indent to use.
        Returns:
        the indent, not null
      • setIndent

        public void setIndent​(String indent)
        Sets the indent to use.
        Parameters:
        indent - the indent to use, not null
      • getPrefix

        public String getPrefix()
        Gets the prefix to use.
        Returns:
        the prefix, not null
      • setPrefix

        public void setPrefix​(String prefix)
        Sets the prefix to use.
        Parameters:
        prefix - the prefix to use, not null
      • getEol

        public String getEol()
        Gets the end of line separator to use.
        Returns:
        the end of line, not null
      • setEol

        public void setEol​(String eol)
        Sets the end of line separator to use.
        Parameters:
        eol - the end of line separator to use, not null
      • getDefaultStyle

        public String getDefaultStyle()
        Gets the default style to use.
        Returns:
        the default style, not null
      • setDefaultStyle

        public void setDefaultStyle​(String defaultStyle)
        Sets the default style to use.
        Parameters:
        defaultStyle - the default style to use, not null
      • isGeneratedAnno

        public boolean isGeneratedAnno()
        Gets whether to add the generated annotation.
        Returns:
        whether to add the generated annotation, not null
      • setGeneratedAnno

        public void setGeneratedAnno​(boolean generatedAnno)
        Sets whether to add the generated annotation.
        Parameters:
        generatedAnno - whether to add the generated annotation