org.eclipse.ocl.examples.pivot.values
Interface CollectionValue
- All Superinterfaces:
- java.lang.Iterable<Value>, Value
- All Known Subinterfaces:
- BagValue, CollectionValue.Accumulator, InvalidValue, NonOrderedCollectionValue, NonUniqueCollectionValue, NullValue, OrderedCollectionValue, OrderedSetValue, SequenceValue, SetValue, UniqueCollectionValue
- All Known Implementing Classes:
- AbstractCollectionValue, AbstractedCollectionValue, AbstractSequenceValue, AbstractUndefinedCollectionValue, AbstractUndefinedValue, BagValueImpl, BagValueImpl.Accumulator, IntegerRangeValueImpl, InvalidValueImpl, NullValueImpl, OCLConsolePage.ExceptionValue, OrderedSetValueImpl, OrderedSetValueImpl.Accumulator, SequenceValueImpl, SequenceValueImpl.Accumulator, SetValueImpl, SetValueImpl.Accumulator
public interface CollectionValue
- extends Value, java.lang.Iterable<Value>
Fields inherited from interface org.eclipse.ocl.examples.pivot.values.Value |
INVALID_NAME |
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 |
asCollection
java.util.Collection<Value> asCollection()
asList
java.util.List<Value> asList()
count
IntegerValue count(Value value)
throws InvalidValueException
- Throws:
InvalidValueException
excludes
BooleanValue excludes(Value value)
throws InvalidValueException
- Throws:
InvalidValueException
excludesAll
BooleanValue excludesAll(CollectionValue c)
throws InvalidValueException
- Throws:
InvalidValueException
excluding
CollectionValue excluding(Value value)
throws InvalidValueException
- Throws:
InvalidValueException
flatten
CollectionValue flatten()
throws InvalidValueException
- Throws:
InvalidValueException
flatten
boolean flatten(java.util.Collection<Value> flattenedElements)
throws InvalidValueException
- Throws:
InvalidValueException
getKind
CollectionKind getKind()
includes
BooleanValue includes(Value value)
throws InvalidValueException
- Throws:
InvalidValueException
includesAll
BooleanValue includesAll(CollectionValue c)
throws InvalidValueException
- Throws:
InvalidValueException
including
CollectionValue including(Value value)
throws InvalidValueException
- Throws:
InvalidValueException
intSize
int intSize()
intersection
CollectionValue intersection(CollectionValue c)
throws InvalidValueException
- Throws:
InvalidValueException
isEmpty
BooleanValue isEmpty()
throws InvalidValueException
- Throws:
InvalidValueException
iterator
java.util.Iterator<Value> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<Value>
maxMin
Value maxMin(Value.BinaryOperation binaryOperation)
throws InvalidValueException
- Throws:
InvalidValueException
notEmpty
BooleanValue notEmpty()
throws InvalidValueException
- Throws:
InvalidValueException
product
java.util.Set<TupleValue> product(CollectionValue c,
TupleType tupleType)
throws InvalidValueException
- Throws:
InvalidValueException
size
IntegerValue size()
throws InvalidValueException
- Throws:
InvalidValueException
sort
OrderedCollectionValue sort(java.util.Comparator<Value> comparator)
throws InvalidValueException
- Throws:
InvalidValueException
sum
Value sum(Value.BinaryOperation binaryOperation,
Value zero)
throws InvalidValueException
- Throws:
InvalidValueException
toOrderedCollectionValue
OrderedCollectionValue toOrderedCollectionValue()
throws InvalidValueException
- Throws:
InvalidValueException
union
CollectionValue union(CollectionValue c)
throws InvalidValueException
- Throws:
InvalidValueException