|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.QueryNode
A QueryNode represents a boolean expression. The expression is applied to an item to determine if the query is true of the item or not.
| Field Summary | |
static int |
OP_AND
A constant defining an AND query expression. |
static int |
OP_NOT
A constant defining a NOT query expression. |
static int |
OP_OR
A constant defining an OR query expression. |
| Constructor Summary | |
QueryNode(int anOperator)
Creates a new QueryNode of the specified type. |
|
| Method Summary | |
void |
appendQueryNode(QueryNode node)
A convenience method to add a QueryNode at the end of the list. |
void |
appendQueryPart(QueryPart part)
A convenience method to add a QueryParts at the end of the list. |
void |
clearQueryNodes()
A convenience method to remove all query parts. |
void |
clearQueryParts()
A convenience method to remove all query parts. |
QueryNode |
copyQueryNode()
Returns a deep copy of this QueryNode. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
boolean |
evaluate(Item item)
Evaluate this QueryPart with respect to the specified item. |
int |
getOperator()
Returns the operator type for this expression. |
QueryNode[] |
getQueryNodes()
Returns the QueryNodes associated with this QueryNode. |
QueryPart[] |
getQueryParts()
Returns the QueryParts associated with this QueryNode. |
int |
hashCode()
returns a unique hash for all instances of this type |
void |
setOperator(int anOperator)
Change the operator type for this expression. |
void |
setQueryNodes(QueryNode[] nodes)
|
void |
setQueryParts(QueryPart[] parts)
Changes the QueryParts associated with this QueryNode. |
java.lang.String |
toDebugString()
Returns a String with debug information about this QueryNode. |
java.lang.String |
toDebugStringDepth(int depth)
Returns a String with debug information about this QueryNode. |
java.lang.String |
toString()
Returns a String description of this QueryNode. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int OP_AND
public static final int OP_OR
public static final int OP_NOT
SupportedFeatures.hasNOTQueryOperator(),
Constant Field Values| Constructor Detail |
public QueryNode(int anOperator)
QueryNode.OP_AND,
QueryNode.OP_OR,
QueryNode.OP_NOT,
SupportedFeatures.hasNOTQueryOperator()| Method Detail |
public QueryNode copyQueryNode()
public int getOperator()
QueryNode.OP_AND,
QueryNode.OP_OR,
QueryNode.OP_NOTpublic void setOperator(int anOperator)
QueryNode.OP_AND,
QueryNode.OP_OR,
QueryNode.OP_NOT,
SupportedFeatures.hasNOTQueryOperator()public QueryPart[] getQueryParts()
public void setQueryParts(QueryPart[] parts)
parts - the new QueryParts to associate with this QueryNode.public void appendQueryPart(QueryPart part)
part - the QueryPart to appendpublic void clearQueryParts()
public QueryNode[] getQueryNodes()
public void setQueryNodes(QueryNode[] nodes)
public void appendQueryNode(QueryNode node)
node - the QueryNode to append.public void clearQueryNodes()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toDebugString()
public java.lang.String toDebugStringDepth(int depth)
public boolean evaluate(Item item)
item - the item whose specified property value to test against
public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||