public enum PropertyAccessStrategy extends Enum<PropertyAccessStrategy>
Enum Constant and Description |
---|
BOTH
Use getters and setters preferably, and if these are not available, use field access.
|
FIELDS
Use field access exclusively.
|
GETTERS_AND_SETTERS
Use getters and setters exclusively.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFieldScanAllowed()
Returns
true if field scan is allowed, false otherwise. |
boolean |
isGetterSetterScanAllowed()
Returns
true if getter and setter scan is allowed, false otherwise. |
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–2020. All rights reserved.