org.jvnet.jaxb2_commons.plugin.fluent_api
Enum FluentMethodType

java.lang.Object
  extended by java.lang.Enum<FluentMethodType>
      extended by org.jvnet.jaxb2_commons.plugin.fluent_api.FluentMethodType
All Implemented Interfaces:
Serializable, Comparable<FluentMethodType>

public enum FluentMethodType
extends Enum<FluentMethodType>

Author:
Hanson Char

Enum Constant Summary
FLUENT_COLLECTION_SETTER
           
FLUENT_LIST_SETTER
           
FLUENT_SETTER
           
 
Field Summary
static String FLUENT_SETTER_METHOD_PREFIX
           
static String GETTER_METHOD_PREFIX
           
static int GETTER_METHOD_PREFIX_LEN
           
static String PARAMETERIZED_LIST_PREFIX
           
static String SETTER_METHOD_PREFIX
           
static int SETTER_METHOD_PREFIX_LEN
           
 
Method Summary
abstract  void createFluentMethod(com.sun.codemodel.JDefinedClass implClass, FluentMethodInfo fluentMethodInfo)
           
static FluentMethodType valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null

createFluentMethod

public abstract void createFluentMethod(com.sun.codemodel.JDefinedClass implClass,
                                        FluentMethodInfo fluentMethodInfo)


Copyright © 2013. All Rights Reserved.