public interface AttributeContentConverter
Converter<Object, Object> with its respective
Predicate<AttributeDescriptorModel>.| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convertDataToModel(AttributeDescriptorModel attribute,
java.lang.Object source)
Converts a serializable representation to a property value in case that the predicate
defined is true for a given attribute descriptor.
|
java.lang.Object |
convertModelToData(AttributeDescriptorModel attribute,
java.lang.Object source)
Converts a property value to a serializable representation in case that the predicate
defined is true for a given attribute descriptor.
|
java.util.function.Predicate<AttributeDescriptorModel> |
getConstrainedBy()
Returns the predicate that constrains the converter.
|
java.util.function.Predicate<AttributeDescriptorModel> getConstrainedBy()
true, then it applies the conversion,null.java.lang.Object convertModelToData(AttributeDescriptorModel attribute, java.lang.Object source)
attribute - the AttributeDescriptorModel describing the sourcesource - the persistent source described by the attribute that needs be converted to some serializable representationnull.java.lang.Object convertDataToModel(AttributeDescriptorModel attribute, java.lang.Object source)
attribute - the AttributeDescriptorModel describing the sourcesource - the serializable representation described by the attribute that needs be converted to some persistent propertynull.Copyright © 2017 SAP SE. All Rights Reserved.