com.starteam
Class QueryNode.WebCacheQueryNode

java.lang.Object
  extended by com.starteam.QueryNode.WebCacheQueryNode
Enclosing class:
QueryNode

public static class QueryNode.WebCacheQueryNode
extends java.lang.Object

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.


Constructor Summary
QueryNode.WebCacheQueryNode(ArtifactCacheManager.Context cntxt, QueryNode.Operator anOperator)
          Creates a new QueryNode of the specified type.
 
Method Summary
 void appendQueryNode(QueryNode.WebCacheQueryNode node)
          Add a QueryNode to the end of the list.
 void appendQueryPart(QueryPart.WebCacheQueryPart part)
          Add a QueryPart to 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.
 boolean equals(java.lang.Object o)
          Test this object for equality with another
 QueryNode.Operator getOperator()
          Returns the operator type for this expression.
 QueryNode.WebCacheQueryNode[] getQueryNodes()
          Returns the QueryNodes associated with this QueryNode.
 QueryPart.WebCacheQueryPart[] getQueryParts()
          Returns the QueryParts associated with this QueryNode.
 int hashCode()
          Return a hash code for this object
 void setOperator(QueryNode.Operator anOperator)
          Change the operator type for this expression.
 void setQueryNodes(QueryNode.WebCacheQueryNode[] nodes)
          Sets the QueryNodes associated with this QueryNode.
 void setQueryParts(QueryPart.WebCacheQueryPart[] parts)
          Changes the QueryParts associated with this QueryNode.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryNode.WebCacheQueryNode

public QueryNode.WebCacheQueryNode(ArtifactCacheManager.Context cntxt,
                                   QueryNode.Operator anOperator)
Creates a new QueryNode of the specified type.

Parameters:
anOperator - a Boolean condition of AND, OR or NOT
Method Detail

appendQueryNode

public void appendQueryNode(QueryNode.WebCacheQueryNode node)
Add a QueryNode to the end of the list.

Parameters:
node - the QueryNode to append.

appendQueryPart

public void appendQueryPart(QueryPart.WebCacheQueryPart part)
Add a QueryPart to the end of the list.

Parameters:
part - the QueryPart to append

getQueryNodes

public QueryNode.WebCacheQueryNode[] getQueryNodes()
Returns the QueryNodes associated with this QueryNode. These nodes can be thought of as sub-expressions.

Returns:
the QueryParts associated with this QueryNode.

setQueryNodes

public void setQueryNodes(QueryNode.WebCacheQueryNode[] nodes)
Sets the QueryNodes associated with this QueryNode. These nodes can be thought of as sub-expressions.

Parameters:
nodes - the QueryParts associated with this QueryNode.

clearQueryNodes

public void clearQueryNodes()
A convenience method to remove all query nodes.


clearQueryParts

public void clearQueryParts()
A convenience method to remove all query parts.


setQueryParts

public void setQueryParts(QueryPart.WebCacheQueryPart[] parts)
Changes the QueryParts associated with this QueryNode. Cannot be null.

Parameters:
parts - the new QueryParts to associate with this QueryNode.

getQueryParts

public QueryPart.WebCacheQueryPart[] getQueryParts()
Returns the QueryParts associated with this QueryNode. A QueryPart defines an expression on a single property of an item.

Returns:
the QueryParts associated with this QueryNode.

getOperator

public QueryNode.Operator getOperator()
Returns the operator type for this expression.

See Also:
QueryNode.Operator.AND, QueryNode.Operator.OR, QueryNode.Operator.NOT

setOperator

public void setOperator(QueryNode.Operator anOperator)
Change the operator type for this expression.

Parameters:
anOperator - the type of condition: OP_AND or OP_OR or OP_NOT
See Also:
QueryNode.Operator.AND, QueryNode.Operator.OR, QueryNode.Operator.NOT

equals

public boolean equals(java.lang.Object o)
Test this object for equality with another

Overrides:
equals in class java.lang.Object
Parameters:
o - the object to test against

hashCode

public int hashCode()
Return a hash code for this object

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code for this object


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.