org.eclipse.ocl.examples.pivot.values
Interface OrderedCollectionValue

All Superinterfaces:
CollectionValue, java.lang.Iterable<Value>, Value
All Known Subinterfaces:
InvalidValue, NullValue, OrderedSetValue, SequenceValue
All Known Implementing Classes:
AbstractSequenceValue, AbstractUndefinedCollectionValue, AbstractUndefinedValue, IntegerRangeValueImpl, InvalidValueImpl, NullValueImpl, OCLConsolePage.ExceptionValue, OrderedSetValueImpl, OrderedSetValueImpl.Accumulator, SequenceValueImpl, SequenceValueImpl.Accumulator

public interface OrderedCollectionValue
extends CollectionValue


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.values.CollectionValue
CollectionValue.Accumulator
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.values.Value
Value.BinaryOperation
 
Field Summary
 
Fields inherited from interface org.eclipse.ocl.examples.pivot.values.Value
INVALID_NAME
 
Method Summary
 OrderedCollectionValue append(Value object)
           
 Value at(int index)
           
 Value first()
           
 IntegerValue indexOf(Value object)
           
 OrderedCollectionValue insertAt(int index, Value object)
           
 Value last()
           
 OrderedCollectionValue prepend(Value object)
           
 OrderedCollectionValue reverse()
           
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.CollectionValue
asCollection, asList, count, excludes, excludesAll, excluding, flatten, flatten, getKind, includes, includesAll, including, intersection, intSize, isEmpty, iterator, maxMin, notEmpty, product, size, sort, sum, toOrderedCollectionValue, union
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.Value
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asElement, asElementValue, asInteger, asIntegerValue, asObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, asValidValue, getType, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toRealValue, toString
 

Method Detail

append

OrderedCollectionValue append(Value object)
                              throws InvalidValueException
Throws:
InvalidValueException

at

Value at(int index)
         throws InvalidValueException
Throws:
InvalidValueException

first

Value first()
            throws InvalidValueException
Throws:
InvalidValueException

insertAt

OrderedCollectionValue insertAt(int index,
                                Value object)
                                throws InvalidValueException
Throws:
InvalidValueException

indexOf

IntegerValue indexOf(Value object)
                     throws InvalidValueException
Throws:
InvalidValueException

last

Value last()
           throws InvalidValueException
Throws:
InvalidValueException

prepend

OrderedCollectionValue prepend(Value object)
                               throws InvalidValueException
Throws:
InvalidValueException

reverse

OrderedCollectionValue reverse()
                               throws InvalidValueException
Throws:
InvalidValueException