public abstract class NumberValueImpl extends Number implements NumberValue
INVALID_NAMEbyteValue, doubleValue, floatValue, intValue, longValue, shortValueequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcommutatedCompareToInteger, commutatedCompareToReal, isUnlimitedNaturalValuecommutatedCompareToasObject, asUnboxedObject, getTypeIdcompareTopublic BagValue asBagValue()
asBagValue in interface Valuepublic CollectionValue asCollectionValue()
asCollectionValue in interface Valuepublic 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 Valuepublic IntegerValue asIntegerValue()
asIntegerValue in interface Valuepublic MapValue asMapValue()
asMapValue in interface Valuepublic EObject asNavigableObject()
asNavigableObject in interface Valuepublic ObjectValue asObjectValue()
asObjectValue in interface Valuepublic OrderedCollectionValue asOrderedCollectionValue()
asOrderedCollectionValue in interface Valuepublic OrderedSetValue asOrderedSetValue()
asOrderedSetValue in interface Valuepublic RealValue asRealValue()
asRealValue in interface Valuepublic SequenceValue asSequenceValue()
asSequenceValue in interface Valuepublic SetValue asSetValue()
asSetValue in interface Valuepublic TupleValue asTupleValue()
asTupleValue in interface Valuepublic UniqueCollectionValue asUniqueCollectionValue()
asUniqueCollectionValue in interface Valuepublic UnlimitedNaturalValue asUnlimitedNaturalValue()
asUnlimitedNaturalValue in interface Valuepublic String getTypeName()
public boolean isUndefined()
isUndefined in interface Valuepublic 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 OCLValuepublic void toString(StringBuilder s, int sizeLimit)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.