Interface CustomAttributeContentConverter
- All Known Implementing Classes:
ContentSlotsForPageConverter
public interface CustomAttributeContentConverter
Interface responsible for converting custom attributes for
ItemModel.-
Method Summary
Modifier and TypeMethodDescriptionconvertModelToData(ItemModel itemModel) ConvertsItemModelto representation that can be serialized.Predicate to verify whether current converter is applicable to providedItemModel.Returns the qualifier for custom attribute.voidpopulateItemModel(ItemModel itemModel, String value) PopulatesItemModelwith provided value.
-
Method Details
-
getQualifier
String getQualifier()Returns the qualifier for custom attribute.- Returns:
- custom qualifier.
-
getConstrainedBy
Predicate to verify whether current converter is applicable to providedItemModel. -
convertModelToData
ConvertsItemModelto representation that can be serialized.- Parameters:
itemModel- theItemModelthat is used to generate custom attribute.- Returns:
CMSVersionCustomAttributeorList<CMSVersionCustomAttribute>
-
populateItemModel
PopulatesItemModelwith provided value.- Parameters:
itemModel- theItemModelto populate.value- the value.
-