Package org.immutables.encode
Enum Encoding.StandardNaming
- java.lang.Object
-
- java.lang.Enum<Encoding.StandardNaming>
-
- org.immutables.encode.Encoding.StandardNaming
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Encoding.StandardNaming>
- Enclosing class:
- Encoding
public static enum Encoding.StandardNaming extends java.lang.Enum<Encoding.StandardNaming>
Standard namings can be used to reuse standard styles, like the ones defined inValue.Immutable.Stylefor the custom-defined elements in encoding. IfEncoding.StandardNamingis used with the generator other than Immutables which do not have notion of namings/styles, then, typical default values will be used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDbuilder add method, depluralized.ADD_ALLbuilder add all method.GETnaming of the accessor method.INITbuilder init method.NONEno standard naming is used.PUTbuilder put method, depluralized.PUT_ALLbuilder put all method.WITHwith copy method.
-
Field Summary
Fields Modifier and Type Field Description booleandepluralizejava.lang.Stringpattern
-
Constructor Summary
Constructors Modifier Constructor Description privateStandardNaming(java.lang.String pattern)privateStandardNaming(java.lang.String pattern, boolean depluralize)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Encoding.StandardNamingvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Encoding.StandardNaming[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Encoding.StandardNaming NONE
no standard naming is used.
-
GET
public static final Encoding.StandardNaming GET
naming of the accessor method. as accessors are detected, this naming would signalize the need to copy current detected accessors naming to some other element.
-
INIT
public static final Encoding.StandardNaming INIT
builder init method.
-
WITH
public static final Encoding.StandardNaming WITH
with copy method.
-
ADD
public static final Encoding.StandardNaming ADD
builder add method, depluralized.
-
ADD_ALL
public static final Encoding.StandardNaming ADD_ALL
builder add all method.
-
PUT
public static final Encoding.StandardNaming PUT
builder put method, depluralized.
-
PUT_ALL
public static final Encoding.StandardNaming PUT_ALL
builder put all method.
-
-
Method Detail
-
values
public static Encoding.StandardNaming[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Encoding.StandardNaming c : Encoding.StandardNaming.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Encoding.StandardNaming valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-