org.eclipse.ocl.examples.domain.values.impl
Class AbstractEnumerationLiteralValueImpl<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>
          extended by org.eclipse.ocl.examples.domain.values.impl.AbstractEnumerationLiteralValueImpl<T>
All Implemented Interfaces:
ElementValue, EnumerationLiteralValue, ObjectValue, Value
Direct Known Subclasses:
EnumerationLiteralValueImpl

public abstract class AbstractEnumerationLiteralValueImpl<T>
extends AbstractObjectValue<T>
implements EnumerationLiteralValue


Field Summary
protected  DomainEnumeration 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
AbstractEnumerationLiteralValueImpl(ValueFactory valueFactory, T element)
           
 
Method Summary
 EnumerationLiteralValue asElementValue()
           
 boolean equals(java.lang.Object that)
           
 int 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, asEcoreObject, asElement, 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.EnumerationLiteralValue
getElement, getName, getType
 
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, asElement, 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 DomainEnumeration type
Constructor Detail

AbstractEnumerationLiteralValueImpl

public AbstractEnumerationLiteralValueImpl(ValueFactory valueFactory,
                                           T element)
Method Detail

asElementValue

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

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class AbstractObjectValue<T>

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractObjectValue<T>