de.unidu.is.retrieval
Class OrQueryNode

java.lang.Object
  extended byde.unidu.is.retrieval.BooleanQueryNode
      extended byde.unidu.is.retrieval.OrQueryNode
All Implemented Interfaces:
QueryNode

public class OrQueryNode
extends BooleanQueryNode

A query node representing an OR.

Since:
2004-05-22
Version:
$Revision: 1.7 $, $Date: 2005/02/28 22:27:55 $
Author:
Henrik Nottelmann

Field Summary
 
Fields inherited from class de.unidu.is.retrieval.BooleanQueryNode
children
 
Constructor Summary
OrQueryNode()
          Creates a new object.
OrQueryNode(java.util.Set children)
          Creates a new object.
 
Method Summary
protected  java.lang.String getConnector()
          Returns a XIRQL representation of the connector represented by this node.
 boolean isDF()
          Returns true iff the node is in disjunctive form.
protected  BooleanQueryNode newNode()
          Returns a new, empty node of this type.
protected  boolean sameClass(QueryNode node)
          Returns true iff the specified query node represents the same class as this node.
 QueryNode toDF()
          Converts the node and its subtree into disjunctive form.
 
Methods inherited from class de.unidu.is.retrieval.BooleanQueryNode
add, cloneNode, equals, getChildren, hashCode, iterator, setChildren, simplifiedNode, toPrefix, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrQueryNode

public OrQueryNode()
Creates a new object.


OrQueryNode

public OrQueryNode(java.util.Set children)
Creates a new object.

Parameters:
children - children children nodes
Method Detail

getConnector

protected java.lang.String getConnector()
Description copied from class: BooleanQueryNode
Returns a XIRQL representation of the connector represented by this node.

Specified by:
getConnector in class BooleanQueryNode
Returns:
XIRQL representation of the connector

sameClass

protected boolean sameClass(QueryNode node)
Description copied from class: BooleanQueryNode
Returns true iff the specified query node represents the same class as this node.

Specified by:
sameClass in class BooleanQueryNode
Parameters:
node - query node to compare
Returns:
true iff the specified query node represents the same class as this node

toDF

public QueryNode toDF()
Description copied from interface: QueryNode
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()
Description copied from interface: QueryNode
Returns true iff the node is in disjunctive form.

Returns:
true iff the node is in disjunctive form

newNode

protected BooleanQueryNode newNode()
Description copied from class: BooleanQueryNode
Returns a new, empty node of this type.

Specified by:
newNode in class BooleanQueryNode
Returns:
new, empty node of this type