Package com.fasterxml.jackson.databind
Class PropertyNamingStrategy.PropertyNamingStrategyBase
- java.lang.Object
-
- com.fasterxml.jackson.databind.PropertyNamingStrategy
-
- com.fasterxml.jackson.databind.PropertyNamingStrategy.PropertyNamingStrategyBase
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
PropertyNamingStrategy.KebabCaseStrategy,PropertyNamingStrategy.LowerCaseStrategy,PropertyNamingStrategy.LowerDotCaseStrategy,PropertyNamingStrategy.SnakeCaseStrategy,PropertyNamingStrategy.UpperCamelCaseStrategy
- Enclosing class:
- PropertyNamingStrategy
@Deprecated public abstract static class PropertyNamingStrategy.PropertyNamingStrategyBase extends PropertyNamingStrategy
Deprecated.Since 2.12 deprecated. See databind#2715 for reasons for deprecation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.PropertyNamingStrategy
PropertyNamingStrategy.KebabCaseStrategy, PropertyNamingStrategy.LowerCaseStrategy, PropertyNamingStrategy.LowerDotCaseStrategy, PropertyNamingStrategy.PropertyNamingStrategyBase, PropertyNamingStrategy.SnakeCaseStrategy, PropertyNamingStrategy.UpperCamelCaseStrategy
-
-
Field Summary
-
Fields inherited from class com.fasterxml.jackson.databind.PropertyNamingStrategy
KEBAB_CASE, LOWER_CAMEL_CASE, LOWER_CASE, LOWER_DOT_CASE, SNAKE_CASE, UPPER_CAMEL_CASE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringnameForConstructorParameter(MapperConfig<?> config, AnnotatedParameter ctorParam, java.lang.String defaultName)Deprecated.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).java.lang.StringnameForField(MapperConfig<?> config, AnnotatedField field, java.lang.String defaultName)Deprecated.Method called to find external name (name used in JSON) for given logical POJO property, as defined by given field.java.lang.StringnameForGetterMethod(MapperConfig<?> config, AnnotatedMethod method, java.lang.String defaultName)Deprecated.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.java.lang.StringnameForSetterMethod(MapperConfig<?> config, AnnotatedMethod method, java.lang.String defaultName)Deprecated.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 java.lang.Stringtranslate(java.lang.String propertyName)Deprecated.
-
-
-
Method Detail
-
nameForField
public java.lang.String nameForField(MapperConfig<?> config, AnnotatedField field, java.lang.String defaultName)
Deprecated.Description copied from class:PropertyNamingStrategyMethod called to find external name (name used in JSON) for given logical POJO property, as defined by given field.- Overrides:
nameForFieldin classPropertyNamingStrategy- Parameters:
config- Configuration in used: eitherSerializationConfigorDeserializationConfig, 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 strategy- Returns:
- Logical name to use for property that the field represents
-
nameForGetterMethod
public java.lang.String nameForGetterMethod(MapperConfig<?> config, AnnotatedMethod method, java.lang.String defaultName)
Deprecated.Description copied from class:PropertyNamingStrategyMethod 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. (but not always -- when using "getter-as-setter", may be called during deserialization)- Overrides:
nameForGetterMethodin classPropertyNamingStrategy- Parameters:
config- Configuration in used: eitherSerializationConfigorDeserializationConfig, 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 strategy- Returns:
- Logical name to use for property that the method represents
-
nameForSetterMethod
public java.lang.String nameForSetterMethod(MapperConfig<?> config, AnnotatedMethod method, java.lang.String defaultName)
Deprecated.Description copied from class:PropertyNamingStrategyMethod 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).- Overrides:
nameForSetterMethodin classPropertyNamingStrategy- Parameters:
config- Configuration in used: eitherSerializationConfigorDeserializationConfig, 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 strategy- Returns:
- Logical name to use for property that the method represents
-
nameForConstructorParameter
public java.lang.String nameForConstructorParameter(MapperConfig<?> config, AnnotatedParameter ctorParam, java.lang.String defaultName)
Deprecated.Description copied from class:PropertyNamingStrategyMethod 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).- Overrides:
nameForConstructorParameterin classPropertyNamingStrategy- Parameters:
config- Configuration in used: eitherSerializationConfigorDeserializationConfig, 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
-
translate
public abstract java.lang.String translate(java.lang.String propertyName)
Deprecated.
-
-