Class BasicNode

    • Method Detail

      • getToken

        public Token getToken()
        Get the token (mainly for error handling)
      • getStartOffset

        public int getStartOffset()
        The start offset of the node in the XML source or -1
      • getEndOffset

        public int getEndOffset()
      • getValue

        public String getValue()
      • setValue

        public void setValue​(String value)
      • toXML

        public String toXML()
        Convert this node to a string.
        Specified by:
        toXML in interface Node
      • toXML

        public static String toXML​(Node n)
        Helper method for String toXML() to handle the IOException that StringWriter will never throw.
      • createClone

        public BasicNode createClone()
        Description copied from interface: Node
        Simulate clone()
        Specified by:
        createClone in interface Node
      • copy

        public BasicNode copy​(Node orig)
        Description copied from interface: Node
        Copy all data from orig into this
        Specified by:
        copy in interface Node
      • copy

        public BasicNode copy()
        Description copied from interface: Node
        Simulate clone()
        Specified by:
        copy in interface Node