|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oodt.cas.filemgr.structs.QueryCriteria
org.apache.oodt.cas.filemgr.structs.BooleanQueryCriteria
public class BooleanQueryCriteria
A Boolean Query Citeria that allows combination of a number of terms into a query with a boolean operator (AND, OR, NOT). The NOT operator can only be applied to one term.
Field Summary | |
---|---|
static int |
AND
Constants |
static int |
NOT
|
static int |
OR
|
Constructor Summary | |
---|---|
BooleanQueryCriteria()
Default constructor. |
|
BooleanQueryCriteria(List<QueryCriteria> terms,
int op)
Boolean query constructor. |
Method Summary | |
---|---|
void |
addTerm(QueryCriteria t)
Method to add a term to the boolean query. |
String |
getElementName()
Method is not used in this class... |
int |
getOperator()
Accessor method for the boolean operator. |
List<QueryCriteria> |
getTerms()
Accessor method for the list of terms in the query. |
void |
setElementName(String elementName)
Method is not used in this class... |
void |
setOperator(int op)
Mutator method for the boolean operator. |
String |
toString()
Method to convert the query to a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int AND
public static final int OR
public static final int NOT
Constructor Detail |
---|
public BooleanQueryCriteria()
public BooleanQueryCriteria(List<QueryCriteria> terms, int op) throws QueryFormulationException
terms
- The criteria onto which to apply the boolean operatorop
- The boolean operator to be applied
QueryFormulationException
Method Detail |
---|
public void addTerm(QueryCriteria t) throws QueryFormulationException
t
- Term to be added to the query
QueryFormulationException
public List<QueryCriteria> getTerms()
public void setOperator(int op) throws QueryFormulationException
op
- Boolean operator
QueryFormulationException
public int getOperator()
public String getElementName()
getElementName
in class QueryCriteria
public void setElementName(String elementName)
setElementName
in class QueryCriteria
public String toString()
toString
in class QueryCriteria
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |