public interface CollectionValue extends Value, java.lang.Iterable<java.lang.Object>
Modifier and Type | Interface and Description |
---|---|
static interface |
CollectionValue.Accumulator |
INVALID_NAME
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends java.lang.Object> |
asCollection() |
java.util.List<?> |
asEcoreObject(IdResolver idResolver,
java.lang.Class<?> instanceClass)
Return the Ecore representation of this value, which should be fully compatible with the Ecore return
from a similarly typed eGet().
|
<T> java.util.List<T> |
asEcoreObjects(IdResolver idResolver,
java.lang.Class<T> instanceClass) |
IntegerValue |
count(java.lang.Object value) |
java.lang.Boolean |
excludes(java.lang.Object value) |
java.lang.Boolean |
excludesAll(CollectionValue c) |
CollectionValue |
excluding(java.lang.Object value) |
CollectionValue |
excludingAll(CollectionValue c) |
CollectionValue |
flatten() |
boolean |
flatten(java.util.Collection<java.lang.Object> flattenedElements) |
java.util.Collection<? extends java.lang.Object> |
getElements() |
java.lang.String |
getKind() |
CollectionTypeId |
getTypeId()
Return the type of this value determined from its construction context.
|
java.lang.Boolean |
includes(java.lang.Object value) |
java.lang.Boolean |
includesAll(CollectionValue c) |
CollectionValue |
including(java.lang.Object value) |
CollectionValue |
includingAll(CollectionValue c) |
CollectionValue |
intersection(CollectionValue c) |
int |
intSize() |
java.lang.Boolean |
isEmpty() |
boolean |
isOrdered() |
boolean |
isUnique() |
java.lang.Iterable<? extends java.lang.Object> |
iterable() |
java.util.Iterator<java.lang.Object> |
iterator() |
java.lang.Boolean |
notEmpty() |
java.util.Set<TupleValue> |
product(CollectionValue c,
TupleTypeId tupleTypeId) |
IntegerValue |
size() |
OrderedCollectionValue |
sort(java.util.Comparator<java.lang.Object> comparator) |
SequenceValue |
toSequenceValue() |
CollectionValue |
union(CollectionValue c) |
asBagValue, asCollectionValue, asDouble, asElement, asInteger, asIntegerValue, asMapValue, asNavigableObject, asObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUnboxedObject, asUniqueCollectionValue, asUnlimitedNaturalValue, isInvalid, isUndefined, toString
@NonNull java.util.Collection<? extends java.lang.Object> asCollection()
@Nullable java.util.List<?> asEcoreObject(@NonNull IdResolver idResolver, @Nullable java.lang.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
@Nullable <T> java.util.List<T> asEcoreObjects(@NonNull IdResolver idResolver, @Nullable java.lang.Class<T> instanceClass)
@NonNull IntegerValue count(@Nullable java.lang.Object value)
@NonNull java.lang.Boolean excludes(@Nullable java.lang.Object value)
@NonNull java.lang.Boolean excludesAll(@NonNull CollectionValue c)
@NonNull CollectionValue excluding(@Nullable java.lang.Object value)
@NonNull CollectionValue excludingAll(@NonNull CollectionValue c)
@NonNull CollectionValue flatten()
boolean flatten(@NonNull java.util.Collection<java.lang.Object> flattenedElements)
@NonNull java.util.Collection<? extends java.lang.Object> getElements()
java.lang.String getKind()
@NonNull CollectionTypeId getTypeId()
Value
@NonNull java.lang.Boolean includes(@Nullable java.lang.Object value)
@NonNull java.lang.Boolean includesAll(@NonNull CollectionValue c)
@NonNull CollectionValue including(@Nullable java.lang.Object value)
@NonNull CollectionValue includingAll(@NonNull CollectionValue c)
int intSize()
@NonNull CollectionValue intersection(@NonNull CollectionValue c)
@NonNull java.lang.Boolean isEmpty()
boolean isOrdered()
boolean isUnique()
@NonNull java.lang.Iterable<? extends java.lang.Object> iterable()
@NonNull java.util.Iterator<java.lang.Object> iterator()
iterator
in interface java.lang.Iterable<java.lang.Object>
@NonNull java.lang.Boolean notEmpty()
@Nullable java.util.Set<TupleValue> product(@NonNull CollectionValue c, @NonNull TupleTypeId tupleTypeId)
@NonNull IntegerValue size()
@NonNull OrderedCollectionValue sort(@NonNull java.util.Comparator<java.lang.Object> comparator)
@Nullable SequenceValue toSequenceValue()
@NonNull CollectionValue union(@NonNull CollectionValue c)