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

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.values.impl.AbstractValue
      extended by org.eclipse.ocl.examples.domain.values.impl.AbstractObjectValue<T>
          extended by org.eclipse.ocl.examples.domain.values.impl.AbstractEnumerationLiteralValueImpl<DomainEnumerationLiteral>
              extended by org.eclipse.ocl.examples.domain.values.impl.EnumerationLiteralValueImpl
All Implemented Interfaces:
ElementValue, EnumerationLiteralValue, ObjectValue, Value

public class EnumerationLiteralValueImpl
extends AbstractEnumerationLiteralValueImpl<DomainEnumerationLiteral>
implements EnumerationLiteralValue


Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractEnumerationLiteralValueImpl
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
EnumerationLiteralValueImpl(ValueFactory valueFactory, DomainEnumerationLiteral element)
           
 
Method Summary
 java.lang.Object asEcoreObject()
          Return the Ecore representation of this value.
 DomainEnumerationLiteral asElement()
           
 DomainEnumerationLiteral getElement()
           
 java.lang.String getName()
           
 DomainEnumeration getType()
          Return the type of this value determined from its construction context.
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractEnumerationLiteralValueImpl
asElementValue, equals, hashCode
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractObjectValue
asObject, asObjectValue, asValidValue, getObject, toString
 
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractValue
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, 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, asElementValue, 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
 

Constructor Detail

EnumerationLiteralValueImpl

public EnumerationLiteralValueImpl(ValueFactory valueFactory,
                                   DomainEnumerationLiteral element)
Method Detail

asEcoreObject

public java.lang.Object asEcoreObject()
Description copied from interface: Value
Return the Ecore representation of this value.

Specified by:
asEcoreObject in interface Value
Overrides:
asEcoreObject in class AbstractValue

asElement

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

getElement

public DomainEnumerationLiteral getElement()
Specified by:
getElement in interface ElementValue
Specified by:
getElement in interface EnumerationLiteralValue

getName

public java.lang.String getName()
Specified by:
getName in interface EnumerationLiteralValue

getType

public DomainEnumeration 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 EnumerationLiteralValue
Specified by:
getType in interface Value