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

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

public class NestedValueExpression
extends ValueExpression

A complex value expression with a nested expression.

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
NestedValueExpression(ValueExpression nestedExpr)
           
 
Method Summary
 java.lang.String getName()
          Gets the name of this value expression type.
 ValueExpression getNestedExpression()
          Returns the nested value expression.
 java.lang.Integer getOdaDataType()
          Gets the ODA-defined code value of this variable's data type.
 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

NestedValueExpression

public NestedValueExpression(ValueExpression nestedExpr)
Method Detail

getNestedExpression

public ValueExpression getNestedExpression()
Returns the nested value expression.

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