com.supermap.ar.areffect.utils
Class XmlNode
- java.lang.Object
-
- com.supermap.ar.areffect.utils.XmlNode
-
public class XmlNode extends java.lang.Object
XML element node与
XmlNodeParser
for parsing XMLLSampleCode:
-
-
Constructor Summary
Constructors Constructor and Description XmlNode(XmlNode parent)
The constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.ArrayList<XmlNode>
getChildren()
Get Childrenjava.lang.String
getName()
Gets NameXmlNode
getParent()
Access to the parentjava.lang.String
getValue()
Get Valueboolean
isChildEmpty()
Determines whether the subset is emptyboolean
isRoot()
Check whether it is the root nodevoid
setChildren(java.util.ArrayList<XmlNode> children)
Set Childrenvoid
setName(java.lang.String name)
Set Namevoid
setValue(java.lang.String value)
Set Value
-
-
-
Constructor Detail
-
XmlNode
public XmlNode(XmlNode parent)
The constructor- Parameters:
parent
-
-
-
Method Detail
-
isRoot
public boolean isRoot()
Check whether it is the root node- Returns:
- boolean
-
isChildEmpty
public boolean isChildEmpty()
Determines whether the subset is empty- Returns:
-
getParent
public XmlNode getParent()
Access to the parent- Returns:
-
getName
public java.lang.String getName()
Gets Name- Returns:
-
setName
public void setName(java.lang.String name)
Set Name- Parameters:
name
-
-
getValue
public java.lang.String getValue()
Get Value- Returns:
-
setValue
public void setValue(java.lang.String value)
Set Value- Parameters:
value
-
-
getChildren
public java.util.ArrayList<XmlNode> getChildren()
Get Children- Returns:
-
setChildren
public void setChildren(java.util.ArrayList<XmlNode> children)
Set Children- Parameters:
children
-
-
-