Class CmsJsonRendererContainerPage.ElementNode
- java.lang.Object
-
- org.opencms.xml.xml2json.renderer.CmsJsonRendererContainerPage.ElementNode
-
- Enclosing class:
- CmsJsonRendererContainerPage
public class CmsJsonRendererContainerPage.ElementNode extends java.lang.Object
Tree node wrapper around a container element.
-
-
Constructor Summary
Constructors Constructor Description ElementNode(CmsContainerElementBean elementBean, CmsJsonRendererContainerPage.ContainerNode parentContainerNode)
Creates a new element node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CmsJsonRendererContainerPage.ContainerNode containerNode)
Adds the container node as a nested container for the element.java.util.Map<java.lang.String,CmsJsonRendererContainerPage.ContainerNode>
getContainers()
Gets the nested containers for this element as a map, with container names as keys.CmsContainerElementBean
getElement()
Gets the container element bean which this node is wrapping.CmsJsonRendererContainerPage.ContainerNode
getParentContainerNode()
Returns the parent container node.
-
-
-
Constructor Detail
-
ElementNode
public ElementNode(CmsContainerElementBean elementBean, CmsJsonRendererContainerPage.ContainerNode parentContainerNode)
Creates a new element node.- Parameters:
elementBean
- the container element beanparentContainerNode
- the parent container node
-
-
Method Detail
-
add
public void add(CmsJsonRendererContainerPage.ContainerNode containerNode)
Adds the container node as a nested container for the element.- Parameters:
containerNode
- the container node
-
getContainers
public java.util.Map<java.lang.String,CmsJsonRendererContainerPage.ContainerNode> getContainers()
Gets the nested containers for this element as a map, with container names as keys.- Returns:
- the map of nested containers
-
getElement
public CmsContainerElementBean getElement()
Gets the container element bean which this node is wrapping.- Returns:
- the container element bean
-
getParentContainerNode
public CmsJsonRendererContainerPage.ContainerNode getParentContainerNode()
Returns the parent container node.- Returns:
- the parent container node
-
-