org.eclipse.ocl.examples.domain.values.impl
Class RangeOrderedSetValueImpl

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.values.util.ValuesUtil
      extended by org.eclipse.ocl.examples.domain.values.impl.ValueImpl
          extended by org.eclipse.ocl.examples.domain.values.impl.CollectionValueImpl
              extended by org.eclipse.ocl.examples.domain.values.impl.OrderedSetValueImpl
                  extended by org.eclipse.ocl.examples.domain.values.impl.RangeOrderedSetValueImpl
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>, CollectionValue, OrderedCollectionValue, OrderedSetValue, UniqueCollectionValue, Value

public class RangeOrderedSetValueImpl
extends OrderedSetValueImpl

Generated
NOT

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.domain.values.OrderedSetValue
OrderedSetValue.Accumulator
 
Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.domain.values.impl.CollectionValueImpl
elements, EMPTY_ITERATOR, typeId
 
Fields inherited from class org.eclipse.ocl.examples.domain.values.util.ValuesUtil
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_VALUE, ZERO_VALUE
 
Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value
INVALID_NAME
 
Constructor Summary
RangeOrderedSetValueImpl(CollectionTypeId typeId, IntegerRange range)
           
 
Method Summary
 OrderedSetValue append(java.lang.Object value)
           
 IntegerValue count(java.lang.Object value)
          Implementation of the OCL Collection::count(object : T) : Integer operation.
protected  java.util.List<java.lang.Object> createElements()
           
 boolean equals(java.lang.Object obj)
           
 Value first()
           
 OrderedSetValue flatten()
           
 IntegerRange getElements()
           
 OrderedSetValue including(java.lang.Object value)
           
 Value last()
           
 OrderedSetValue prepend(java.lang.Object value)
           
 SequenceValue toSequenceValue()
           
 void toString(java.lang.StringBuilder s, int lengthLimit)
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.OrderedSetValueImpl
appendAll, asOrderedCollectionValue, asOrderedSetValue, asUniqueCollectionValue, at, eStaticClass, excluding, excludingAll, getKind, includingAll, indexOf, insertAt, isOrdered, isUnique, minus, prependAll, reverse, sort, subOrderedSet, symmetricDifference
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.CollectionValueImpl
asBagValue, asCollection, asCollectionValue, asEcoreObject, asEcoreObject, asEcoreObjects, asList, asObject, asSequenceValue, asSetValue, checkElementsAreUnique, excludes, excludesAll, flatten, getBagTypeId, getElementTypeId, getObject, getOrderedSetTypeId, getSequenceTypeId, getSetTypeId, getTypeId, hashCode, includes, includesAll, initStatics, intersection, intSize, isEmpty, iterable, iterator, notEmpty, product, size, toString, union
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.ValueImpl
asDouble, asElement, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asRealValue, asTupleValue, asUnlimitedNaturalValue, getTypeName, isInvalid, isUndefined
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.util.ValuesUtil
asBagValue, asBoolean, asCollectionType, asCollectionValue, asInteger, asIntegerValue, asMetaclass, asNavigableObject, asObject, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asTupleValue, asType, asUniqueCollectionValue, asUnlimitedNaturalValue, asValue, bigDecimalValueOf, bigIntegerValueOf, characterValueOf, createBagAccumulatorValue, createBagOfEach, createBagRange, createBagValue, createCollectionAccumulatorValue, createInvalidValue, createObjectValue, createOrderedSetAccumulatorValue, createOrderedSetOfEach, createOrderedSetRange, createOrderedSetValue, createRange, createSequenceAccumulatorValue, createSequenceOfEach, createSequenceRange, createSequenceRange, createSequenceValue, createSetAccumulatorValue, createSetOfEach, createSetRange, createSetValue, createTupleOfEach, createTupleValue, createTupleValue, createTypeValue, getEcoreNumber, getTypeName, initAllStatics, integerValueOf, integerValueOf, integerValueOf, integerValueOf, integerValueOf, isBoxed, isCollectionValue, isIntegerNumber, isIntegerValue, isRealNumber, isUnboxed, isUnlimited, oclToString, realValueOf, realValueOf, realValueOf, realValueOf, realValueOf, stringValueOf, throwBooleanInvalidValueException, throwInvalidValueException, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.domain.values.CollectionValue
asCollection, asEcoreObject, asEcoreObject, asEcoreObjects, excludes, excludesAll, flatten, getTypeId, includes, includesAll, intersection, intSize, isEmpty, iterable, iterator, notEmpty, product, size, union
 
Methods inherited from interface org.eclipse.ocl.examples.domain.values.Value
asBagValue, asCollectionValue, asDouble, asElement, asInteger, asIntegerValue, asNavigableObject, asObject, asObjectValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUnlimitedNaturalValue, isInvalid, isUndefined
 

Constructor Detail

RangeOrderedSetValueImpl

public RangeOrderedSetValueImpl(@NonNull
                                CollectionTypeId typeId,
                                @NonNull
                                IntegerRange range)
Method Detail

append

@NonNull
public OrderedSetValue append(@Nullable
                                      java.lang.Object value)

count

@NonNull
public IntegerValue count(@Nullable
                                  java.lang.Object value)
Description copied from class: CollectionValueImpl
Implementation of the OCL Collection::count(object : T) : Integer operation.

Specified by:
count in interface CollectionValue
Overrides:
count in class CollectionValueImpl
Returns:
the number of occurrences of the object in the collection

createElements

protected java.util.List<java.lang.Object> createElements()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OrderedSetValueImpl

first

@Nullable
public Value first()

flatten

@NonNull
public OrderedSetValue flatten()

getElements

@NonNull
public IntegerRange getElements()
Specified by:
getElements in interface CollectionValue
Overrides:
getElements in class CollectionValueImpl

including

@NonNull
public OrderedSetValue including(@Nullable
                                         java.lang.Object value)

last

@Nullable
public Value last()

prepend

@NonNull
public OrderedSetValue prepend(@Nullable
                                       java.lang.Object value)

toSequenceValue

public SequenceValue toSequenceValue()

toString

public void toString(@NonNull
                     java.lang.StringBuilder s,
                     int lengthLimit)
Specified by:
toString in interface Value
Overrides:
toString in class CollectionValueImpl