net.firstpartners.rp.back.struct
Class NodeStruct

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by net.firstpartners.rp.back.struct.NodeStruct
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class NodeStruct
extends javax.swing.tree.DefaultMutableTreeNode

Node Structure class responsable to maintain the tuple values (keyworyd,value)

Version:
1.1
Author:
Firstpartners.net
See Also:
Serialized Form

Field Summary
(package private)  java.util.LinkedList tuples
          List of the tuples
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
NodeStruct()
          Creates a new NodeStruct object.
 
Method Summary
 void addChild(NodeStruct node)
          Add a child to the node
 void addTuple(java.lang.String keyword, java.lang.String value)
          Add a new tuple to the node
private  void addTuple(TupleStruct tuple)
          Add tuple to the node
 java.util.LinkedList getTuples()
          Get the list of tuples
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tuples

java.util.LinkedList tuples
List of the tuples

Constructor Detail

NodeStruct

public NodeStruct()
Creates a new NodeStruct object.

Method Detail

addTuple

public void addTuple(java.lang.String keyword,
                     java.lang.String value)
Add a new tuple to the node

Parameters:
keyword - Tuple keyword
value - Tuple value

addChild

public void addChild(NodeStruct node)
Add a child to the node

Parameters:
node - Child node to add

addTuple

private void addTuple(TupleStruct tuple)
Add tuple to the node

Parameters:
tuple - Tuple to add

getTuples

public java.util.LinkedList getTuples()
Get the list of tuples

Returns:
Tuples list of the node