public abstract class NumberValueImpl extends Number implements NumberValue
INVALID_NAME
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commutatedCompareToInteger, commutatedCompareToReal, isUnlimitedNaturalValue
commutatedCompareTo
asObject, asUnboxedObject, getTypeId
compareTo
public BagValue asBagValue()
asBagValue
in interface Value
public CollectionValue asCollectionValue()
asCollectionValue
in interface Value
public Object asEcoreObject(IdResolver idResolver, 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 Value
public IntegerValue asIntegerValue()
asIntegerValue
in interface Value
public MapValue asMapValue()
asMapValue
in interface Value
public EObject asNavigableObject()
asNavigableObject
in interface Value
public ObjectValue asObjectValue()
asObjectValue
in interface Value
public OrderedCollectionValue asOrderedCollectionValue()
asOrderedCollectionValue
in interface Value
public OrderedSetValue asOrderedSetValue()
asOrderedSetValue
in interface Value
public RealValue asRealValue()
asRealValue
in interface Value
public SequenceValue asSequenceValue()
asSequenceValue
in interface Value
public SetValue asSetValue()
asSetValue
in interface Value
public TupleValue asTupleValue()
asTupleValue
in interface Value
public UniqueCollectionValue asUniqueCollectionValue()
asUniqueCollectionValue
in interface Value
public UnlimitedNaturalValue asUnlimitedNaturalValue()
asUnlimitedNaturalValue
in interface Value
public String getTypeName()
public boolean isUndefined()
isUndefined
in interface Value
public boolean oclEquals(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
public void toString(StringBuilder s, int sizeLimit)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.