com.starteam
Class QueryNode.Operator

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

public static final class QueryNode.Operator
extends java.lang.Object

The standard operands OR, AND and NOT


Field Summary
static QueryNode.Operator[] ALL
          All valid query node operator
static QueryNode.Operator AND
          A constant defining an AND query expression.
static QueryNode.Operator NOT
          A constant defining a NOT query expression.
static QueryNode.Operator OR
          A constant defining an OR query expression.
 
Method Summary
 boolean equals(java.lang.Object o)
          tests the two operators for equality
static QueryNode.Operator fromID(int id)
          Gets the Query Node operator corresponding to the given ID.
 int getID()
          The ID of the corresponding Operator.
 int hashCode()
          returns the hash code for this operator
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AND

public static final QueryNode.Operator AND
A constant defining an AND query expression.


OR

public static final QueryNode.Operator OR
A constant defining an OR query expression.


NOT

public static final QueryNode.Operator NOT
A constant defining a NOT query expression. This is not available on all servers.


ALL

public static final QueryNode.Operator[] ALL
All valid query node operator

Method Detail

getID

public int getID()
The ID of the corresponding Operator.

Returns:
The ID of this Operator value.

equals

public boolean equals(java.lang.Object o)
tests the two operators for equality

Overrides:
equals in class java.lang.Object
Parameters:
o - the Operator to test against
Returns:
true if the two operators are considered equal

hashCode

public int hashCode()
returns the hash code for this operator

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

fromID

public static QueryNode.Operator fromID(int id)
Gets the Query Node operator corresponding to the given ID.

Parameters:
id - The ID of an QueryNode.Operator#AND.
Returns:
The corresponding QueryNode.Operator#AND value, or null.


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