de.unidu.is.retrieval
Interface QueryNode

All Known Implementing Classes:
BooleanQueryNode, QueryCondition

public interface QueryNode

A node in a query representation, as the root of a subtree.

Since:
2004-07-16
Version:
$Revision: 1.6 $, $Date: 2005/02/28 22:27:55 $
Author:
Henrik Nottelmann

Method Summary
 QueryNode cloneNode()
          Clones this node.
 boolean isDF()
          Returns true iff the node is in disjunctive form.
 java.util.Iterator iterator()
          Returns an iterator over the children of this node.
 QueryNode simplifiedNode()
          Simplifies this node.
 QueryNode toDF()
          Converts the node and its subtree into disjunctive form.
 java.lang.String toPrefix()
          Returns the node in prefix notation.
 

Method Detail

toDF

public QueryNode toDF()
Converts the node and its subtree into disjunctive form.

Returns:
node in disjunctive form (or this node, if no simplication is required)

isDF

public boolean isDF()
Returns true iff the node is in disjunctive form.

Returns:
true iff the node is in disjunctive form

toPrefix

public java.lang.String toPrefix()
Returns the node in prefix notation.

Returns:
node in prefix notation

simplifiedNode

public QueryNode simplifiedNode()
Simplifies this node.

Returns:
simplified node (or this node, if no simplication is required)

cloneNode

public QueryNode cloneNode()
Clones this node.

Returns:
cloned node

iterator

public java.util.Iterator iterator()
Returns an iterator over the children of this node.

Returns:
iterator over children nodes