Class CmsJsonRendererContainerPage.ContainerNode

java.lang.Object
org.opencms.xml.xml2json.renderer.CmsJsonRendererContainerPage.ContainerNode
Enclosing class:
CmsJsonRendererContainerPage

Tree node wrapper for a container.
  • Constructor Details

    • ContainerNode

      public ContainerNode(CmsContainerBean container)
      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

      public String getName()
      Gets the container name.
      Returns:
      the container name
    • getType

      public 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