org.joda.beans.gen
Class BeanGenConfig

java.lang.Object
  extended by org.joda.beans.gen.BeanGenConfig

public final class BeanGenConfig
extends Object

Configuration for the code generator.


Method Summary
 Map<String,org.joda.beans.gen.BuilderGen> getBuilderGenerators()
          The builder generators.
 Map<String,String> getBuilderTypes()
          The builder types.
 Map<String,org.joda.beans.gen.CopyGen> getCopyGenerators()
          The copy generators.
 Map<String,String> getImmutableGetClones()
          The builder types.
 Map<String,String> getImmutableVarArgs()
          The builder varargs code.
 String getIndent()
          Gets the indent to use.
 Set<String> getInvalidImmutableTypes()
          The invalid immutable types.
 String getPrefix()
          Gets the prefix to use.
static BeanGenConfig parse(String resourceLocator)
          Parses the configuration file.
 void setIndent(String indent)
          Sets the indent to use.
 void setPrefix(String prefix)
          Sets the prefix to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2007–2017 Joda.org. All rights reserved.