Class GenericNode

  • All Implemented Interfaces:
    ParseOutput

    public class GenericNode
    extends Object
    implements ParseOutput
    Generic node is the default node type if the client does not implement ParseOutput.
    • Field Detail

      • _name

        public String _name
        Name of this node
      • _elems

        public Vector _elems
        Sub-node of this node
      • _atts

        public Hashtable _atts
        Attribute values of this node
      • _pcdata

        public String _pcdata
        Text value of this node
    • Constructor Detail

      • GenericNode

        public GenericNode()
    • Method Detail

      • process

        public void process​(XMLParser parser,
                            String name,
                            Vector elems,
                            Hashtable atts,
                            String pcdata)
        Store the node information into this object.
        Specified by:
        process in interface ParseOutput
        Parameters:
        parser - XML Parser instance
        name - the name of this node.
        elems - contains all the sub-nodes.
        atts - contains the attributes value of this node
        pcdata - contains text value of this node
        See Also:
        ParseOutput
      • toString

        public String toString()
        Returns content of this node by String type.
        Overrides:
        toString in class Object