Class PropertyNamingStrategy.PropertyNamingStrategyBase

    • Constructor Detail

      • PropertyNamingStrategyBase

        public PropertyNamingStrategyBase()
        Deprecated.
    • Method Detail

      • nameForField

        public java.lang.String nameForField​(MapperConfig<?> config,
                                             AnnotatedField field,
                                             java.lang.String defaultName)
        Deprecated.
        Description copied from class: PropertyNamingStrategy
        Method called to find external name (name used in JSON) for given logical POJO property, as defined by given field.
        Overrides:
        nameForField in class PropertyNamingStrategy
        Parameters:
        config - Configuration in used: either SerializationConfig or DeserializationConfig, depending on whether method is called during serialization or deserialization
        field - Field 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 field represents
      • nameForGetterMethod

        public java.lang.String nameForGetterMethod​(MapperConfig<?> config,
                                                    AnnotatedMethod method,
                                                    java.lang.String defaultName)
        Deprecated.
        Description copied from class: PropertyNamingStrategy
        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. (but not always -- when using "getter-as-setter", may be called during deserialization)
        Overrides:
        nameForGetterMethod in class PropertyNamingStrategy
        Parameters:
        config - Configuration in used: either SerializationConfig or DeserializationConfig, depending on whether method is called during serialization or deserialization
        method - 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: PropertyNamingStrategy
        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).
        Overrides:
        nameForSetterMethod in class PropertyNamingStrategy
        Parameters:
        config - Configuration in used: either SerializationConfig or DeserializationConfig, depending on whether method is called during serialization or deserialization
        method - 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: PropertyNamingStrategy
        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).
        Overrides:
        nameForConstructorParameter in class PropertyNamingStrategy
        Parameters:
        config - Configuration in used: either SerializationConfig or DeserializationConfig, depending on whether method is called during serialization or deserialization
        ctorParam - 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.