gistoolkit.common
Class Node

java.lang.Object
  extended bygistoolkit.common.Node

public class Node
extends java.lang.Object

Keeps track of a hirearchy of information.

Version:
Author:
ithaqua

Constructor Summary
Node()
          Creates new Node
Node(java.lang.String inName)
          Creates new Node
 
Method Summary
 void addAttribute(java.lang.String inAttributeName, java.lang.String inAttributeValue)
          Add an attribute to this node
 void addChild(Node inNode)
          Add a child node to this node.
 java.lang.String getAttribute(java.lang.String inAttributeName)
          Retrieve the value of this attribute
 java.lang.String[] getAttributeNames()
          Retrieve the list of attribute names
 Node getChild(java.lang.String inName)
          return the first child with the given name
 Node[] getChildren()
          return the list of child nodes
 Node[] getChildren(java.lang.String inName)
          return the children with the given name
 java.lang.String getName()
          Retrieve the name of this node
 java.lang.String getValue()
          Get the value of this node
 void setName(java.lang.String inName)
          Set the name of this node
 void setValue(java.lang.String inValue)
          Set the value of this node
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Node

public Node()
Creates new Node


Node

public Node(java.lang.String inName)
Creates new Node

Method Detail

setName

public void setName(java.lang.String inName)
Set the name of this node


getName

public java.lang.String getName()
Retrieve the name of this node


setValue

public void setValue(java.lang.String inValue)
Set the value of this node


getValue

public java.lang.String getValue()
Get the value of this node


addChild

public void addChild(Node inNode)
Add a child node to this node.


getChild

public Node getChild(java.lang.String inName)
return the first child with the given name


getChildren

public Node[] getChildren()
return the list of child nodes


getChildren

public Node[] getChildren(java.lang.String inName)
return the children with the given name


addAttribute

public void addAttribute(java.lang.String inAttributeName,
                         java.lang.String inAttributeValue)
Add an attribute to this node


getAttribute

public java.lang.String getAttribute(java.lang.String inAttributeName)
Retrieve the value of this attribute


getAttributeNames

public java.lang.String[] getAttributeNames()
Retrieve the list of attribute names


toString

public java.lang.String toString()