public enum JavaBeanAccessor extends Enum<JavaBeanAccessor>
| Enum Constant and Description |
|---|
ALL
Method prefer to field.
|
FIELD
Field accessor.
|
METHOD
Method accessor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAccessByField(JavaBeanAccessor accessor) |
static boolean |
isAccessByMethod(JavaBeanAccessor accessor) |
static JavaBeanAccessor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaBeanAccessor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaBeanAccessor FIELD
public static final JavaBeanAccessor METHOD
public static final JavaBeanAccessor ALL
public static JavaBeanAccessor[] values()
for (JavaBeanAccessor c : JavaBeanAccessor.values()) System.out.println(c);
public static JavaBeanAccessor 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 nullpublic static boolean isAccessByMethod(JavaBeanAccessor accessor)
public static boolean isAccessByField(JavaBeanAccessor accessor)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.