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

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.domain.values.impl.AbstractObjectValue<DomainElement>
          extended by org.eclipse.ocl.examples.domain.values.impl.ElementValueImpl
All Implemented Interfaces:
ElementValue, ObjectValue, Value

public class ElementValueImpl
extends AbstractObjectValue<DomainElement>
implements ElementValue


Field Summary
protected  DomainType type
           
 
Fields inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractObjectValue
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
ElementValueImpl(ValueFactory valueFactory, DomainElement element)
           
 
Method Summary
 DomainElement asElement()
           
 ElementValue asElementValue()
           
 DomainElement getElement()
           
 DomainType getType()
          Return the type of this value determined from its construction context.
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractObjectValue
asObject, asObjectValue, asValidValue, equals, getObject, hashCode, toString
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractValue
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asEcoreObject, 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.ObjectValue
getObject
 
Methods inherited from interface org.eclipse.ocl.examples.domain.values.Value
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asEcoreObject, asInteger, asIntegerValue, asNavigableObject, asObject, asObjectValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asString, asStringValue, asTypeValue, asUniqueCollectionValue, asValidValue, getActualType, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue, toString
 

Field Detail

type

protected DomainType type
Constructor Detail

ElementValueImpl

public ElementValueImpl(ValueFactory valueFactory,
                        DomainElement element)
Method Detail

asElement

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

asElementValue

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

getElement

public DomainElement getElement()
Specified by:
getElement in interface ElementValue

getType

public DomainType getType()
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.

Specified by:
getType in interface Value