org.deegree_impl.services.gazetteer
Class GazetteerResponseTree

java.lang.Object
  extended byorg.deegree_impl.services.gazetteer.GazetteerResponseTree
All Implemented Interfaces:
Tree

public class GazetteerResponseTree
extends java.lang.Object
implements Tree

Version:
Author:
Axel Schaefer, Andreas Poth

Field Summary
private  Node root
           
 
Constructor Summary
GazetteerResponseTree(java.lang.String id)
           
 
Method Summary
 void action(Node node)
           
private  Node getNodeAtId(Node node, java.lang.String id)
          returns the node at the specified ID
 Node getNodeAtId(java.lang.String id)
          returns the node at the specified ID.
 Node getRoot()
           
 void setDataAtId(java.lang.String id, java.lang.Object data)
          sets the node at the given id with the given data
 void traversePreorder()
          traverses the tree in preorder starting at the root
 void traversePreorder(Node node)
          traverses the tree in preorder starting at the passed node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

private Node root
Constructor Detail

GazetteerResponseTree

public GazetteerResponseTree(java.lang.String id)
Parameters:
id -
Method Detail

setDataAtId

public void setDataAtId(java.lang.String id,
                        java.lang.Object data)
sets the node at the given id with the given data

Parameters:
id - the id of the node, which has to be set
data - the data to be set at the specified node

getNodeAtId

public Node getNodeAtId(java.lang.String id)
returns the node at the specified ID.

Parameters:
id - the id of the node
Returns:
an instance of Node

getNodeAtId

private Node getNodeAtId(Node node,
                         java.lang.String id)
returns the node at the specified ID


traversePreorder

public void traversePreorder()
traverses the tree in preorder starting at the root

Specified by:
traversePreorder in interface Tree

traversePreorder

public void traversePreorder(Node node)
traverses the tree in preorder starting at the passed node

Specified by:
traversePreorder in interface Tree

action

public void action(Node node)
Specified by:
action in interface Tree
Parameters:
node -

getRoot

public Node getRoot()
Specified by:
getRoot in interface Tree
Returns: