Skip navigation links
oracle.olapi.syntax
Class NotCondition
java.lang.Object
oracle.olapi.syntax.SyntaxObject
oracle.olapi.syntax.DataObject
oracle.olapi.syntax.Expression
oracle.olapi.syntax.Condition
oracle.olapi.syntax.NotCondition
- All Implemented Interfaces:
- FunctionArgument
-
public final class NotCondition
- extends Condition
A Condition that represents a NOT condition, which negates, or reverses, the Boolean value of the base condition. A NotCondition evaluates to true if the base condition evaluates to false. It evaluates to false if the base condition evaluates to true. If the base condition evaluates to UNKNOWN, then the NotCondition evaluates to UNKNOWN.
| Constructor Summary |
NotCondition(Condition baseCondition)
Creates a new NotCondition that negates the value of the base condition. |
| Method Summary |
Condition |
getBaseCondition()
Gets the base condition for this NotCondition. |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the visitNotCondition method of the SyntaxObjectVisitor and passes that method this NotCondition and an Object. |
| Methods inherited from class oracle.olapi.syntax.SyntaxObject |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotCondition
public NotCondition(Condition baseCondition)
- Creates a new
NotCondition that negates the value of the base condition.
- Parameters:
baseCondition - A Condition that evaluates to a Boolean or unknown value.
visit
public java.lang.Object visit(SyntaxObjectVisitor visitor,
java.lang.Object context)
- Calls the
visitNotCondition method of the SyntaxObjectVisitor and passes that method this NotCondition and an Object.
-
- Specified by:
visit in class SyntaxObject
-
- Parameters:
visitor - A SyntaxObjectVisitor.
context - An Object.
- Returns:
- The
Object returned by the visitNotCondition method.
getBaseCondition
public Condition getBaseCondition()
- Gets the base condition for this
NotCondition.
-
- Returns:
- The
Condition to negate.
Skip navigation links