Package net.sf.json.util
Class PropertySetStrategy
- java.lang.Object
-
- net.sf.json.util.PropertySetStrategy
-
- Direct Known Subclasses:
PropertySetStrategy.DefaultPropertySetStrategy
public abstract class PropertySetStrategy extends java.lang.ObjectDefines a custom setter to be used when setting object values.
Specify with JsonConfig.setJsonPropertySetter().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classPropertySetStrategy.DefaultPropertySetStrategy
-
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(java.lang.Object bean, java.lang.String key, java.lang.Object value)voidsetProperty(java.lang.Object bean, java.lang.String key, java.lang.Object value, JsonConfig jsonConfig)
-
-
-
Field Detail
-
DEFAULT
public static final PropertySetStrategy DEFAULT
-
-
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
-
-