Package org.opencms.xml.xml2json
Class CmsXmlContentTree.Node
java.lang.Object
org.opencms.xml.xml2json.CmsXmlContentTree.Node
- Enclosing class:
- CmsXmlContentTree
Represents a sequence in the XML content.
-
Constructor Summary
ConstructorDescriptionNode
(CmsXmlContentTree.NodeType type, I_CmsXmlContentValue value, CmsXmlContentDefinition contentDef, org.dom4j.Element elem, List<CmsXmlContentTree.Field> fields) Creates a new instance. -
Method Summary
-
Constructor Details
-
Node
public Node(CmsXmlContentTree.NodeType type, I_CmsXmlContentValue value, CmsXmlContentDefinition contentDef, org.dom4j.Element elem, List<CmsXmlContentTree.Field> fields) Creates a new instance.- Parameters:
type
- the node typevalue
- the content valuecontentDef
- the content definitionelem
- the underlying XML elementfields
- the fields
-
-
Method Details
-
getContentDefinition
Gets the content definition.- Returns:
- the contnt definition
-
getElement
Gets the DOM element for the node.- Returns:
- the DOM element
-
getFields
Gets the fields for the sequence.- Returns:
- the list of fields
-
getPath
Gets the path of the node.- Returns:
- the path of the node
-
getType
Gets the node type.- Returns:
- the node type
-
getValue
Gets the content value (null for root node).- Returns:
- the content value
-
toString
-