Interface CustomAttributeContentConverter
-
- All Known Implementing Classes:
ContentSlotsForPageConverter
public interface CustomAttributeContentConverterInterface responsible for converting custom attributes forItemModel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectconvertModelToData(ItemModel itemModel)ConvertsItemModelto representation that can be serialized.java.util.function.Predicate<ItemModel>getConstrainedBy()Predicate to verify whether current converter is applicable to providedItemModel.java.lang.StringgetQualifier()Returns the qualifier for custom attribute.voidpopulateItemModel(ItemModel itemModel, java.lang.String value)PopulatesItemModelwith provided value.
-
-
-
Method Detail
-
getQualifier
java.lang.String getQualifier()
Returns the qualifier for custom attribute.- Returns:
- custom qualifier.
-
getConstrainedBy
java.util.function.Predicate<ItemModel> getConstrainedBy()
Predicate to verify whether current converter is applicable to providedItemModel.- Returns:
- the
Predicate.
-
convertModelToData
java.lang.Object convertModelToData(ItemModel itemModel)
ConvertsItemModelto representation that can be serialized.- Parameters:
itemModel- theItemModelthat is used to generate custom attribute.- Returns:
CMSVersionCustomAttributeorList
-
-