public abstract static class PropertyNamingStrategy.PropertyNamingStrategyBase extends PropertyNamingStrategy
PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy, PropertyNamingStrategy.PropertyNamingStrategyBaseCAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES| Constructor and Description |
|---|
PropertyNamingStrategy.PropertyNamingStrategyBase() |
| Modifier and Type | Method and Description |
|---|---|
String |
nameForConstructorParameter(MapperConfig<?> config,
AnnotatedParameter ctorParam,
String defaultName)
Method called to find external name (name used in JSON) for given logical
POJO property,
as defined by given constructor parameter; typically called when building a deserializer
(but not necessarily only then).
|
String |
nameForField(MapperConfig<?> config,
AnnotatedField field,
String defaultName)
Method called to find external name (name used in JSON) for given logical
POJO property,
as defined by given field.
|
String |
nameForGetterMethod(MapperConfig<?> config,
AnnotatedMethod method,
String defaultName)
Method called to find external name (name used in JSON) for given logical
POJO property,
as defined by given getter method; typically called when building a serializer.
|
String |
nameForSetterMethod(MapperConfig<?> config,
AnnotatedMethod method,
String defaultName)
Method called to find external name (name used in JSON) for given logical
POJO property,
as defined by given setter method; typically called when building a deserializer
(but not necessarily only then).
|
abstract String |
translate(String propertyName) |
public PropertyNamingStrategy.PropertyNamingStrategyBase()
public String nameForField(MapperConfig<?> config, AnnotatedField field, String defaultName)
PropertyNamingStrategynameForField in class PropertyNamingStrategyconfig - Configuration in used: either SerializationConfig
or DeserializationConfig, depending on whether method is called
during serialization or deserializationfield - Field used to access propertydefaultName - Default name that would be used for property in absence of custom strategypublic String nameForGetterMethod(MapperConfig<?> config, AnnotatedMethod method, String defaultName)
PropertyNamingStrategynameForGetterMethod in class PropertyNamingStrategyconfig - Configuration in used: either SerializationConfig
or DeserializationConfig, depending on whether method is called
during serialization or deserializationmethod - Method used to access property.defaultName - Default name that would be used for property in absence of custom strategypublic String nameForSetterMethod(MapperConfig<?> config, AnnotatedMethod method, String defaultName)
PropertyNamingStrategynameForSetterMethod in class PropertyNamingStrategyconfig - Configuration in used: either SerializationConfig
or DeserializationConfig, depending on whether method is called
during serialization or deserializationmethod - Method used to access property.defaultName - Default name that would be used for property in absence of custom strategypublic String nameForConstructorParameter(MapperConfig<?> config, AnnotatedParameter ctorParam, String defaultName)
PropertyNamingStrategynameForConstructorParameter in class PropertyNamingStrategyconfig - Configuration in used: either SerializationConfig
or DeserializationConfig, depending on whether method is called
during serialization or deserializationctorParam - Constructor parameter used to pass property.defaultName - Default name that would be used for property in absence of custom strategy