net.sf.json.util
Class PropertySetStrategy

java.lang.Object
  extended by net.sf.json.util.PropertySetStrategy

public abstract class PropertySetStrategy
extends Object

Defines a custom setter to be used when setting object values.
Specify with JsonConfig.setJsonPropertySetter().

Author:
Gino Miceli , Andres Almiray

Field Summary
static PropertySetStrategy DEFAULT
           
 
Constructor Summary
PropertySetStrategy()
           
 
Method Summary
abstract  void setProperty(Object bean, String key, Object value)
           
 void setProperty(Object bean, String key, Object value, JsonConfig jsonConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final PropertySetStrategy DEFAULT
Constructor Detail

PropertySetStrategy

public PropertySetStrategy()
Method Detail

setProperty

public abstract void setProperty(Object bean,
                                 String key,
                                 Object value)
                          throws JSONException
Throws:
JSONException

setProperty

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