public class InvalidValueException extends UndefinedValueImpl implements InvalidValue
IntegerValue.AccumulatorOrderedSetValue.AccumulatorSetValue.AccumulatorINVALID_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()
Return the Ecore representation of this value.
|
DomainElement |
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() |
UniqueCollectionValue |
asUniqueCollectionValue() |
boolean |
equals(java.lang.Object obj) |
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
DomainType |
getType(DomainStandardLibrary 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, asList, asObject, asTupleValue, asUnlimitedNaturalValue, at, bigDecimalValue, bigIntegerValue, commutatedAdd, commutatedDiv, commutatedDivide, commutatedMod, commutatedMultiply, commutatedSubtract, compareTo, compareToInteger, compareToReal, compareToUnlimited, 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, iterable, iterator, last, max, maxInteger, maxReal, maxUnlimited, 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, unionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetObjectaddInteger, commutatedDiv, commutatedMod, compareToInteger, divideInteger, divInteger, divUnlimited, isUnlimitedNatural, maxInteger, minInteger, modInteger, modUnlimited, multiplyInteger, subtractIntegerabs, addReal, bigDecimalValue, bigIntegerValue, commutatedAdd, commutatedDivide, commutatedMultiply, commutatedSubtract, compareToReal, compareToUnlimited, divideReal, doubleValue, floor, isIntegerValue, isUnlimited, max, maxReal, maxUnlimited, min, minReal, minUnlimited, multiplyReal, round, signum, subtractRealsubOrderedSetappend, appendAll, at, first, indexOf, insertAt, last, prepend, prependAll, reverse, subSequenceminus, symmetricDifferenceasCollection, 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, unionasObject, asTupleValue, asUnlimitedNaturalValue, isUndefined, toStringgetValue, getValuepublic InvalidValueException(@Nullable
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(@Nullable
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 ValueasBagValue in class UndefinedValueImpl@NonNull public CollectionValue asCollectionValue()
asCollectionValue in interface ValueasCollectionValue in class UndefinedValueImpl@NonNull public java.lang.Double asDouble()
asDouble in interface ValueasDouble in class UndefinedValueImpl@NonNull public java.util.List<java.lang.Object> asEcoreObject()
ValueAn thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things
asEcoreObject in interface CollectionValueasEcoreObject in interface Valuepublic DomainElement asElement()
@NonNull public java.lang.Integer asInteger()
asInteger in interface ValueasInteger in class UndefinedValueImpl@NonNull public IntegerValue asIntegerValue()
asIntegerValue in interface ValueasIntegerValue in class UndefinedValueImpl@NonNull public org.eclipse.emf.ecore.EObject asNavigableObject()
asNavigableObject in interface ValueasNavigableObject in class UndefinedValueImpl@NonNull public java.lang.Number asNumber()
asNumber in interface RealValueasNumber in class UndefinedValueImpl@NonNull public ObjectValue asObjectValue()
asObjectValue in interface ValueasObjectValue in class UndefinedValueImpl@NonNull public OrderedSetValue asOrderedSetValue()
asOrderedSetValue in interface ValueasOrderedSetValue in class UndefinedValueImpl@NonNull public RealValue asRealValue()
asRealValue in interface ValueasRealValue in class UndefinedValueImpl@NonNull public SequenceValue asSequenceValue()
asSequenceValue in interface ValueasSequenceValue in class UndefinedValueImpl@NonNull public SetValue asSetValue()
asSetValue in interface ValueasSetValue in class UndefinedValueImpl@NonNull public UniqueCollectionValue asUniqueCollectionValue()
asUniqueCollectionValue in interface ValueasUniqueCollectionValue in class UndefinedValueImplpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object@NonNull public DomainType getType(@NonNull DomainStandardLibrary standardLibrary)
@NonNull public OclInvalidTypeId getTypeId()
ValuegetTypeId in interface CollectionValuegetTypeId in interface NullValuegetTypeId in interface TupleValuegetTypeId in interface ValuegetTypeId in class UndefinedValueImplpublic int intValue()
intValue in interface IntegerValuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean oclEquals(@NonNull
OCLValue thatValue)
OCLValueNote 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