org.deegree.services.gazetteer
Interface Node

All Known Implementing Classes:
Node_Impl

public interface Node

Version:
Author:
Axel Schaefer

Method Summary
 void appendChild(Node node)
          adds a child-node to the node.
 Node[] getChildren()
          returns the child-nodes, if available.
 java.lang.Object getData()
          returns the data of the node (only if it is a leaf)
 java.lang.String getId()
          returns the ID of the node
 int getLevel()
          returns the level of the tree, the node is in
 boolean isLeaf()
          checks, if the node has child-notes
 void removeChild(Node node)
           
 Node removeChild(java.lang.String id)
           
 void setData(java.lang.Object data)
           
 

Method Detail

getId

public java.lang.String getId()
returns the ID of the node

Returns:

getLevel

public int getLevel()
returns the level of the tree, the node is in

Returns:

getData

public java.lang.Object getData()
returns the data of the node (only if it is a leaf)

Returns:

setData

public void setData(java.lang.Object data)

getChildren

public Node[] getChildren()
returns the child-nodes, if available.

Returns:

appendChild

public void appendChild(Node node)
adds a child-node to the node.

Parameters:
node -

removeChild

public Node removeChild(java.lang.String id)

removeChild

public void removeChild(Node node)

isLeaf

public boolean isLeaf()
checks, if the node has child-notes

Returns:
boolean. true, if node is a leaf.