Class SettableAnyProperty

  • All Implemented Interfaces:
    java.io.Serializable

    public class SettableAnyProperty
    extends java.lang.Object
    implements java.io.Serializable
    Class that represents a "wildcard" set method which can be used to generically set values of otherwise unmapped (aka "unknown") properties read from Json content.

    !!! Note: might make sense to refactor to share some code with SettableBeanProperty?

    See Also:
    Serialized Form
    • Method Detail

      • hasValueDeserializer

        public boolean hasValueDeserializer()
      • deserializeAndSet

        public final void deserializeAndSet​(JsonParser p,
                                            DeserializationContext ctxt,
                                            java.lang.Object instance,
                                            java.lang.String propName)
                                     throws java.io.IOException
        Method called to deserialize appropriate value, given parser (and context), and set it using appropriate method (a setter method).
        Throws:
        java.io.IOException
      • set

        public void set​(java.lang.Object instance,
                        java.lang.Object propName,
                        java.lang.Object value)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object