org.eclipse.ocl.examples.pivot.values.impl
Class ObjectValueImpl

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.pivot.values.impl.ObjectValueImpl
All Implemented Interfaces:
ObjectValue, Value
Direct Known Subclasses:
ElementValueImpl

public class ObjectValueImpl
extends AbstractValue
implements ObjectValue


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

Field Detail

object

protected final java.lang.Object object
Constructor Detail

ObjectValueImpl

public ObjectValueImpl(ValueFactory valueFactory,
                       java.lang.Object 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

getType

public Type getType(TypeManager typeManager,
                    Type staticType)
Specified by:
getType in interface Value

hashCode

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

toString

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