Class JSONObject.PropertySetterStrategyDecorator
java.lang.Object
net.sf.json.JSONObject.PropertySetterStrategyDecorator
- All Implemented Interfaces:
JSONObject.Property
- Enclosing class:
JSONObject
private static class JSONObject.PropertySetterStrategyDecorator
extends Object
implements JSONObject.Property
Uses
PropertySetStrategy instead of the normal set method.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JSONObject.Propertyprivate final PropertySetStrategy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePropertySetterStrategyDecorator(JSONObject.Property inner, PropertySetStrategy strategy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanname()voidset(Object bean, Object value, JsonConfig jsonConfig)
-
Field Details
-
inner
-
strategy
-
-
Constructor Details
-
PropertySetterStrategyDecorator
-
-
Method Details
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceJSONObject.Property
-
getPropertyType
- Specified by:
getPropertyTypein interfaceJSONObject.Property
-
name
- Specified by:
namein interfaceJSONObject.Property
-
set
public void set(Object bean, Object value, JsonConfig jsonConfig) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException - Specified by:
setin interfaceJSONObject.Property- Throws:
InvocationTargetExceptionNoSuchMethodExceptionIllegalAccessException
-