Package org.kordamp.json.util
Class PropertySetStrategy
- java.lang.Object
-
- org.kordamp.json.util.PropertySetStrategy
-
- Direct Known Subclasses:
PropertySetStrategy.DefaultPropertySetStrategy
public abstract class PropertySetStrategy extends java.lang.Object
Defines a custom setter to be used when setting object values.
Specify with JsonConfig.setJsonPropertySetter().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
PropertySetStrategy.DefaultPropertySetStrategy
-
Field Summary
Fields Modifier and Type Field Description static PropertySetStrategy
DEFAULT
-
Constructor Summary
Constructors Constructor Description PropertySetStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
setProperty(java.lang.Object bean, java.lang.String key, java.lang.Object value)
void
setProperty(java.lang.Object bean, java.lang.String key, java.lang.Object value, JsonConfig jsonConfig)
-
-
-
Field Detail
-
DEFAULT
public static final PropertySetStrategy DEFAULT
-
-
Method Detail
-
setProperty
public abstract void setProperty(java.lang.Object bean, java.lang.String key, java.lang.Object value) throws JSONException
- Throws:
JSONException
-
setProperty
public void setProperty(java.lang.Object bean, java.lang.String key, java.lang.Object value, JsonConfig jsonConfig) throws JSONException
- Throws:
JSONException
-
-