Package org.jvnet.jaxb.plugin.fluent_api
Enum FluentMethodType
- java.lang.Object
-
- java.lang.Enum<FluentMethodType>
-
- org.jvnet.jaxb.plugin.fluent_api.FluentMethodType
-
- All Implemented Interfaces:
Serializable,Comparable<FluentMethodType>
public enum FluentMethodType extends Enum<FluentMethodType>
- Author:
- Hanson Char
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FLUENT_COLLECTION_SETTERFLUENT_LIST_SETTERFLUENT_SETTER
-
Field Summary
Fields Modifier and Type Field Description static StringFLUENT_SETTER_METHOD_PREFIXstatic StringGETTER_METHOD_PREFIXstatic intGETTER_METHOD_PREFIX_LENstatic StringPARAMETERIZED_LIST_PREFIXstatic StringSETTER_METHOD_PREFIXstatic intSETTER_METHOD_PREFIX_LEN
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcreateFluentMethod(com.sun.codemodel.JDefinedClass implClass, FluentMethodInfo fluentMethodInfo)static FluentMethodTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FluentMethodType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FLUENT_SETTER
public static final FluentMethodType FLUENT_SETTER
-
FLUENT_LIST_SETTER
public static final FluentMethodType FLUENT_LIST_SETTER
-
FLUENT_COLLECTION_SETTER
public static final FluentMethodType FLUENT_COLLECTION_SETTER
-
-
Field Detail
-
GETTER_METHOD_PREFIX
public static final String GETTER_METHOD_PREFIX
- See Also:
- Constant Field Values
-
SETTER_METHOD_PREFIX
public static final String SETTER_METHOD_PREFIX
- See Also:
- Constant Field Values
-
FLUENT_SETTER_METHOD_PREFIX
public static final String FLUENT_SETTER_METHOD_PREFIX
- See Also:
- Constant Field Values
-
PARAMETERIZED_LIST_PREFIX
public static final String PARAMETERIZED_LIST_PREFIX
-
SETTER_METHOD_PREFIX_LEN
public static final int SETTER_METHOD_PREFIX_LEN
-
GETTER_METHOD_PREFIX_LEN
public static final int GETTER_METHOD_PREFIX_LEN
-
-
Method Detail
-
values
public static FluentMethodType[] 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 (FluentMethodType c : FluentMethodType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FluentMethodType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
createFluentMethod
public abstract void createFluentMethod(com.sun.codemodel.JDefinedClass implClass, FluentMethodInfo fluentMethodInfo)
-
-