org.eclipse.ocl.examples.domain.values.impl
Class NumberValueImpl

java.lang.Object
  extended by java.lang.Number
      extended by 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

Field Summary
 
Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value
INVALID_NAME
 
Constructor Summary
protected NumberValueImpl()
           
 
Method Summary
 BagValue asBagValue()
           
 CollectionValue asCollectionValue()
           
 java.lang.Double asDouble()
           
 java.lang.Object asEcoreObject()
          Deprecated. 
 DomainElement asElement()
           
 java.lang.Integer asInteger()
           
 IntegerValue asIntegerValue()
           
 org.eclipse.emf.ecore.EObject asNavigableObject()
           
 ObjectValue asObjectValue()
           
 OrderedCollectionValue asOrderedCollectionValue()
           
 OrderedSetValue asOrderedSetValue()
           
 RealValue asRealValue()
           
 SequenceValue asSequenceValue()
           
 SetValue asSetValue()
           
 TupleValue asTupleValue()
           
 UniqueCollectionValue asUniqueCollectionValue()
           
 Value asUnlimitedNaturalValue()
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 java.lang.String getTypeName()
           
 boolean isInvalid()
           
 boolean isUndefined()
           
 boolean oclEquals(OCLValue thatValue)
           
 int oclHashCode()
           
 void toString(java.lang.StringBuilder s, int sizeLimit)
           
 
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
 
Methods inherited from interface org.eclipse.ocl.examples.domain.values.Value
asEcoreObject, asObject, getTypeId
 

Constructor Detail

NumberValueImpl

protected NumberValueImpl()
Method Detail

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

@Deprecated
@Nullable
public java.lang.Object asEcoreObject()
Deprecated. 

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

asOrderedCollectionValue

@NonNull
public OrderedCollectionValue asOrderedCollectionValue()
Specified by:
asOrderedCollectionValue 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