Package org.kordamp.json
Class JSONObject.PropertySetterStrategyDecorator
- java.lang.Object
-
- org.kordamp.json.JSONObject.PropertySetterStrategyDecorator
-
- All Implemented Interfaces:
JSONObject.Property
- Enclosing class:
- JSONObject
private static class JSONObject.PropertySetterStrategyDecorator extends java.lang.Object implements JSONObject.Property
UsesPropertySetStrategy
instead of the normal set method.
-
-
Field Summary
Fields Modifier and Type Field Description private JSONObject.Property
inner
private PropertySetStrategy
strategy
-
Constructor Summary
Constructors Modifier Constructor Description private
PropertySetterStrategyDecorator(JSONObject.Property inner, PropertySetStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class
getPropertyType()
boolean
isWritable()
java.lang.String
name()
void
set(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:
isWritable
in interfaceJSONObject.Property
-
getPropertyType
public java.lang.Class getPropertyType()
- Specified by:
getPropertyType
in interfaceJSONObject.Property
-
name
public java.lang.String name()
- Specified by:
name
in 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:
set
in interfaceJSONObject.Property
- Throws:
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
-
-