Package net.sf.json.util
Class PropertySetStrategy
java.lang.Object
net.sf.json.util.PropertySetStrategy
- Direct Known Subclasses:
PropertySetStrategy.DefaultPropertySetStrategy
Defines a custom setter to be used when setting object values.
Specify with JsonConfig.setJsonPropertySetter().
Specify with JsonConfig.setJsonPropertySetter().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
setProperty
(Object bean, String key, Object value) void
setProperty
(Object bean, String key, Object value, JsonConfig jsonConfig)
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
PropertySetStrategy
public PropertySetStrategy()
-
-
Method Details
-
setProperty
- Throws:
JSONException
-
setProperty
public void setProperty(Object bean, String key, Object value, JsonConfig jsonConfig) throws JSONException - Throws:
JSONException
-