org.eclipse.ocl.examples.domain.values.impl
Class NumberValueImpl
java.lang.Object
java.lang.Number
org.eclipse.ocl.examples.domain.values.impl.NumberValueImpl
- All Implemented Interfaces:
- java.io.Serializable, Value
- Direct Known Subclasses:
- IntegerValueImpl, RealValueImpl, UnlimitedValueImpl
public abstract class NumberValueImpl
- extends java.lang.Number
- implements Value
- See Also:
- Serialized Form
- Generated
- NOT
Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value |
INVALID_NAME |
Methods inherited from class java.lang.Number |
byteValue, doubleValue, floatValue, intValue, longValue, shortValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberValueImpl
protected NumberValueImpl()
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
-
- Generated
asBagValue
@NonNull
public BagValue asBagValue()
- Specified by:
asBagValue
in interface Value
asCollectionValue
@NonNull
public CollectionValue asCollectionValue()
- Specified by:
asCollectionValue
in interface Value
asDouble
@NonNull
public java.lang.Double asDouble()
- Specified by:
asDouble
in interface Value
asEcoreObject
@Nullable
public java.lang.Object asEcoreObject()
- Description copied from interface:
Value
- Return the Ecore representation of this value.
An thrown exception for an invalid OCL value.
Java-null for a null OCL value
Objects for other things
- Specified by:
asEcoreObject
in interface Value
asElement
public DomainElement asElement()
- Specified by:
asElement
in interface Value
asInteger
@NonNull
public java.lang.Integer asInteger()
- Specified by:
asInteger
in interface Value
asIntegerValue
@NonNull
public IntegerValue asIntegerValue()
- Specified by:
asIntegerValue
in interface Value
asNavigableObject
@NonNull
public org.eclipse.emf.ecore.EObject asNavigableObject()
- Specified by:
asNavigableObject
in interface Value
asObjectValue
@NonNull
public ObjectValue asObjectValue()
- Specified by:
asObjectValue
in interface Value
asOrderedSetValue
@NonNull
public OrderedSetValue asOrderedSetValue()
- Specified by:
asOrderedSetValue
in interface Value
asRealValue
@NonNull
public RealValue asRealValue()
- Specified by:
asRealValue
in interface Value
asSequenceValue
@NonNull
public SequenceValue asSequenceValue()
- Specified by:
asSequenceValue
in interface Value
asSetValue
@NonNull
public SetValue asSetValue()
- Specified by:
asSetValue
in interface Value
asTupleValue
@NonNull
public TupleValue asTupleValue()
- Specified by:
asTupleValue
in interface Value
asUniqueCollectionValue
@NonNull
public UniqueCollectionValue asUniqueCollectionValue()
- Specified by:
asUniqueCollectionValue
in interface Value
asUnlimitedNaturalValue
@NonNull
public Value asUnlimitedNaturalValue()
- Specified by:
asUnlimitedNaturalValue
in interface Value
getTypeName
@NonNull
public java.lang.String getTypeName()
isInvalid
public boolean isInvalid()
- Specified by:
isInvalid
in interface Value
isUndefined
public boolean isUndefined()
- Specified by:
isUndefined
in interface Value
oclEquals
public boolean oclEquals(@NonNull
OCLValue thatValue)
oclHashCode
public int oclHashCode()
toString
public void toString(@NonNull
java.lang.StringBuilder s,
int sizeLimit)
- Specified by:
toString
in interface Value