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 XMLL

    SampleCode:
     
    • 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 Children
      java.lang.String getName()
      Gets Name
      XmlNode getParent()
      Access to the parent
      java.lang.String getValue()
      Get Value
      boolean isChildEmpty()
      Determines whether the subset is empty
      boolean isRoot()
      Check whether it is the root node
      void setChildren(java.util.ArrayList<XmlNode> children)
      Set Children
      void setName(java.lang.String name)
      Set Name
      void setValue(java.lang.String value)
      Set Value
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 -