Package io.jmix.uidata.serialization
Class FilterConditionAttributeSerializationExtension
java.lang.Object
io.jmix.uidata.serialization.FilterConditionAttributeSerializationExtension
- All Implemented Interfaces:
EntityAttributeSerializationExtension
@Component("ui_FilterConditionAttributeSerializationExtension")
@Order(1000)
public class FilterConditionAttributeSerializationExtension
extends Object
implements EntityAttributeSerializationExtension
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(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 propertycom.google.gson.JsonElement
toJson
(MetaProperty property, Object propertyValue) Serializes a meta property value to JSON element
-
Constructor Details
-
FilterConditionAttributeSerializationExtension
public FilterConditionAttributeSerializationExtension()
-
-
Method Details
-
supports
Description copied from interface:EntityAttributeSerializationExtension
Checks whether the extension supports the given meta property- Specified by:
supports
in interfaceEntityAttributeSerializationExtension
- Parameters:
property
- a meta property- Returns:
- true if the extension supports the given meta property, or false otherwise
-
toJson
@Nullable public com.google.gson.JsonElement toJson(MetaProperty property, @Nullable Object propertyValue) Description copied from interface:EntityAttributeSerializationExtension
Serializes a meta property value to JSON element- Specified by:
toJson
in interfaceEntityAttributeSerializationExtension
- Parameters:
property
- a meta propertypropertyValue
- a meta property value- Returns:
- a JSON element
-
fromJson
Description copied from interface:EntityAttributeSerializationExtension
Deserializes a JSON element to meta property value.- Specified by:
fromJson
in interfaceEntityAttributeSerializationExtension
- Parameters:
property
- a meta propertyelement
- a JSON element- Returns:
- a meta property value
-