Class CmsJsonRendererContainerPage.ElementNode
java.lang.Object
org.opencms.xml.xml2json.renderer.CmsJsonRendererContainerPage.ElementNode
- Enclosing class:
- CmsJsonRendererContainerPage
Tree node wrapper around a container element.
-
Constructor Summary
ConstructorDescriptionElementNode
(CmsContainerElementBean elementBean, CmsJsonRendererContainerPage.ContainerNode parentContainerNode) Creates a new element node. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(CmsJsonRendererContainerPage.ContainerNode containerNode) Adds the container node as a nested container for the element.Gets the nested containers for this element as a map, with container names as keys.Gets the container element bean which this node is wrapping.Returns the parent container node.
-
Constructor Details
-
ElementNode
public ElementNode(CmsContainerElementBean elementBean, CmsJsonRendererContainerPage.ContainerNode parentContainerNode) Creates a new element node.- Parameters:
elementBean
- the container element beanparentContainerNode
- the parent container node
-
-
Method Details
-
add
Adds the container node as a nested container for the element.- Parameters:
containerNode
- the container node
-
getContainers
Gets the nested containers for this element as a map, with container names as keys.- Returns:
- the map of nested containers
-
getElement
Gets the container element bean which this node is wrapping.- Returns:
- the container element bean
-
getParentContainerNode
Returns the parent container node.- Returns:
- the parent container node
-