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

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.values.util.ValuesUtil
      extended by org.eclipse.ocl.examples.domain.values.impl.ValueImpl
          extended by org.eclipse.ocl.examples.domain.values.impl.ObjectValueImpl
              extended by org.eclipse.ocl.examples.domain.values.impl.JavaObjectValueImpl
All Implemented Interfaces:
ObjectValue, Value

public class JavaObjectValueImpl
extends ObjectValueImpl

Generated
NOT

Field Summary
protected  java.lang.Object object
           
protected  TypeId typeId
           
 
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
JavaObjectValueImpl(TypeId typeId, java.lang.Object object)
           
 
Method Summary
 java.lang.Object asObject()
           
 java.lang.Object getObject()
           
 TypeId getTypeId()
          Return the type of this value determined from its construction context.
 int hashCode()
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.ObjectValueImpl
asObjectValue, equals, eStaticClass, toString
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.ValueImpl
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asInteger, asIntegerValue, asNavigableObject, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, asUnlimitedNaturalValue, getTypeName, isInvalid, isUndefined, toString
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.domain.values.Value
asBagValue, asCollectionValue, asDouble, asEcoreObject, asElement, asInteger, asIntegerValue, asNavigableObject, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTupleValue, asUniqueCollectionValue, asUnlimitedNaturalValue, isInvalid, isUndefined, toString
 

Field Detail

object

@NonNull
protected final java.lang.Object object

typeId

protected TypeId typeId
Constructor Detail

JavaObjectValueImpl

public JavaObjectValueImpl(@NonNull
                           TypeId typeId,
                           @NonNull
                           java.lang.Object object)
Method Detail

asObject

@NonNull
public java.lang.Object asObject()
Specified by:
asObject in interface Value
Overrides:
asObject in class ObjectValueImpl

getObject

@NonNull
public java.lang.Object getObject()
Specified by:
getObject in interface ObjectValue
Specified by:
getObject in class ObjectValueImpl

getTypeId

@NonNull
public TypeId getTypeId()
Description copied from interface: Value
Return the type of this value determined from its construction context. In the case of collections this may differ from the actual type.


hashCode

public int hashCode()
Overrides:
hashCode in class ObjectValueImpl