public interface CollectionValue extends Value, Iterable<Object>
Modifier and Type | Interface and Description |
---|---|
static interface |
CollectionValue.Accumulator |
INVALID_NAME
asBagValue, asCollectionValue, asDouble, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUnboxedObject, asUniqueCollectionValue, asUnlimitedNaturalValue, isInvalid, isUndefined, toString
forEach, spliterator
Collection<? extends Object> asCollection()
List<?> asEcoreObject(IdResolver idResolver, Class<?> instanceClass)
Value
A thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things, List<?> for collections
asEcoreObject
in interface Value
<T> List<T> asEcoreObjects(IdResolver idResolver, Class<T> instanceClass)
IntegerValue count(Object value)
Boolean excludesAll(CollectionValue c)
CollectionValue excluding(Object value)
CollectionValue excludingAll(CollectionValue c)
CollectionValue flatten()
boolean flatten(Collection<Object> flattenedElements)
Collection<? extends Object> getElements()
String getKind()
CollectionTypeId getTypeId()
Value
Boolean includesAll(CollectionValue c)
CollectionValue including(Object value)
CollectionValue includingAll(CollectionValue c)
int intSize()
CollectionValue intersection(CollectionValue c)
Boolean isEmpty()
boolean isOrdered()
boolean isUnique()
Boolean notEmpty()
Set<TupleValue> product(CollectionValue c, TupleTypeId tupleTypeId)
IntegerValue size()
OrderedCollectionValue sort(Comparator<Object> comparator)
SequenceValue toSequenceValue()
CollectionValue union(CollectionValue c)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.