Class CompositeModel
- java.lang.Object
-
- com.aquima.web.api.model.page.element.ElementModel
-
- com.aquima.web.api.model.page.element.CompositeModel
-
- Direct Known Subclasses:
Container
,ContentItem
public abstract class CompositeModel extends ElementModel
This class represents the base viewmodel for containers, pages and documents- Since:
- 9.2
- Author:
- A.Pragt
-
-
Constructor Summary
Constructors Constructor Description CompositeModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(String childId)
This methods adds a child to the model.boolean
equals(Object obj)
List<String>
getChildren()
This method returns the children of the model.int
hashCode()
-
Methods inherited from class com.aquima.web.api.model.page.element.ElementModel
addProperty, getFunctionalKey, getKey, getName, getProperties, getStyles, getType, setFunctionalKey, setKey, setName
-
-
-
-
Method Detail
-
getChildren
public List<String> getChildren()
This method returns the children of the model.- Returns:
- The children.
-
addChild
public void addChild(String childId)
This methods adds a child to the model.- Parameters:
childId
- The id of the child, never null.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classElementModel
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classElementModel
-
-