Class CmsJsonRendererContainerPage.ContainerNode
java.lang.Object
org.opencms.xml.xml2json.renderer.CmsJsonRendererContainerPage.ContainerNode
- Enclosing class:
- CmsJsonRendererContainerPage
Tree node wrapper for a container.
-
Constructor Summary
ConstructorDescriptionContainerNode
(CmsContainerBean container) Creates a new node for the given container. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(CmsJsonRendererContainerPage.ElementNode elemNode) Adds a container element subnode.Gets the container bean.Gets the nodes corresponding to the container elements.getName()
Gets the container name.getType()
Returns the container type.boolean
Returns whether this container is a detail only container.boolean
Returns whether this container is a nested container.boolean
Returns whether this container is a root container.
-
Constructor Details
-
ContainerNode
Creates a new node for the given container.- Parameters:
container
- the container bean
-
-
Method Details
-
add
Adds a container element subnode.- Parameters:
elemNode
- the container element node
-
getContainer
Gets the container bean.- Returns:
- the container bean
-
getElements
Gets the nodes corresponding to the container elements.- Returns:
- the nodes for the container elements
-
getName
Gets the container name.- Returns:
- the container name
-
getType
Returns the container type.- Returns:
- the container type
-
isDetailOnlyContainer
Returns whether this container is a detail only container.- Returns:
- whether a detail only container or not
-
isNestedContainer
Returns whether this container is a nested container.- Returns:
- whether a nested container or not
-
isRootContainer
Returns whether this container is a root container.- Returns:
- whether a root container or not
-