org.eclipse.ocl.util
Interface Tuple<O,P>


public interface Tuple<O,P>

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

Author:
Christian W. Damus (cdamus)

Method Summary
 TupleType<O,P> getTupleType()
          Obtains the tuple's type.
 java.lang.Object getValue(P part)
          Queries the value of the specified tuple part.
 java.lang.Object getValue(java.lang.String partName)
          Queries the value of the specified tuple part.
 

Method Detail

getTupleType

TupleType<O,P> getTupleType()
Obtains the tuple's type.

Returns:
its type

getValue

java.lang.Object 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

java.lang.Object getValue(P part)
Queries the value of the specified tuple part.

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