Class CMSVersionCustomAttribute
java.lang.Object
de.hybris.platform.cms2.version.converter.customattribute.CMSVersionCustomAttribute
- Direct Known Subclasses:
ContentSlotForPageRelationData
Abstract class responsible for representing custom attributes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA delimiter that is used to distinguish parts of the data.abstract voidMethod to populate all attributes of the current class with data that is parsed from value.
The value is generated by toData() method.abstract StringtoData()Method to convert attributes of a class to a string.toString()This method is overridden due to limitations ofPayloadSerializer.
-
Field Details
-
DELIMITER
- See Also:
-
-
Constructor Details
-
CMSVersionCustomAttribute
public CMSVersionCustomAttribute()
-
-
Method Details
-
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
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
A delimiter that is used to distinguish parts of the data.- Returns:
- a delimiter.
-
toString
This method is overridden due to limitations ofPayloadSerializer.
ThePayloadSerializerconverts any attribute value to string (using toString method) while generating payload.
-