public enum BeanMethod extends Enum<BeanMethod>
JBeanMethod
Enum Constant and Description |
---|
CALL
Domain methods.
|
GET
Getters.
|
OBJECT
Methods defined in Object.
|
SET
Setters.
|
SET_BUILDER
A setter that returns a type assignable from the interface in which the
method is declared to support chained, builder-pattern setters.
|
Modifier and Type | Field and Description |
---|---|
static String |
GET_PREFIX |
static String |
HAS_PREFIX |
static String |
IS_PREFIX |
static String |
SET_PREFIX |
Modifier and Type | Method and Description |
---|---|
String |
inferName(Method method) |
boolean |
matches(Method method)
Convenience method, not valid for
CALL . |
static BeanMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BeanMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BeanMethod OBJECT
public static final BeanMethod GET
public static final BeanMethod SET
public static final BeanMethod SET_BUILDER
foo.setBar(1).setBaz(42)
.public static final BeanMethod CALL
public static final String GET_PREFIX
public static final String HAS_PREFIX
public static final String IS_PREFIX
public static final String SET_PREFIX
public static BeanMethod[] values()
for (BeanMethod c : BeanMethod.values()) System.out.println(c);
public static BeanMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016. All rights reserved.