public interface EntityAttributeSerializationExtension
EntitySerialization
bean.
Such beans can be useful for defining specific serialization and deserialization logic for
a MetaProperty
value. The supported MetaProperty
is determined by the
supports(MetaProperty)
method.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
fromJson(MetaProperty property,
com.google.gson.JsonElement element)
Deserializes a JSON element to meta property value.
|
boolean |
supports(MetaProperty property)
Checks whether the extension supports the given meta property
|
com.google.gson.JsonElement |
toJson(MetaProperty property,
java.lang.Object propertyValue)
Serializes a meta property value to JSON element
|
boolean supports(MetaProperty property)
property
- a meta property@Nullable com.google.gson.JsonElement toJson(MetaProperty property, @Nullable java.lang.Object propertyValue)
property
- a meta propertypropertyValue
- a meta property value@Nullable java.lang.Object fromJson(MetaProperty property, com.google.gson.JsonElement element)
property
- a meta propertyelement
- a JSON element