MapValue.Accumulator
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Object,java.lang.Object> |
boxedValues |
protected MapTypeId |
typeId |
EMPTY_BAG, EMPTY_SET, FALSE_VALUE, INTEGER_MAX_VALUE, INTEGER_MIN_VALUE, INVALID_VALUE, LONG_MAX_VALUE, LONG_MIN_VALUE, NULL_STRING, NULL_VALUE, ONE_VALUE, TRUE_VALUE, UNLIMITED_ONE_VALUE, UNLIMITED_VALUE, ZERO_VALUE
INVALID_NAME
Constructor and Description |
---|
MapValueImpl(MapTypeId typeId,
java.util.Map<java.lang.Object,java.lang.Object> boxedValues) |
Modifier and Type | Method and Description |
---|---|
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) |
java.util.Map<? extends java.lang.Object,? extends java.lang.Object> |
asMap() |
MapValue |
asMapValue() |
java.lang.Object |
asObject() |
java.lang.Object |
at(java.lang.Object value) |
static MapValue |
createMapValueOfEach(MapTypeId typeId,
MapEntry[] mapEntries) |
java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> |
entrySet() |
boolean |
equals(java.lang.Object obj) |
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
java.lang.Boolean |
excludes(java.lang.Object key) |
java.lang.Boolean |
excludes(java.lang.Object key,
java.lang.Object value) |
java.lang.Boolean |
excludesAll(CollectionValue c) |
java.lang.Boolean |
excludesMap(MapValue m) |
java.lang.Boolean |
excludesValue(java.lang.Object thatValue) |
MapValue |
excluding(java.lang.Object key) |
MapValue |
excluding(java.lang.Object key,
java.lang.Object value) |
MapValue |
excludingAll(CollectionValue c) |
MapValue |
excludingMap(MapValue map) |
java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> |
getElements() |
SetValue |
getKeys() |
MapTypeId |
getTypeId()
Return the type of this value determined from its construction context.
|
BagValue |
getValues() |
int |
hashCode() |
java.lang.Boolean |
includes(java.lang.Object key) |
java.lang.Boolean |
includes(java.lang.Object key,
java.lang.Object value) |
java.lang.Boolean |
includesAll(CollectionValue c) |
java.lang.Boolean |
includesMap(MapValue m) |
java.lang.Boolean |
includesValue(java.lang.Object thatValue) |
MapValue |
including(MapTypeId returnTypeId,
java.lang.Object key,
java.lang.Object value) |
MapValue |
includingMap(MapTypeId returnTypeId,
MapValue map) |
int |
intSize() |
java.lang.Boolean |
isEmpty() |
java.util.Set<java.lang.Object> |
keySet() |
java.lang.Boolean |
notEmpty() |
IntegerValue |
size() |
java.lang.String |
toString() |
void |
toString(java.lang.StringBuilder s,
int lengthLimit) |
asBagValue, asCollectionValue, asDouble, asElement, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUnboxedObject, asUniqueCollectionValue, asUnlimitedNaturalValue, getTypeName, isInvalid, isUndefined
asBagValue, asBoolean, asClass, asCollectionType, asCollectionValue, asInteger, asIntegerValue, asMapType, asMapValue, asNavigableObject, asObject, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asTupleValue, asType, asUniqueCollectionValue, asUnlimitedNaturalValue, asValue, bigDecimalValueOf, bigIntegerValueOf, characterValueOf, createBagAccumulatorValue, createBagOfEach, createBagRange, createBagValue, createCollectionAccumulatorValue, createInvalidValue, createMapEntry, createMapOfEach, createMapValue, createObjectValue, createOrderedSetAccumulatorValue, createOrderedSetOfEach, createOrderedSetRange, createOrderedSetValue, createRange, createSequenceAccumulatorValue, createSequenceOfEach, createSequenceRange, createSequenceRange, createSequenceValue, createSetAccumulatorValue, createSetOfEach, createSetRange, createSetValue, createTupleOfEach, createTupleValue, getElementIdName, getTypeName, initAllStatics, integerValueOf, integerValueOf, integerValueOf, integerValueOf, integerValueOf, isBoxed, isCollectionValue, isEcore, isIntegerNumber, isIntegerValue, isRealNumber, isUnboxed, isUnlimited, oclToString, realValueOf, realValueOf, realValueOf, realValueOf, realValueOf, stringValueOf, throwBooleanInvalidValueException, throwInvalidValueException, throwUnsupportedCompareTo, toString, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf, unlimitedNaturalValueOf
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asBagValue, asCollectionValue, asDouble, asElement, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asOrderedCollectionValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUnboxedObject, asUniqueCollectionValue, asUnlimitedNaturalValue, isInvalid, isUndefined
@NonNull protected java.util.Map<java.lang.Object,java.lang.Object> boxedValues
@NonNull public static MapValue createMapValueOfEach(@NonNull MapTypeId typeId, MapEntry[] mapEntries)
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class ValueImpl
@Nullable public 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 MapValue
asEcoreObject
in interface Value
asEcoreObject
in class ValueImpl
@Nullable public <T> java.util.List<T> asEcoreObjects(@NonNull IdResolver idResolver, @Nullable java.lang.Class<T> instanceClass)
asEcoreObjects
in interface MapValue
@NonNull public java.util.Map<? extends java.lang.Object,? extends java.lang.Object> asMap()
@NonNull public MapValue asMapValue()
asMapValue
in interface Value
asMapValue
in class ValueImpl
@NonNull public java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> entrySet()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@NonNull public java.lang.Boolean excludes(@Nullable java.lang.Object key, @Nullable java.lang.Object value)
@NonNull public java.lang.Boolean excludesAll(@NonNull CollectionValue c)
excludesAll
in interface MapValue
@NonNull public java.lang.Boolean excludesMap(@NonNull MapValue m)
excludesMap
in interface MapValue
@NonNull public java.lang.Boolean excludesValue(@Nullable java.lang.Object thatValue)
excludesValue
in interface MapValue
@NonNull public MapValue excluding(@Nullable java.lang.Object key, @Nullable java.lang.Object value)
@NonNull public MapValue excludingAll(@NonNull CollectionValue c)
excludingAll
in interface MapValue
@NonNull public MapValue excludingMap(@NonNull MapValue map)
excludingMap
in interface MapValue
@NonNull public java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> getElements()
getElements
in interface MapValue
@NonNull public MapTypeId getTypeId()
Value
public final int hashCode()
hashCode
in class java.lang.Object
@NonNull public java.lang.Boolean includes(@Nullable java.lang.Object key, @Nullable java.lang.Object value)
@NonNull public java.lang.Boolean includesAll(@NonNull CollectionValue c)
includesAll
in interface MapValue
@NonNull public java.lang.Boolean includesMap(@NonNull MapValue m)
includesMap
in interface MapValue
@NonNull public java.lang.Boolean includesValue(@Nullable java.lang.Object thatValue)
includesValue
in interface MapValue
@NonNull public MapValue including(@NonNull MapTypeId returnTypeId, @Nullable java.lang.Object key, @Nullable java.lang.Object value)
@NonNull public MapValue includingMap(@NonNull MapTypeId returnTypeId, @NonNull MapValue map)
includingMap
in interface MapValue
@NonNull public java.util.Set<java.lang.Object> keySet()
@NonNull public IntegerValue size()
public java.lang.String toString()
toString
in class java.lang.Object