Package org.opencms.xml.xml2json
Class CmsXmlContentTree.Node
- java.lang.Object
-
- org.opencms.xml.xml2json.CmsXmlContentTree.Node
-
- Enclosing class:
- CmsXmlContentTree
public class CmsXmlContentTree.Node extends java.lang.Object
Represents a sequence in the XML content.
-
-
Constructor Summary
Constructors Constructor Description Node(CmsXmlContentTree.NodeType type, I_CmsXmlContentValue value, CmsXmlContentDefinition contentDef, org.dom4j.Element elem, java.util.List<CmsXmlContentTree.Field> fields)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsXmlContentDefinition
getContentDefinition()
Gets the content definition.org.dom4j.Element
getElement()
Gets the DOM element for the node.java.util.List<CmsXmlContentTree.Field>
getFields()
Gets the fields for the sequence.java.lang.String
getPath()
Gets the path of the node.CmsXmlContentTree.NodeType
getType()
Gets the node type.I_CmsXmlContentValue
getValue()
Gets the content value (null for root node).java.lang.String
toString()
-
-
-
Constructor Detail
-
Node
public Node(CmsXmlContentTree.NodeType type, I_CmsXmlContentValue value, CmsXmlContentDefinition contentDef, org.dom4j.Element elem, java.util.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 Detail
-
getContentDefinition
public CmsXmlContentDefinition getContentDefinition()
Gets the content definition.- Returns:
- the contnt definition
-
getElement
public org.dom4j.Element getElement()
Gets the DOM element for the node.- Returns:
- the DOM element
-
getFields
public java.util.List<CmsXmlContentTree.Field> getFields()
Gets the fields for the sequence.- Returns:
- the list of fields
-
getPath
public java.lang.String getPath()
Gets the path of the node.- Returns:
- the path of the node
-
getType
public CmsXmlContentTree.NodeType getType()
Gets the node type.- Returns:
- the node type
-
getValue
public I_CmsXmlContentValue getValue()
Gets the content value (null for root node).- Returns:
- the content value
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-