public class LinkTargetAttributeContentConverter extends java.lang.Object implements AttributeContentConverter<AttributeDescriptorModel>
AttributeContentConverter that converts properties of type LinkTargets from and to boolean| Constructor and Description |
|---|
LinkTargetAttributeContentConverter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convertDataToModel(AttributeDescriptorModel attributeDescriptor,
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.
|
protected java.util.function.Predicate<AttributeDescriptorModel> |
getPredicate() |
void |
setPredicate(java.util.function.Predicate<AttributeDescriptorModel> predicate) |
public java.util.function.Predicate<AttributeDescriptorModel> getConstrainedBy()
AttributeContentConvertertrue, then it applies the conversion,getConstrainedBy in interface AttributeContentConverter<AttributeDescriptorModel>null.public java.lang.Object convertModelToData(AttributeDescriptorModel attribute, java.lang.Object source)
AttributeContentConverterconvertModelToData in interface AttributeContentConverter<AttributeDescriptorModel>attribute - the object describing the sourcesource - the persistent source described by the attribute that needs be converted to some serializable representationnull.public java.lang.Object convertDataToModel(AttributeDescriptorModel attributeDescriptor, java.lang.Object source)
AttributeContentConverterconvertDataToModel in interface AttributeContentConverter<AttributeDescriptorModel>attributeDescriptor - the object describing the sourcesource - the serializable representation described by the attribute that needs be converted to some persistent propertynull.public void setPredicate(java.util.function.Predicate<AttributeDescriptorModel> predicate)
protected java.util.function.Predicate<AttributeDescriptorModel> getPredicate()
Copyright © 2018 SAP SE. All Rights Reserved.