Class CMSVersionCustomAttribute
- java.lang.Object
-
- de.hybris.platform.cms2.version.converter.customattribute.CMSVersionCustomAttribute
-
- Direct Known Subclasses:
ContentSlotForPageRelationData
public abstract class CMSVersionCustomAttribute extends java.lang.ObjectAbstract class responsible for representing custom attributes.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDELIMITER
-
Constructor Summary
Constructors Constructor Description CMSVersionCustomAttribute()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDelimiter()A delimiter that is used to distinguish parts of the data.abstract voidinit(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.StringtoData()Method to convert attributes of a class to a string.java.lang.StringtoString()This method is overridden due to limitations ofPayloadSerializer.
-
-
-
Field Detail
-
DELIMITER
public static final java.lang.String DELIMITER
- See Also:
- Constant Field Values
-
-
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 ofPayloadSerializer.
ThePayloadSerializerconverts any attribute value to string (using toString method) while generating payload.- Overrides:
toStringin classjava.lang.Object
-
-