Class PropertySetStrategy

  • Direct Known Subclasses:
    PropertySetStrategy.DefaultPropertySetStrategy

    public abstract class PropertySetStrategy
    extends java.lang.Object
    Defines a custom setter to be used when setting object values.
    Specify with JsonConfig.setJsonPropertySetter().
    • Constructor Detail

      • PropertySetStrategy

        public PropertySetStrategy()
    • Method Detail

      • setProperty

        public abstract void setProperty​(java.lang.Object bean,
                                         java.lang.String key,
                                         java.lang.Object value)
                                  throws JSONException
        Throws:
        JSONException
      • setProperty

        public void setProperty​(java.lang.Object bean,
                                java.lang.String key,
                                java.lang.Object value,
                                JsonConfig jsonConfig)
                         throws JSONException
        Throws:
        JSONException