Class CmsJsonRendererContainerPage.ContainerNode
- java.lang.Object
-
- org.opencms.xml.xml2json.renderer.CmsJsonRendererContainerPage.ContainerNode
-
- Enclosing class:
- CmsJsonRendererContainerPage
public class CmsJsonRendererContainerPage.ContainerNode extends java.lang.Object
Tree node wrapper for a container.
-
-
Constructor Summary
Constructors Constructor Description ContainerNode(CmsContainerBean container)
Creates a new node for the given container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CmsJsonRendererContainerPage.ElementNode elemNode)
Adds a container element subnode.CmsContainerBean
getContainer()
Gets the container bean.java.util.List<CmsJsonRendererContainerPage.ElementNode>
getElements()
Gets the nodes corresponding to the container elements.java.lang.String
getName()
Gets the container name.java.lang.String
getType()
Returns the container type.boolean
isDetailOnlyContainer()
Returns whether this container is a detail only container.boolean
isNestedContainer()
Returns whether this container is a nested container.boolean
isRootContainer()
Returns whether this container is a root container.
-
-
-
Constructor Detail
-
ContainerNode
public ContainerNode(CmsContainerBean container)
Creates a new node for the given container.- Parameters:
container
- the container bean
-
-
Method Detail
-
add
public void add(CmsJsonRendererContainerPage.ElementNode elemNode)
Adds a container element subnode.- Parameters:
elemNode
- the container element node
-
getContainer
public CmsContainerBean getContainer()
Gets the container bean.- Returns:
- the container bean
-
getElements
public java.util.List<CmsJsonRendererContainerPage.ElementNode> getElements()
Gets the nodes corresponding to the container elements.- Returns:
- the nodes for the container elements
-
getName
public java.lang.String getName()
Gets the container name.- Returns:
- the container name
-
getType
public java.lang.String getType()
Returns the container type.- Returns:
- the container type
-
isDetailOnlyContainer
public boolean isDetailOnlyContainer()
Returns whether this container is a detail only container.- Returns:
- whether a detail only container or not
-
isNestedContainer
public boolean isNestedContainer()
Returns whether this container is a nested container.- Returns:
- whether a nested container or not
-
isRootContainer
public boolean isRootContainer()
Returns whether this container is a root container.- Returns:
- whether a root container or not
-
-