Class CMSVersionCustomAttribute

java.lang.Object
de.hybris.platform.cms2.version.converter.customattribute.CMSVersionCustomAttribute
Direct Known Subclasses:
ContentSlotForPageRelationData

public abstract class CMSVersionCustomAttribute extends Object
Abstract class responsible for representing custom attributes.
  • Field Details

  • Constructor Details

    • CMSVersionCustomAttribute

      public CMSVersionCustomAttribute()
  • Method Details

    • toData

      public abstract String toData()
      Method to convert attributes of a class to a string. For example, if the class has two attributes like
      primaryKey and position, the implementation should look like
      Returns:
      the representation of an attribute in the form of a string.
    • init

      public abstract void init(String value)
      Method to populate all attributes of the current class with data that is parsed from value.
      The value is generated by toData() method.
      Parameters:
      value - the value to parse.
      Throws:
      IllegalArgumentException - if the value can not be parsed.
    • getDelimiter

      public String getDelimiter()
      A delimiter that is used to distinguish parts of the data.
      Returns:
      a delimiter.
    • toString

      public String toString()
      This method is overridden due to limitations of PayloadSerializer.
      The PayloadSerializer converts any attribute value to string (using toString method) while generating payload.
      Overrides:
      toString in class Object