oracle.mail.sdk.rule
Class OperatorType
java.lang.Object
|
+--oracle.xml.classgen.CGXSDElement
|
+--oracle.mail.sdk.rule.RuleElement
|
+--oracle.mail.sdk.rule.OperatorType
- public class OperatorType
- extends RuleElement
This class represents a condition operator. An operator if operates on string values, can be either case sensitive or not case sensitive. The choices of operators are:
- equal: test whether an attribute numerically equal to the operand.
- greaterthan: test whether an attribute numerically greater than the operand.
- greaterequal: greater than or equal to.
- lessthan: reverse of greaterequal.
- lessequal: reverse of greaterthan.
- between: requires two operands for lower bound and upper bound.
- in: requires one or more operands to form a discreet list and test whether the attribute value is present in the list.
- stringequal: test whether a string attribute is the same as the operand.
- startswith: test whether the operand is a prefix of the attribute.
- endswith: test whether the operand is a suffix of the attribute.
- contains: test whether the operand is a substring of the attribute.
- isnull: test whether the attribute value is NULL (empty string).
- Since:
- 9.0
- Version:
- $Header: OperatorType.java 10-jan-2002.17:06:26 haye Exp $
- See Also:
ConditionType
Constructor Summary |
OperatorType(java.lang.String theoperator)
Creates an operator object from an operator name |
Method Summary |
java.lang.String |
getCaseSensitive()
Gets the case sensitiveness of this operator |
java.lang.String |
getOp()
Gets the operator name |
void |
setCaseSensitive(java.lang.String thecaseSensitive)
Sets the case sensitiveness of this operator |
Methods inherited from class oracle.xml.classgen.CGXSDElement |
getAttributes, getChildElements, getNodeValue, print, printAttributes |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OperatorType
public OperatorType(java.lang.String theoperator)
throws oracle.xml.classgen.InvalidContentException
- Creates an operator object from an operator name
-
- Parameters:
theoperator
- name of the operator
- Throws:
- oracle.xml.classgen.InvalidContentException - invalid operator
getOp
public java.lang.String getOp()
- Gets the operator name
-
- Returns:
- operator name
setCaseSensitive
public void setCaseSensitive(java.lang.String thecaseSensitive)
throws java.lang.IllegalArgumentException,
oracle.xml.classgen.InvalidContentException
- Sets the case sensitiveness of this operator
-
- Parameters:
thecaseSensitive
- either yes or no
- Throws:
- oracle.xml.classgen.InvalidContentException - invalid input
getCaseSensitive
public java.lang.String getCaseSensitive()
- Gets the case sensitiveness of this operator
-
- Returns:
- either yes or no
Copyright © 1988, 2003 Oracle Corporation. All Rights Reserved.