Skip navigation links

Oracle® OLAP Java API Reference
11g Release 1 (11.1)

B28128-01


oracle.olapi.syntax
Class BinaryOperatorCondition

java.lang.Object
  extended by oracle.olapi.syntax.SyntaxObject
      extended by oracle.olapi.syntax.DataObject
          extended by oracle.olapi.syntax.Expression
              extended by oracle.olapi.syntax.Condition
                  extended by oracle.olapi.syntax.BinaryOperatorCondition

All Implemented Interfaces:
FunctionArgument

public final class BinaryOperatorCondition
extends Condition

A Condition that represents a logical AND or OR condition that operates on two component Condition objects.


Field Summary
static java.lang.String OP_AND
          A constant that represents the logical operator AND.
static java.lang.String OP_OR
          A constant that represents the logical operator OR.

 

Constructor Summary
BinaryOperatorCondition(Condition[] arguments, java.lang.String operator)
          Creates a new BinaryOperatorCondition that has the specified arguments and operator.
BinaryOperatorCondition(Condition lhsArgument, java.lang.String operator, Condition rhsArgument)
          Creates a new BinaryOperatorCondition that has the specified left-hand-side and right-hand-side arguments and operator.

 

Method Summary
 Condition[] getArguments()
          Gets the arguments for this BinaryOperatorCondition.
 java.lang.String getOperator()
          Gets the operator for this BinaryOperatorCondition, which is either AND or OR.
 java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
          Calls the visitBinaryOperatorCondition method of the SyntaxObjectVisitor and passes that method this BinaryOperatorCondition and an Object.

 

Methods inherited from class oracle.olapi.syntax.Condition
and, isCompositeObject, not, or

 

Methods inherited from class oracle.olapi.syntax.Expression
getSource

 

Methods inherited from class oracle.olapi.syntax.SyntaxObject
fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

OP_AND

public static final java.lang.String OP_AND
A constant that represents the logical operator AND.
See Also:
Constant Field Values

OP_OR

public static final java.lang.String OP_OR
A constant that represents the logical operator OR.
See Also:
Constant Field Values

Constructor Detail

BinaryOperatorCondition

public BinaryOperatorCondition(Condition[] arguments,
                               java.lang.String operator)
Creates a new BinaryOperatorCondition that has the specified arguments and operator.
Parameters:
arguments - An array of at least two Condition objects.
operator - The operator to use, either OP_AND or OP_OR.

BinaryOperatorCondition

public BinaryOperatorCondition(Condition lhsArgument,
                               java.lang.String operator,
                               Condition rhsArgument)
Creates a new BinaryOperatorCondition that has the specified left-hand-side and right-hand-side arguments and operator.
Parameters:
lhsArgument - The Condition to use as the left-hand-side argument.
operator - The operator to use, either OP_AND or OP_OR.
rhsArgument - The Condition to use as the right-hand-side argument.

Method Detail

visit

public java.lang.Object visit(SyntaxObjectVisitor visitor,
                              java.lang.Object context)
Calls the visitBinaryOperatorCondition method of the SyntaxObjectVisitor and passes that method this BinaryOperatorCondition and an Object.
Specified by:
visit in class SyntaxObject
Parameters:
visitor - A SyntaxObjectVisitor.
context - An Object.
Returns:
The Object returned by the visitBinaryOperatorCondition method.

getOperator

public java.lang.String getOperator()
Gets the operator for this BinaryOperatorCondition, which is either AND or OR.
Returns:
A String that contains AND or OR.

getArguments

public Condition[] getArguments()
Gets the arguments for this BinaryOperatorCondition.
Returns:
An array of Condition objects that are the left-hand-side and right-hand-side arguments for this BinaryOperatorCondition.

Skip navigation links

Copyright © 2002, 2007, Oracle. All rights reserved.