org.eclipse.datatools.connectivity.oda.spec.valueexpr
Class CombinedValueExpression

java.lang.Object
  extended by org.eclipse.datatools.connectivity.oda.spec.ValueExpression
      extended by org.eclipse.datatools.connectivity.oda.spec.valueexpr.CombinedValueExpression

public class CombinedValueExpression
extends ValueExpression

A complex value expression whose value is resolved by combining two value expressions with a combined operator.

Since:
3.2.2 (DTP 1.7.2)

Field Summary
 
Fields inherited from class org.eclipse.datatools.connectivity.oda.spec.ValueExpression
UNKNOWN_ODA_DATA_TYPE
 
Constructor Summary
CombinedValueExpression(ValueExpression leftExpr, CombinedValueExpressionOperator operator, ValueExpression rightExpr)
           
 
Method Summary
 CombinedValueExpressionOperator getCombinedOperator()
          Returns the combined operator.
 ValueExpression getLeftExpression()
          Returns the left value expression.
 java.lang.String getName()
          Gets the name of this value expression type.
 java.lang.Integer getOdaDataType()
          Gets the ODA-defined code value of this variable's data type.
 ValueExpression getRightExpression()
          Returns the right value expression.
 java.lang.String toString()
           
 void validateSyntax(ValidationContext context)
          Performs syntactic validation of this expression in the specified context.
 
Methods inherited from class org.eclipse.datatools.connectivity.oda.spec.ValueExpression
getQualifiedId, getVariableType, setOdaDataType, validate, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CombinedValueExpression

public CombinedValueExpression(ValueExpression leftExpr,
                               CombinedValueExpressionOperator operator,
                               ValueExpression rightExpr)
Method Detail

getLeftExpression

public ValueExpression getLeftExpression()
Returns the left value expression.

Returns:
an instance of ValueExpression

getRightExpression

public ValueExpression getRightExpression()
Returns the right value expression.

Returns:
an instance of ValueExpression

getCombinedOperator

public CombinedValueExpressionOperator getCombinedOperator()
Returns the combined operator.

Returns:

validateSyntax

public void validateSyntax(ValidationContext context)
                    throws OdaException
Description copied from class: ValueExpression
Performs syntactic validation of this expression in the specified context.

Specified by:
validateSyntax in class ValueExpression
Parameters:
context - context for validation; may be null which would limit the scope of validation
Throws:
OdaException - if validation failed. The concrete cause is defined by the subclass implementing this method.

getName

public java.lang.String getName()
Description copied from class: ValueExpression
Gets the name of this value expression type. It may be used to identify this in user messages or logging.

Overrides:
getName in class ValueExpression
Returns:
name of this value expression

getOdaDataType

public java.lang.Integer getOdaDataType()
Description copied from class: ValueExpression
Gets the ODA-defined code value of this variable's data type. This serves as an optional hint that may have been specified based on the resolved expression.

Overrides:
getOdaDataType in class ValueExpression
Returns:
the ODA data type code of this variable, or null if not available

toString

public java.lang.String toString()
Overrides:
toString in class ValueExpression