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

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
All Implemented Interfaces:
java.lang.Iterable<Value>, CollectionValue, SequenceValue, Value
Direct Known Subclasses:
SequenceValueImpl.Accumulator

public class SequenceValueImpl
extends AbstractSequenceValue<java.util.List<Value>>


Nested Class Summary
static class SequenceValueImpl.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(ValueFactory valueFactory, DomainCollectionType type, java.util.Collection<? extends Value> elements)
           
SequenceValueImpl(ValueFactory valueFactory, DomainCollectionType type, java.util.List<Value> elements)
           
SequenceValueImpl(ValueFactory valueFactory, DomainCollectionType type, Value... elements)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static SequenceValue union(ValueFactory valueFactory, DomainCollectionType type, CollectionValue left, CollectionValue right)
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractSequenceValue
append, 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, count, excludes, excludesAll, flatten, getCollectionType, includes, includesAll, intersection, intSize, isEmpty, iterator, maxMin, notEmpty, product, selectByKind, selectByType, size, sum, 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, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, asValidValue, getActualType, getType, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue
 

Constructor Detail

SequenceValueImpl

public SequenceValueImpl(ValueFactory valueFactory,
                         DomainCollectionType type,
                         Value... elements)

SequenceValueImpl

public SequenceValueImpl(ValueFactory valueFactory,
                         DomainCollectionType type,
                         java.util.Collection<? extends Value> elements)

SequenceValueImpl

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

union

public static SequenceValue union(ValueFactory valueFactory,
                                  DomainCollectionType type,
                                  CollectionValue left,
                                  CollectionValue right)
                           throws InvalidValueException
Throws:
InvalidValueException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractSequenceValue<java.util.List<Value>>