public class InvalidValueException extends UndefinedValueImpl implements InvalidValue
IntegerValue.AccumulatorBagValue.AccumulatorOrderedSetValue.AccumulatorSequenceValue.AccumulatorSetValue.AccumulatorINVALID_NAME| Constructor and Description |
|---|
InvalidValueException(Exception exception) |
InvalidValueException(Exception exception,
String message) |
InvalidValueException(Exception exception,
String messageTemplate,
Object... bindings) |
InvalidValueException(String messageTemplate,
Object... bindings) |
| Modifier and Type | Method and Description |
|---|---|
BagValue |
asBagValue() |
CollectionValue |
asCollectionValue() |
Double |
asDouble() |
List<Object> |
asEcoreObject(IdResolver idResolver,
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() |
Integer |
asInteger() |
IntegerValue |
asIntegerValue() |
EObject |
asNavigableObject() |
Number |
asNumber() |
ObjectValue |
asObjectValue() |
OrderedSetValue |
asOrderedSetValue() |
RealValue |
asRealValue() |
SequenceValue |
asSequenceValue() |
SetValue |
asSetValue() |
List<Object> |
asUnboxedObject(IdResolver idResolver)
Return the unboxed representation of this value.
|
UniqueCollectionValue |
asUniqueCollectionValue() |
boolean |
equals(Object obj) |
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, toSequenceValue, toString, unionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringgetObjectaddInteger, commutatedCompareToInteger, commutatedDiv, commutatedMod, divideInteger, divInteger, divUnlimited, maxInteger, minInteger, modInteger, modUnlimited, multiplyInteger, subtractIntegerabs, addReal, bigDecimalValue, bigIntegerValue, commutatedAdd, commutatedDivide, commutatedMultiply, commutatedSubtract, divideReal, doubleValue, floor, isIntegerValue, max, maxReal, min, minReal, multiplyReal, round, signum, subtractRealisUnlimited, isUnlimitedNatural, max, maxUnlimited, min, minUnlimitedcommutatedCompareToReal, isUnlimitedNaturalValuecommutatedCompareToasMapValue, asObject, asOrderedCollectionValue, asTupleValue, asUnlimitedNaturalValue, isUndefined, toStringcompareTosubOrderedSetsubSequenceappend, appendAll, at, first, indexOf, insertAt, last, prepend, prependAll, reverseminus, symmetricDifferenceasCollection, 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, unionforEach, spliteratorgetValue, getValuepublic InvalidValueException(Exception exception)
public BagValue asBagValue()
asBagValue in interface ValueasBagValue in class UndefinedValueImplpublic CollectionValue asCollectionValue()
asCollectionValue in interface ValueasCollectionValue in class UndefinedValueImplpublic Double asDouble()
asDouble in interface ValueasDouble in class UndefinedValueImplpublic List<Object> asEcoreObject(IdResolver idResolver, Class<?> instanceClass)
ValueA thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things, List<?> for collections
asEcoreObject in interface CollectionValueasEcoreObject in interface Valuepublic Integer asInteger()
asInteger in interface ValueasInteger in class UndefinedValueImplpublic IntegerValue asIntegerValue()
asIntegerValue in interface ValueasIntegerValue in class UndefinedValueImplpublic EObject asNavigableObject()
asNavigableObject in interface ValueasNavigableObject in class UndefinedValueImplpublic Number asNumber()
asNumber in interface RealValueasNumber in class UndefinedValueImplpublic ObjectValue asObjectValue()
asObjectValue in interface ValueasObjectValue in class UndefinedValueImplpublic OrderedSetValue asOrderedSetValue()
asOrderedSetValue in interface ValueasOrderedSetValue in class UndefinedValueImplpublic RealValue asRealValue()
asRealValue in interface ValueasRealValue in class UndefinedValueImplpublic SequenceValue asSequenceValue()
asSequenceValue in interface ValueasSequenceValue in class UndefinedValueImplpublic SetValue asSetValue()
asSetValue in interface ValueasSetValue in class UndefinedValueImplpublic List<Object> asUnboxedObject(IdResolver idResolver)
ValueA 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 Valuepublic UniqueCollectionValue asUniqueCollectionValue()
asUniqueCollectionValue in interface ValueasUniqueCollectionValue in class UndefinedValueImplpublic Type getType(StandardLibrary standardLibrary)
public OclInvalidTypeId getTypeId()
ValuegetTypeId in interface CollectionValuegetTypeId in interface NullValuegetTypeId in interface TupleValuegetTypeId in interface ValuegetTypeId in class UndefinedValueImplpublic int intValue()
intValue in interface IntegerValueintValue in interface UnlimitedNaturalValuepublic boolean oclEquals(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 OCLValueCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.