Class CMSVersionCustomAttribute

  • Direct Known Subclasses:
    ContentSlotForPageRelationData

    public abstract class CMSVersionCustomAttribute
    extends java.lang.Object
    Abstract class responsible for representing custom attributes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DELIMITER  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDelimiter()
      A delimiter that is used to distinguish parts of the data.
      abstract void init​(java.lang.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.
      abstract java.lang.String toData()
      Method to convert attributes of a class to a string.
      java.lang.String toString()
      This method is overridden due to limitations of PayloadSerializer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CMSVersionCustomAttribute

        public CMSVersionCustomAttribute()
    • Method Detail

      • toData

        public abstract java.lang.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​(java.lang.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:
        java.lang.IllegalArgumentException - if the value can not be parsed.
      • getDelimiter

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

        public java.lang.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 java.lang.Object