public class InvalidValueException extends UndefinedValueImpl implements InvalidValue
IntegerValue.Accumulator
BagValue.Accumulator
OrderedSetValue.Accumulator
SequenceValue.Accumulator
SetValue.Accumulator
INVALID_NAME
Constructor and Description |
---|
InvalidValueException(java.lang.Exception exception) |
InvalidValueException(java.lang.Exception exception,
java.lang.String message) |
InvalidValueException(java.lang.Exception exception,
java.lang.String messageTemplate,
java.lang.Object... bindings) |
InvalidValueException(java.lang.String messageTemplate,
java.lang.Object... bindings) |
Modifier and Type | Method and Description |
---|---|
BagValue |
asBagValue() |
CollectionValue |
asCollectionValue() |
java.lang.Double |
asDouble() |
java.util.List<java.lang.Object> |
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().
|
Element |
asElement() |
java.lang.Integer |
asInteger() |
IntegerValue |
asIntegerValue() |
org.eclipse.emf.ecore.EObject |
asNavigableObject() |
java.lang.Number |
asNumber() |
ObjectValue |
asObjectValue() |
OrderedSetValue |
asOrderedSetValue() |
RealValue |
asRealValue() |
SequenceValue |
asSequenceValue() |
SetValue |
asSetValue() |
java.util.List<java.lang.Object> |
asUnboxedObject(IdResolver idResolver)
Return the unboxed representation of this value.
|
UniqueCollectionValue |
asUniqueCollectionValue() |
boolean |
equals(java.lang.Object obj) |
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
Type |
getType(StandardLibrary standardLibrary) |
OclInvalidTypeId |
getTypeId()
Return the type of this value determined from its construction context.
|
int |
hashCode() |
int |
intValue() |
boolean |
isInvalid() |
boolean |
oclEquals(OCLValue thatValue)
Return true if this is an equivalent OCL value to thatValue.
|
int |
oclHashCode() |
abs, addInteger, addReal, append, appendAll, asCollection, asEcoreObjects, asList, asMapValue, asObject, asOrderedCollectionValue, asTupleValue, asUnlimitedNaturalValue, at, bigDecimalValue, bigIntegerValue, commutatedAdd, commutatedCompareTo, commutatedCompareToInteger, commutatedCompareToReal, commutatedDiv, commutatedDivide, commutatedMod, commutatedMultiply, commutatedSubtract, compareTo, count, createNew, div, divideInteger, divideReal, divInteger, divUnlimited, doubleValue, excludes, excludesAll, excluding, excludingAll, first, flatten, flatten, floor, getElement, getElements, getInstanceType, getKind, getObject, getTypeName, getValue, getValue, includes, includesAll, including, includingAll, indexOf, insertAt, intersection, intSize, isEmpty, isFalse, isIntegerValue, isOrdered, isTrue, isUndefined, isUnique, isUnlimited, isUnlimitedNatural, isUnlimitedNaturalValue, iterable, iterator, last, max, max, maxInteger, maxReal, maxUnlimited, min, min, minInteger, minReal, minUnlimited, minus, modInteger, modUnlimited, multiplyInteger, multiplyReal, negate, notEmpty, prepend, prependAll, product, reverse, round, signum, size, sort, stringValue, subOrderedSet, subSequence, subtractInteger, subtractReal, symmetricDifference, toInvalidValue, toSequenceValue, toString, union
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getObject
addInteger, commutatedCompareToInteger, commutatedDiv, commutatedMod, divideInteger, divInteger, divUnlimited, maxInteger, minInteger, modInteger, modUnlimited, multiplyInteger, subtractInteger
abs, addReal, bigDecimalValue, bigIntegerValue, commutatedAdd, commutatedDivide, commutatedMultiply, commutatedSubtract, divideReal, doubleValue, floor, isIntegerValue, max, maxReal, min, minReal, multiplyReal, round, signum, subtractReal
isUnlimited, isUnlimitedNatural, max, maxUnlimited, min, minUnlimited
commutatedCompareToReal, isUnlimitedNaturalValue
commutatedCompareTo
asMapValue, asObject, asOrderedCollectionValue, asTupleValue, asUnlimitedNaturalValue, isUndefined, toString
subOrderedSet
subSequence
append, appendAll, at, first, indexOf, insertAt, last, prepend, prependAll, reverse
minus, symmetricDifference
asCollection, asEcoreObjects, count, excludes, excludesAll, excluding, excludingAll, flatten, flatten, getElements, getKind, includes, includesAll, including, includingAll, intersection, intSize, isEmpty, isOrdered, isUnique, iterable, iterator, notEmpty, product, size, sort, toSequenceValue, union
getValue, getValue
public InvalidValueException(@NonNull java.lang.Exception exception, java.lang.String message)
public InvalidValueException(java.lang.String messageTemplate, java.lang.Object... bindings)
public InvalidValueException(@NonNull java.lang.Exception exception)
public InvalidValueException(@NonNull java.lang.Exception exception, java.lang.String messageTemplate, java.lang.Object... bindings)
protected org.eclipse.emf.ecore.EClass eStaticClass()
@NonNull public BagValue asBagValue()
asBagValue
in interface Value
asBagValue
in class UndefinedValueImpl
@NonNull public CollectionValue asCollectionValue()
asCollectionValue
in interface Value
asCollectionValue
in class UndefinedValueImpl
@NonNull public java.lang.Double asDouble()
asDouble
in interface Value
asDouble
in class UndefinedValueImpl
@NonNull public java.util.List<java.lang.Object> 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 CollectionValue
asEcoreObject
in interface Value
@NonNull public java.lang.Integer asInteger()
asInteger
in interface Value
asInteger
in class UndefinedValueImpl
@NonNull public IntegerValue asIntegerValue()
asIntegerValue
in interface Value
asIntegerValue
in class UndefinedValueImpl
@NonNull public org.eclipse.emf.ecore.EObject asNavigableObject()
asNavigableObject
in interface Value
asNavigableObject
in class UndefinedValueImpl
@NonNull public java.lang.Number asNumber()
asNumber
in interface RealValue
asNumber
in class UndefinedValueImpl
@NonNull public ObjectValue asObjectValue()
asObjectValue
in interface Value
asObjectValue
in class UndefinedValueImpl
@NonNull public OrderedSetValue asOrderedSetValue()
asOrderedSetValue
in interface Value
asOrderedSetValue
in class UndefinedValueImpl
@NonNull public RealValue asRealValue()
asRealValue
in interface Value
asRealValue
in class UndefinedValueImpl
@NonNull public SequenceValue asSequenceValue()
asSequenceValue
in interface Value
asSequenceValue
in class UndefinedValueImpl
@NonNull public SetValue asSetValue()
asSetValue
in interface Value
asSetValue
in class UndefinedValueImpl
@NonNull public java.util.List<java.lang.Object> asUnboxedObject(@NonNull IdResolver idResolver)
Value
A thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things, Bag/Set/OrderedSet/List for collections
asUnboxedObject
in interface Value
@NonNull public UniqueCollectionValue asUniqueCollectionValue()
asUniqueCollectionValue
in interface Value
asUniqueCollectionValue
in class UndefinedValueImpl
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@NonNull public Type getType(@NonNull StandardLibrary standardLibrary)
@NonNull public OclInvalidTypeId getTypeId()
Value
getTypeId
in interface CollectionValue
getTypeId
in interface NullValue
getTypeId
in interface TupleValue
getTypeId
in interface Value
getTypeId
in class UndefinedValueImpl
public int intValue()
intValue
in interface IntegerValue
intValue
in interface UnlimitedNaturalValue
public int hashCode()
hashCode
in class java.lang.Object
public boolean oclEquals(@NonNull OCLValue thatValue)
OCLValue
Note that the caller must check that the argument is an OCLValue and should also check for the shortcut case that this == thatValue. Implementations are therefore wasting time if they re-implement the shortcut.
public int oclHashCode()
oclHashCode
in interface OCLValue