public abstract class SequenceValueImpl extends CollectionValueImpl implements SequenceValue
SequenceValue.Accumulator
EMPTY_ITERATOR
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 |
---|
SequenceValueImpl(CollectionTypeId typeId,
List<? extends Object> values) |
asBagValue, asCollection, asCollectionValue, asEcoreObject, asEcoreObjects, asObject, asOrderedSetValue, asSetValue, count, excludes, excludesAll, flatten, getBagTypeId, getElementTypeId, getObject, getOrderedSetTypeId, getSequenceTypeId, getSetTypeId, getTypeId, hashCode, includes, includesAll, initStatics, intersection, intSize, isEmpty, iterable, iterator, notEmpty, product, size, toString, union
asDouble, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObjectValue, asRealValue, asTupleValue, 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
asCollection, asEcoreObject, asEcoreObjects, count, excludes, excludesAll, flatten, getTypeId, includes, includesAll, intersection, intSize, isEmpty, iterable, iterator, notEmpty, product, size, union
asBagValue, asCollectionValue, asDouble, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObject, asObjectValue, asOrderedSetValue, asRealValue, asSetValue, asTupleValue, asUniqueCollectionValue, asUnlimitedNaturalValue, isInvalid, isUndefined
forEach, spliterator
public SequenceValueImpl(CollectionTypeId typeId, List<? extends Object> values)
public OrderedCollectionValue append(Object object)
append
in interface OrderedCollectionValue
public OrderedCollectionValue appendAll(OrderedCollectionValue objects)
appendAll
in interface OrderedCollectionValue
public List<? extends Object> asList()
asList
in class CollectionValueImpl
public OrderedCollectionValue asOrderedCollectionValue()
asOrderedCollectionValue
in interface Value
asOrderedCollectionValue
in class ValueImpl
public SequenceValue asSequenceValue()
asSequenceValue
in interface Value
asSequenceValue
in class CollectionValueImpl
public List<Object> asUnboxedObject(IdResolver idResolver)
Value
A thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things, Bag/Set/OrderedSet/List for collections
asUnboxedObject
in interface Value
asUnboxedObject
in class ValueImpl
public Object at(int index)
at
in interface OrderedCollectionValue
public SequenceValue excluding(Object value)
excluding
in interface CollectionValue
public SequenceValue excludingAll(CollectionValue values)
excludingAll
in interface CollectionValue
public Object first()
first
in interface OrderedCollectionValue
public SequenceValue flatten()
flatten
in interface CollectionValue
public List<? extends Object> getElements()
getElements
in interface CollectionValue
getElements
in class CollectionValueImpl
public String getKind()
getKind
in interface CollectionValue
public SequenceValue including(Object value)
including
in interface CollectionValue
public SequenceValue includingAll(CollectionValue values)
includingAll
in interface CollectionValue
public IntegerValue indexOf(Object object)
indexOf
in interface OrderedCollectionValue
public SequenceValue insertAt(int index, Object object)
insertAt
in interface OrderedCollectionValue
public boolean isOrdered()
isOrdered
in interface CollectionValue
public boolean isUnique()
isUnique
in interface CollectionValue
public Object last()
last
in interface OrderedCollectionValue
public SequenceValue prepend(Object object)
prepend
in interface OrderedCollectionValue
public SequenceValue prependAll(OrderedCollectionValue objects)
prependAll
in interface OrderedCollectionValue
public SequenceValue reverse()
reverse
in interface OrderedCollectionValue
public SequenceValue sort(Comparator<Object> comparator)
sort
in interface CollectionValue
public SequenceValue subSequence(int lower, int upper)
subSequence
in interface SequenceValue
lower
- the 1-based (in OCL fashion) inclusive lower boundupper
- the 1-based (in OCL fashion) inclusive upper boundIndexOutOfBoundsException
- if an index is out of boundsIllegalArgumentException
- if the lower bound is greater than the upperpublic SequenceValue toSequenceValue()
toSequenceValue
in interface CollectionValue
public void toString(StringBuilder s, int lengthLimit)
toString
in interface Value
toString
in class CollectionValueImpl
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.