public enum PropertyAccessStrategy extends Enum<PropertyAccessStrategy>
| Enum Constant and Description | 
|---|
| BOTHUse getters and setters preferably, and if these are not available,
 use field access. | 
| FIELDSUse field access exclusively. | 
| GETTERS_AND_SETTERSUse getters and setters exclusively. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isFieldScanAllowed()Returns  trueif field scan is allowed,falseotherwise. | 
| boolean | isGetterSetterScanAllowed()Returns  trueif getter and setter scan is allowed,falseotherwise. | 
| static PropertyAccessStrategy | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static PropertyAccessStrategy[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final PropertyAccessStrategy GETTERS_AND_SETTERS
public static final PropertyAccessStrategy FIELDS
public static final PropertyAccessStrategy BOTH
public static PropertyAccessStrategy[] values()
for (PropertyAccessStrategy c : PropertyAccessStrategy.values()) System.out.println(c);
public static PropertyAccessStrategy 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 boolean isFieldScanAllowed()
true if field scan is allowed, false otherwise.true if field access is allowed, false otherwise.public boolean isGetterSetterScanAllowed()
true if getter and setter scan is allowed, false otherwise.true if getter and setter access is allowed, false otherwise.Copyright © 2012–2017. All rights reserved.