com.atlassian.user.search.query
Class AbstractBooleanQuery

java.lang.Object
  extended bycom.atlassian.user.search.query.AbstractBooleanQuery
All Implemented Interfaces:
BooleanQuery, Query
Direct Known Subclasses:
MultiTermBooleanQuery, TwoTermBooleanQuery

public abstract class AbstractBooleanQuery
extends java.lang.Object
implements BooleanQuery


Field Summary
protected  boolean anding
           
protected  java.util.List queries
           
 
Fields inherited from interface com.atlassian.user.search.query.BooleanQuery
AND, OR
 
Constructor Summary
protected AbstractBooleanQuery(boolean anding)
           
protected AbstractBooleanQuery(java.lang.String anding)
           
 
Method Summary
 java.util.List getQueries()
           
 boolean isAND()
          It is impossible for isAND() and isOR() to both return true or false.
 boolean isOR()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

anding

protected boolean anding

queries

protected java.util.List queries
Constructor Detail

AbstractBooleanQuery

protected AbstractBooleanQuery(boolean anding)

AbstractBooleanQuery

protected AbstractBooleanQuery(java.lang.String anding)
Method Detail

isAND

public boolean isAND()
It is impossible for isAND() and isOR() to both return true or false.

Specified by:
isAND in interface BooleanQuery
Returns:
true if the clause is set to AND the two queries.

isOR

public boolean isOR()
Specified by:
isOR in interface BooleanQuery
Returns:
true if the clause is set to OR the two queries

getQueries

public java.util.List getQueries()
Specified by:
getQueries in interface BooleanQuery


Copyright © 2005-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.