oracle.panama.model
Class Operator
java.lang.Object
oracle.panama.model.Operator
- public class Operator
- extends java.lang.Object
Enumeration of conjunctive and disjunctive operators.
Field Summary |
static Operator |
AND
static operator object representing AND relationship. |
static Operator |
OR
Static operator object representing OR relationship. |
Method Summary |
static Operator |
getOperator(java.lang.String op)
For getting the operator given a string representation. |
java.lang.String |
toString()
Returns the string representation of the operator |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AND
public static final Operator AND
- static operator object representing AND relationship.
OR
public static final Operator OR
- Static operator object representing OR relationship.
getOperator
public static Operator getOperator(java.lang.String op)
- For getting the operator given a string representation.
-
- Parameters:
op
- The string representation of the operation. Should only be either "AND" or "OR".
- Returns:
- The operator object that maps to the string representation.
- Throws:
java.lang.IllegalArgumentException
- If the string representation given is invalid.
toString
public java.lang.String toString()
- Returns the string representation of the operator
-
- Returns:
- the string representation of the operator
Copyright © 2004 Oracle Corporation. All Rights Reserved.