public static enum FieldAccessor.FieldNameExtractor.ForBeanProperty extends Enum<FieldAccessor.FieldNameExtractor.ForBeanProperty> implements FieldAccessor.FieldNameExtractor
FieldAccessor.FieldNameExtractor
that determines a field name
according to the rules of Java bean naming conventions.FieldAccessor.FieldNameExtractor.ForBeanProperty, FieldAccessor.FieldNameExtractor.ForFixedValue
Enum Constant and Description |
---|
CAPITALIZED
A resolver that resolves a field name with a capital letter.
|
INSTANCE
A resolver that resolves a standard bean property name.
|
Modifier and Type | Method and Description |
---|---|
protected abstract char |
resolve(char character)
Resolves the first character of the bean property.
|
String |
resolve(MethodDescription methodDescription)
Extracts a field name to be accessed by a getter or setter method.
|
static FieldAccessor.FieldNameExtractor.ForBeanProperty |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldAccessor.FieldNameExtractor.ForBeanProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldAccessor.FieldNameExtractor.ForBeanProperty INSTANCE
public static final FieldAccessor.FieldNameExtractor.ForBeanProperty CAPITALIZED
public static FieldAccessor.FieldNameExtractor.ForBeanProperty[] values()
for (FieldAccessor.FieldNameExtractor.ForBeanProperty c : FieldAccessor.FieldNameExtractor.ForBeanProperty.values()) System.out.println(c);
public static FieldAccessor.FieldNameExtractor.ForBeanProperty 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 String resolve(MethodDescription methodDescription)
resolve
in interface FieldAccessor.FieldNameExtractor
methodDescription
- The method for which a field name is to be determined.protected abstract char resolve(char character)
character
- The first character.Copyright © 2014–2025. All rights reserved.