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

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.values.util.ValuesUtil
      extended by org.eclipse.ocl.examples.domain.values.impl.ValueImpl
All Implemented Interfaces:
Value
Direct Known Subclasses:
CollectionValueImpl, ObjectValueImpl, SortedByIteration.SortingValue, TupleValueImpl

public abstract class ValueImpl
extends ValuesUtil
implements Value

Generated
NOT

Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.domain.values.util.ValuesUtil
EMPTY_BAG, EMPTY_SET, FALSE_VALUE, INTEGER_MAX_VALUE, INTEGER_MIN_VALUE, INVALID_VALUE, LONG_MAX_VALUE, LONG_MIN_VALUE, NULL_STRING, NULL_VALUE, ONE_VALUE, TRUE_VALUE, UNLIMITED_VALUE, ZERO_VALUE
 
Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value
INVALID_NAME
 
Constructor Summary
protected ValueImpl()
           
 
Method Summary
 BagValue asBagValue()
           
 CollectionValue asCollectionValue()
           
 java.lang.Double asDouble()
           
 java.lang.Object asEcoreObject()
          Return the Ecore representation of this value.
 DomainElement asElement()
           
 java.lang.Integer asInteger()
           
 IntegerValue asIntegerValue()
           
 org.eclipse.emf.ecore.EObject asNavigableObject()
           
 ObjectValue asObjectValue()
           
 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()
           
 void toString(java.lang.StringBuilder s, int sizeLimit)
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.util.ValuesUtil
asBagValue, asBoolean, asCollectionType, asCollectionValue, asInteger, asIntegerValue, asNavigableObject, asObject, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asTupleValue, asType, asUniqueCollectionValue, asUnlimitedNaturalValue, asValue, createBagAccumulatorValue, createBagOfEach, createBagRange, createBagValue, createCollectionAccumulatorValue, createInvalidValue, createObjectValue, createOrderedSetAccumulatorValue, createOrderedSetOfEach, createOrderedSetRange, createOrderedSetValue, createRange, createSequenceAccumulatorValue, createSequenceOfEach, createSequenceRange, createSequenceRange, createSequenceValue, createSetAccumulatorValue, createSetOfEach, createSetRange, createSetValue, createTupleOfEach, createTupleValue, createTupleValue, createTypeValue, getTypeName, initAllStatics, integerValueOf, integerValueOf, integerValueOf, integerValueOf, integerValueOf, isBoxed, isCollectionValue, isIntegerValue, isUnboxed, isUnlimited, oclToString, realValueOf, realValueOf, realValueOf, realValueOf, realValueOf, stringValueOf, throwInvalidValueException, toString
 
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
asObject, getTypeId
 

Constructor Detail

ValueImpl

protected ValueImpl()
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

@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

toString

public void toString(@NonNull
                     java.lang.StringBuilder s,
                     int sizeLimit)
Specified by:
toString in interface Value