org.eclipse.ocl.examples.domain.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)

Field Summary
 
Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value
INVALID_NAME
 
Method Summary
 DomainTupleType getType()
          Obtains the tuple's type.
 Value getValue(DomainTypedElement 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.domain.values.Value
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asEcoreObject, asElement, asElementValue, asInteger, asIntegerValue, asNavigableObject, asObject, asObjectValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, asValidValue, getActualType, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue, toString
 

Method Detail

getType

DomainTupleType getType()
Obtains the tuple's type.

Specified by:
getType in interface Value
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(DomainTypedElement part)
Queries the value of the specified tuple part.

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