public class TupleValueImpl extends ValueImpl implements TupleValue
EMPTY_BAG, EMPTY_SET, FALSE_VALUE, INTEGER_MAX_VALUE, INTEGER_MIN_VALUE, INVALID_VALUE, LONG_MAX_VALUE, LONG_MIN_VALUE, NULL_STRING, NULL_VALUE, ONE_VALUE, TRUE_VALUE, UNLIMITED_ONE_VALUE, UNLIMITED_VALUE, ZERO_VALUE
INVALID_NAME
Constructor and Description |
---|
TupleValueImpl(TupleTypeId tupleTypeId,
Map<? extends TuplePartId,Object> values)
Initializes me with a map of part values.
|
TupleValueImpl(TupleTypeId tupleTypeId,
Object... values)
Convenience constructor to initialize me with a list of values as
required by the Collection::product() operation.
|
Modifier and Type | Method and Description |
---|---|
Object |
asObject() |
TupleValue |
asTupleValue() |
boolean |
equals(Object o) |
TupleTypeId |
getTypeId()
Obtains the tuple's type.
|
Object |
getValue(int index)
Queries the value of the specified tuple part at 0-based index corresponding to the position of the
required part-name in the alphabetically sorted list of all part-names.
|
Object |
getValue(TuplePartId partId)
Queries the value of the specified tuple part.
|
int |
hashCode() |
void |
toString(StringBuilder s,
int sizeLimit) |
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asUnboxedObject, asUniqueCollectionValue, asUnlimitedNaturalValue, getTypeName, isInvalid, isUndefined
asBagValue, asBoolean, asClass, asCollectionType, asCollectionValue, asInteger, asIntegerValue, asMapType, asMapValue, asNavigableObject, asNavigableObject, asObject, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asTupleValue, asType, asUniqueCollectionValue, asUnlimitedNaturalValue, asValue, bigDecimalValueOf, bigIntegerValueOf, byteValueOf, characterValueOf, computeCollectionHashCode, createBagAccumulatorValue, createBagOfEach, createBagRange, createBagValue, createCollectionAccumulatorValue, createInvalidValue, createMapEntry, createMapOfEach, createMapValue, createObjectValue, createOrderedSetAccumulatorValue, createOrderedSetOfEach, createOrderedSetRange, createOrderedSetValue, createRange, createSequenceAccumulatorValue, createSequenceOfEach, createSequenceRange, createSequenceRange, createSequenceValue, createSetAccumulatorValue, createSetOfEach, createSetRange, createSetValue, createTupleOfEach, createTupleValue, doubleValueOf, floatValueOf, getElementIdName, getExecutor, getTypeName, initAllStatics, integerValueOf, integerValueOf, integerValueOf, integerValueOf, integerValueOf, intValueOf, isBoxed, isCollectionValue, isEcore, isIntegerNumber, isIntegerValue, isRealNumber, isUnboxed, isUnlimited, longValueOf, numberValueOf, oclToString, realValueOf, realValueOf, realValueOf, realValueOf, realValueOf, shortValueOf, stringValueOf, throwBooleanInvalidValueException, throwInvalidValueException, throwUnsupportedCompareTo, toString, typedIterable, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf
getClass, notify, notifyAll, toString, wait, wait, wait
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asUnboxedObject, asUniqueCollectionValue, asUnlimitedNaturalValue, isInvalid, isUndefined
public TupleValueImpl(TupleTypeId tupleTypeId, Map<? extends TuplePartId,Object> values)
tupleTypeId
- my typevalues
- my partspublic TupleValueImpl(TupleTypeId tupleTypeId, Object... values)
tupleTypeId
- my typevalues
- my values which are aligned to the tupleTypeId.getParts()public TupleValue asTupleValue()
asTupleValue
in interface Value
asTupleValue
in class ValueImpl
public TupleTypeId getTypeId()
TupleValue
getTypeId
in interface TupleValue
getTypeId
in interface Value
public Object getValue(TuplePartId partId)
TupleValue
getValue
in interface TupleValue
partId
- the tuple part (as an attribute)public Object getValue(int index)
TupleValue
getValue
in interface TupleValue
public void toString(StringBuilder s, int sizeLimit)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.