org.eclipse.ocl.examples.pivot.values
Interface TupleValue

All Superinterfaces:
Value
All Known Implementing Classes:
TupleValueImpl

public interface TupleValue
extends Value

Interface of a tuple instance value. OCL expressions resulting in tuples yield instances of this interface.

Author:
Christian W. Damus (cdamus)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.values.Value
Value.BinaryOperation
 
Field Summary
 
Fields inherited from interface org.eclipse.ocl.examples.pivot.values.Value
INVALID_NAME
 
Method Summary
 TupleType getTupleType()
          Obtains the tuple's type.
 Value getValue(Property part)
          Queries the value of the specified tuple part.
 Value getValue(java.lang.String partName)
          Queries the value of the specified tuple part.
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.Value
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asElement, asElementValue, asInteger, asIntegerValue, asObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, asValidValue, getType, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toRealValue, toString
 

Method Detail

getTupleType

TupleType getTupleType()
Obtains the tuple's type.

Returns:
its type

getValue

Value getValue(java.lang.String partName)
Queries the value of the specified tuple part.

Parameters:
partName - the name of the part
Returns:
the corresponding value

getValue

Value getValue(Property part)
Queries the value of the specified tuple part.

Parameters:
part - the tuple part (as an attribute)
Returns:
the corresponding value