Package net.sf.json.util
Class PropertySetStrategy
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static PropertySetStrategyDEFAULT
-
Constructor Summary
Constructors Constructor Description PropertySetStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidsetProperty(Object bean, String key, Object value)voidsetProperty(Object bean, String key, Object value, JsonConfig jsonConfig)
-
-
-
Field Detail
-
DEFAULT
public static final PropertySetStrategy DEFAULT
-
-
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
-
-