Package net.sf.json
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.Property
private final PropertySetStrategy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PropertySetterStrategyDecorator
(JSONObject.Property inner, PropertySetStrategy strategy) -
Method Summary
Modifier and TypeMethodDescriptionboolean
name()
void
set
(Object bean, Object value, JsonConfig jsonConfig)
-
Field Details
-
inner
-
strategy
-
-
Constructor Details
-
PropertySetterStrategyDecorator
-
-
Method Details
-
isWritable
public boolean isWritable()- Specified by:
isWritable
in interfaceJSONObject.Property
-
getPropertyType
- Specified by:
getPropertyType
in interfaceJSONObject.Property
-
name
- Specified by:
name
in interfaceJSONObject.Property
-
set
public void set(Object bean, Object value, JsonConfig jsonConfig) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException - Specified by:
set
in interfaceJSONObject.Property
- Throws:
InvocationTargetException
NoSuchMethodException
IllegalAccessException
-