org.gvsig.remoteclient.wfs.filters
Class BinaryTree

java.lang.Object
  extended by org.gvsig.remoteclient.wfs.filters.BinaryTree

public class BinaryTree
extends java.lang.Object

This class implements a binary tree (not ordered) that is used to build a sintactic tree for the SQL language.

Author:
Jorge Piera Llodrá (piera_jor@gva.es), Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)

Nested Class Summary
 class BinaryTree.Node
          This class represents a binary tree node.
 
Constructor Summary
BinaryTree()
           
 
Method Summary
 void addTerm(java.lang.String value)
          This method is called for each term that is on the SQL query.
 void addTerm(java.lang.String value, java.lang.String operationTree)
          Adds a new term to the tree
 BinaryTree.Node getRoot()
           
 void printTree()
          Print all the tree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryTree

public BinaryTree()
Method Detail

addTerm

public void addTerm(java.lang.String value)
This method is called for each term that is on the SQL query. It's supposed that the value is a valid expression, otherwise will launch an exception.

Parameters:
value - expression formatted

addTerm

public void addTerm(java.lang.String value,
                    java.lang.String operationTree)
Adds a new term to the tree

Parameters:
name -
value -
operationPair -
operationTree -

printTree

public void printTree()
Print all the tree


getRoot

public BinaryTree.Node getRoot()
Returns:
Returns the root.


Copyright © 2004-2013 gvSIG. All Rights Reserved.