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

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.pivot.values.impl.AbstractedCollectionValue
          extended by org.eclipse.ocl.examples.pivot.values.impl.AbstractCollectionValue<L>
              extended by org.eclipse.ocl.examples.pivot.values.impl.AbstractSequenceValue<java.util.List<Value>>
                  extended by org.eclipse.ocl.examples.pivot.values.impl.SequenceValueImpl
All Implemented Interfaces:
java.lang.Iterable<Value>, CollectionValue, NonUniqueCollectionValue, OrderedCollectionValue, SequenceValue, Value
Direct Known Subclasses:
SequenceValueImpl.Accumulator

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


Nested Class Summary
static class SequenceValueImpl.Accumulator
           
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.values.Value
Value.BinaryOperation
 
Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractCollectionValue
elements
 
Fields inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
valueFactory
 
Fields inherited from interface org.eclipse.ocl.examples.pivot.values.Value
INVALID_NAME
 
Constructor Summary
SequenceValueImpl(ValueFactory valueFactory, java.util.Collection<? extends Value> elements)
           
SequenceValueImpl(ValueFactory valueFactory, java.util.List<Value> elements)
           
SequenceValueImpl(ValueFactory valueFactory, Value... elements)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Type getType(TypeManager typeManager, Type staticType)
           
static SequenceValue union(ValueFactory valueFactory, CollectionValue left, CollectionValue right)
           
 
Methods inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractSequenceValue
append, asList, asOrderedCollectionValue, asSequenceValue, at, excluding, first, flatten, getKind, including, indexOf, insertAt, last, prepend, reverse, sort, subSequence, toOrderedCollectionValue, toString
 
Methods inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractCollectionValue
count, excludes, excludesAll, flatten, getElements, hashCode, includes, includesAll, intersection, intSize, iterator, maxMin, product, sum, union
 
Methods inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractedCollectionValue
asBagValue, asCollection, asCollectionValue, asObject, asOrderedSetValue, asSetValue, asValidValue, isCollectionValue, isEmpty, notEmpty, size, toString
 
Methods inherited from class org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
asBoolean, asBooleanValue, asDouble, asElement, asElementValue, asInteger, asIntegerValue, asObjectValue, asRealValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getValueFactory, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toRealValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.CollectionValue
asCollection, count, excludes, excludesAll, flatten, includes, includesAll, intersection, intSize, isEmpty, iterator, maxMin, notEmpty, product, size, sum, union
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.values.Value
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asElement, asElementValue, asInteger, asIntegerValue, asObject, asObjectValue, asOrderedSetValue, asRealValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, asValidValue, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toRealValue
 

Constructor Detail

SequenceValueImpl

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

SequenceValueImpl

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

SequenceValueImpl

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

union

public static SequenceValue union(ValueFactory valueFactory,
                                  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>>

getType

public Type getType(TypeManager typeManager,
                    Type staticType)