Class PropertySetStrategy


  • public abstract class PropertySetStrategy
    extends java.lang.Object
    Defines a custom setter to be used when setting object values.
    Specify with JsonConfig.setJsonPropertySetter().
    Author:
    Gino Miceli , Andres Almiray
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void setProperty​(java.lang.Object bean, java.lang.String key, java.lang.Object value)  
      void setProperty​(java.lang.Object bean, java.lang.String key, java.lang.Object value, JsonConfig jsonConfig)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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