T - type parameter. The type is used as a Predicate argument as well as in
convertModelToData and convertModelToData methods.public interface AttributeContentConverter<T>
Converter<Object, Object> with its respective
Predicate<T>.| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convertDataToModel(T 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(T 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<T> |
getConstrainedBy()
Returns the predicate that constrains the converter.
|
java.util.function.Predicate<T> getConstrainedBy()
true, then it applies the conversion,null.java.lang.Object convertModelToData(T attribute, java.lang.Object source)
attribute - the object describing the sourcesource - the persistent source described by the attribute that needs be converted to some serializable representationnull.java.lang.Object convertDataToModel(T attribute, java.lang.Object source)
attribute - the object describing the sourcesource - the serializable representation described by the attribute that needs be converted to some persistent propertynull.Copyright © 2018 SAP SE. All Rights Reserved.