org.eclipse.ocl.examples.pivot.values.impl
Class OrderedSetValueImpl
java.lang.Object
org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
org.eclipse.ocl.examples.pivot.values.impl.AbstractedCollectionValue
org.eclipse.ocl.examples.pivot.values.impl.AbstractCollectionValue<OrderedSet<Value>>
org.eclipse.ocl.examples.pivot.values.impl.OrderedSetValueImpl
- All Implemented Interfaces:
- java.lang.Iterable<Value>, CollectionValue, OrderedCollectionValue, OrderedSetValue, UniqueCollectionValue, Value
- Direct Known Subclasses:
- OrderedSetValueImpl.Accumulator
public class OrderedSetValueImpl
- extends AbstractCollectionValue<OrderedSet<Value>>
- implements OrderedSetValue
Fields inherited from interface org.eclipse.ocl.examples.pivot.values.Value |
INVALID_NAME |
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, asList, asObject, asSequenceValue, 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, 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, asList, 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, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asValidValue, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toRealValue |
OrderedSetValueImpl
public OrderedSetValueImpl(ValueFactory valueFactory,
Value... elements)
OrderedSetValueImpl
public OrderedSetValueImpl(ValueFactory valueFactory,
java.util.Collection<? extends Value> elements)
OrderedSetValueImpl
public OrderedSetValueImpl(ValueFactory valueFactory,
OrderedSet<Value> elements)
union
public static OrderedSetValue union(ValueFactory valueFactory,
CollectionValue left,
CollectionValue right)
throws InvalidValueException
- Throws:
InvalidValueException
append
public OrderedSetValue append(Value object)
throws InvalidValueException
- Specified by:
append
in interface OrderedCollectionValue
- Throws:
InvalidValueException
asOrderedCollectionValue
public OrderedCollectionValue asOrderedCollectionValue()
- Specified by:
asOrderedCollectionValue
in interface Value
- Overrides:
asOrderedCollectionValue
in class AbstractValue
asOrderedSetValue
public OrderedSetValueImpl asOrderedSetValue()
- Specified by:
asOrderedSetValue
in interface Value
- Overrides:
asOrderedSetValue
in class AbstractedCollectionValue
asUniqueCollectionValue
public UniqueCollectionValue asUniqueCollectionValue()
- Specified by:
asUniqueCollectionValue
in interface Value
- Overrides:
asUniqueCollectionValue
in class AbstractValue
at
public Value at(int index)
throws InvalidValueException
- Specified by:
at
in interface OrderedCollectionValue
- Throws:
InvalidValueException
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
excluding
public OrderedSetValue excluding(Value value)
- Specified by:
excluding
in interface CollectionValue
first
public Value first()
throws InvalidValueException
- Specified by:
first
in interface OrderedCollectionValue
- Throws:
InvalidValueException
flatten
public OrderedSetValue flatten()
throws InvalidValueException
- Specified by:
flatten
in interface CollectionValue
- Throws:
InvalidValueException
getKind
public CollectionKind getKind()
- Specified by:
getKind
in interface CollectionValue
getType
public Type getType(TypeManager typeManager,
Type staticType)
- Specified by:
getType
in interface Value
including
public OrderedSetValue including(Value value)
throws InvalidValueException
- Specified by:
including
in interface CollectionValue
- Throws:
InvalidValueException
indexOf
public IntegerValue indexOf(Value object)
throws InvalidValueException
- Specified by:
indexOf
in interface OrderedCollectionValue
- Throws:
InvalidValueException
insertAt
public OrderedSetValue insertAt(int index,
Value object)
throws InvalidValueException
- Specified by:
insertAt
in interface OrderedCollectionValue
- Throws:
InvalidValueException
last
public Value last()
throws InvalidValueException
- Specified by:
last
in interface OrderedCollectionValue
- Throws:
InvalidValueException
minus
public OrderedSetValue minus(UniqueCollectionValue set)
throws InvalidValueException
- Specified by:
minus
in interface UniqueCollectionValue
- Throws:
InvalidValueException
prepend
public OrderedSetValue prepend(Value object)
throws InvalidValueException
- Specified by:
prepend
in interface OrderedCollectionValue
- Throws:
InvalidValueException
reverse
public OrderedSetValue reverse()
- Specified by:
reverse
in interface OrderedCollectionValue
sort
public OrderedSetValue sort(java.util.Comparator<Value> comparator)
- Specified by:
sort
in interface CollectionValue
subOrderedSet
public OrderedSetValue subOrderedSet(int lower,
int upper)
- Specified by:
subOrderedSet
in interface OrderedSetValue
symmetricDifference
public OrderedSetValue symmetricDifference(UniqueCollectionValue set)
- Specified by:
symmetricDifference
in interface UniqueCollectionValue
toOrderedCollectionValue
public OrderedCollectionValue toOrderedCollectionValue()
- Specified by:
toOrderedCollectionValue
in interface CollectionValue
toString
public void toString(java.lang.StringBuffer s,
int lengthLimit)
- Specified by:
toString
in interface Value
- Overrides:
toString
in class AbstractedCollectionValue