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 java.lang.Object implements JSONObject.Property
UsesPropertySetStrategyinstead of the normal set method.
-
-
Field Summary
Fields Modifier and Type Field Description private JSONObject.Propertyinnerprivate PropertySetStrategystrategy
-
Constructor Summary
Constructors Modifier Constructor Description privatePropertySetterStrategyDecorator(JSONObject.Property inner, PropertySetStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassgetPropertyType()booleanisWritable()java.lang.Stringname()voidset(java.lang.Object bean, java.lang.Object value, JsonConfig jsonConfig)
-
-
-
Field Detail
-
inner
private final JSONObject.Property inner
-
strategy
private final PropertySetStrategy strategy
-
-
Constructor Detail
-
PropertySetterStrategyDecorator
private PropertySetterStrategyDecorator(JSONObject.Property inner, PropertySetStrategy strategy)
-
-
Method Detail
-
isWritable
public boolean isWritable()
- Specified by:
isWritablein interfaceJSONObject.Property
-
getPropertyType
public java.lang.Class getPropertyType()
- Specified by:
getPropertyTypein interfaceJSONObject.Property
-
name
public java.lang.String name()
- Specified by:
namein interfaceJSONObject.Property
-
set
public void set(java.lang.Object bean, java.lang.Object value, JsonConfig jsonConfig) throws java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException- Specified by:
setin interfaceJSONObject.Property- Throws:
java.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessException
-
-