org.eclipse.ocl.examples.pivot.values.impl
Class ElementValueImpl<E extends Element>

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

public class ElementValueImpl<E extends Element>
extends ObjectValueImpl
implements ElementValue<E>


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

Constructor Detail

ElementValueImpl

public ElementValueImpl(ValueFactory valueFactory,
                        E element)
Method Detail

asElement

public Element asElement()
Specified by:
asElement in interface Value
Overrides:
asElement in class AbstractValue

asElementValue

public ElementValue<E> asElementValue()
Specified by:
asElementValue in interface Value
Overrides:
asElementValue in class AbstractValue

equals

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

getElement

public E getElement()
Specified by:
getElement in interface ElementValue<E extends Element>

getType

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