org.eclipse.ocl.examples.domain.values.impl
Class AbstractObjectValue<T>

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.domain.values.impl.AbstractObjectValue<T>
All Implemented Interfaces:
ObjectValue, Value
Direct Known Subclasses:
AbstractEnumerationLiteralValueImpl, AbstractTypeValueImpl, ElementValueImpl, EObjectValueImpl, ObjectValueImpl

public abstract class AbstractObjectValue<T>
extends AbstractValue
implements ObjectValue


Field Summary
protected  T object
           
 
Fields inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractValue
valueFactory
 
Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value
INVALID_NAME
 
Constructor Summary
protected AbstractObjectValue(ValueFactory valueFactory, T object)
           
 
Method Summary
 java.lang.Object asObject()
           
 ObjectValue asObjectValue()
           
 Value asValidValue()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getObject()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractValue
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asEcoreObject, asElement, asElementValue, asInteger, asIntegerValue, asNavigableObject, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getActualType, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue, 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, asBoolean, asBooleanValue, asCollectionValue, asDouble, asEcoreObject, asElement, asElementValue, asInteger, asIntegerValue, asNavigableObject, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, getActualType, getType, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue, toString
 

Field Detail

object

protected final T object
Constructor Detail

AbstractObjectValue

protected AbstractObjectValue(ValueFactory valueFactory,
                              T object)
Method Detail

asObject

public java.lang.Object asObject()
Specified by:
asObject in interface Value

asObjectValue

public ObjectValue asObjectValue()
Specified by:
asObjectValue in interface Value
Overrides:
asObjectValue in class AbstractValue

asValidValue

public Value asValidValue()
Specified by:
asValidValue in interface Value

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getObject

public java.lang.Object getObject()
Specified by:
getObject in interface ObjectValue

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object