Class ContentItem
- java.lang.Object
-
- com.aquima.web.api.model.page.element.ElementModel
-
- com.aquima.web.api.model.page.element.CompositeModel
-
- com.aquima.web.api.model.page.element.ContentItem
-
public class ContentItem extends CompositeModel
This class represents the viewmodel of the ContentItem.- Since:
- 9.2
- Author:
- A.Pragt
-
-
Constructor Summary
Constructors Constructor Description ContentItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getContentStyle()
This method returns the contentstyle.String
getPlainText()
Returns the content of this content item as plain text.String
getType()
int
hashCode()
void
setContentStyle(String contentStyle)
This method sets the content style.void
setPlainText(String plainText)
Sets the plain text content of this content item.-
Methods inherited from class com.aquima.web.api.model.page.element.CompositeModel
addChild, getChildren
-
Methods inherited from class com.aquima.web.api.model.page.element.ElementModel
addProperty, getFunctionalKey, getKey, getName, getProperties, getStyles, setFunctionalKey, setKey, setName
-
-
-
-
Method Detail
-
getType
public String getType()
- Specified by:
getType
in classElementModel
-
getContentStyle
public String getContentStyle()
This method returns the contentstyle.- Returns:
- The contentstyle.
-
setContentStyle
public void setContentStyle(String contentStyle)
This method sets the content style.- Parameters:
contentStyle
- The contentstyle.
-
getPlainText
public String getPlainText()
Returns the content of this content item as plain text.- Returns:
- the content of this content item as plain text, may be null.
-
setPlainText
public void setPlainText(String plainText)
Sets the plain text content of this content item.- Parameters:
plainText
- the plain text content, may be null.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCompositeModel
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classCompositeModel
-
-