Interface CustomAttributeContentConverter

    • 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 provided ItemModel.
        Returns:
        the Predicate.
      • convertModelToData

        java.lang.Object convertModelToData​(ItemModel itemModel)
        Converts ItemModel to representation that can be serialized.
        Parameters:
        itemModel - the ItemModel that is used to generate custom attribute.
        Returns:
        CMSVersionCustomAttribute or List
      • populateItemModel

        void populateItemModel​(ItemModel itemModel,
                               java.lang.String value)
        Populates ItemModel with provided value.
        Parameters:
        itemModel - the ItemModel to populate.
        value - the value.