|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.QueryNode
public final class 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.
| Nested Class Summary | |
|---|---|
static class |
QueryNode.Operator
The standard operands OR, AND and NOT |
static class |
QueryNode.WebCacheQueryNode
A QueryNode represents a boolean expression. |
| Constructor Summary | |
|---|---|
QueryNode(QueryNode.Operator 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 nodes. |
void |
clearQueryParts()
A convenience method to remove all query parts. |
QueryNode |
copyQueryNode()
Returns a deep copy of this QueryNode. |
boolean |
evaluate(Query.Context context,
ViewMember viewMember)
Evaluates the query node on the given view member, based on the given user context. |
java.lang.String |
getDebugString()
Returns a String with debug information about this QueryNode. |
QueryNode.Operator |
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. |
void |
setOperator(QueryNode.Operator anOperator)
Change the operator type for this expression. |
void |
setQueryNodes(QueryNode[] nodes)
Sets the QueryNodes associated with this QueryNode. |
void |
setQueryParts(QueryPart[] parts)
Changes the QueryParts associated with 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryNode(QueryNode.Operator anOperator)
anOperator - a Boolean condition of AND, OR or NOT| Method Detail |
|---|
public QueryNode copyQueryNode()
public QueryNode.Operator getOperator()
QueryNode.Operator.AND,
QueryNode.Operator.OR,
QueryNode.Operator.NOTpublic void setOperator(QueryNode.Operator anOperator)
anOperator - the type of condition: OP_AND or OP_OR or OP_NOTQueryNode.Operator.AND,
QueryNode.Operator.OR,
QueryNode.Operator.NOTpublic 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)
nodes - the QueryParts associated with this QueryNode.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 getDebugString()
public java.lang.String toDebugStringDepth(int depth)
depth - the indentation depth to use. Typically you would pass int 0
for a top-level QueryNode.
public boolean evaluate(Query.Context context,
ViewMember viewMember)
context - User Context to be usedviewMember - view member on which the query is evaluated on
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||