org.eclipse.ocl.examples.domain.values.impl
Class SequenceValueImpl.Accumulator

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.domain.values.impl.AbstractedCollectionValue
          extended by org.eclipse.ocl.examples.domain.values.impl.AbstractCollectionValue<L>
              extended by org.eclipse.ocl.examples.domain.values.impl.AbstractSequenceValue<java.util.List<Value>>
                  extended by org.eclipse.ocl.examples.domain.values.impl.SequenceValueImpl
                      extended by org.eclipse.ocl.examples.domain.values.impl.SequenceValueImpl.Accumulator
All Implemented Interfaces:
java.lang.Iterable<Value>, CollectionValue, CollectionValue.Accumulator, SequenceValue, Value
Enclosing class:
SequenceValueImpl

public static class SequenceValueImpl.Accumulator
extends SequenceValueImpl
implements CollectionValue.Accumulator


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.ocl.examples.domain.values.impl.SequenceValueImpl
SequenceValueImpl.Accumulator
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.domain.values.CollectionValue
CollectionValue.Accumulator
 
Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractCollectionValue
elements
 
Fields inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractedCollectionValue
type
 
Fields inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractValue
valueFactory
 
Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value
INVALID_NAME
 
Constructor Summary
SequenceValueImpl.Accumulator(ValueFactory valueFactory, DomainCollectionType type)
           
SequenceValueImpl.Accumulator(ValueFactory valueFactory, DomainCollectionType type, java.util.List<Value> elements)
           
 
Method Summary
 boolean add(Value value)
           
 SequenceValue append(Value object)
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.SequenceValueImpl
equals, union
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractSequenceValue
asList, asSequenceValue, at, excluding, first, flatten, getKind, including, indexOf, insertAt, last, prepend, reverse, sort, subSequence, toSequenceValue, toString
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractCollectionValue
asBagValue, asEcoreObject, asOrderedSetValue, asSetValue, count, excludes, excludesAll, flatten, getBagType, getCollectionType, getElements, getElementType, getOrderedSetType, getSequenceType, getSetType, hashCode, includes, includesAll, intersection, intSize, iterator, maxMin, product, selectByKind, selectByType, sum, union
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractedCollectionValue
asCollection, asCollectionValue, asObject, asValidValue, getActualType, getType, isCollectionValue, isEmpty, notEmpty, size, toString
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractValue
asBoolean, asBooleanValue, asDouble, asElement, asElementValue, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asRealValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getValueFactory, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue
 
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, asList, count, excludes, excludesAll, excluding, flatten, flatten, getCollectionType, getKind, includes, includesAll, including, intersection, intSize, isEmpty, iterator, maxMin, notEmpty, product, selectByKind, selectByType, size, sort, sum, toSequenceValue, union
 
Methods inherited from interface org.eclipse.ocl.examples.domain.values.Value
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asEcoreObject, asElement, asElementValue, asInteger, asIntegerValue, asNavigableObject, asObject, asObjectValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, asValidValue, getActualType, getType, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue, toString
 

Constructor Detail

SequenceValueImpl.Accumulator

public SequenceValueImpl.Accumulator(ValueFactory valueFactory,
                                     DomainCollectionType type)

SequenceValueImpl.Accumulator

public SequenceValueImpl.Accumulator(ValueFactory valueFactory,
                                     DomainCollectionType type,
                                     java.util.List<Value> elements)
Method Detail

add

public boolean add(Value value)
Specified by:
add in interface CollectionValue.Accumulator

append

public SequenceValue append(Value object)
                     throws InvalidValueException
Specified by:
append in interface SequenceValue
Overrides:
append in class AbstractSequenceValue<java.util.List<Value>>
Throws:
InvalidValueException