org.eclipse.ocl.examples.domain.values.impl
Class EnumerationLiteralValueImpl
java.lang.Object
org.eclipse.ocl.examples.domain.values.impl.AbstractValue
org.eclipse.ocl.examples.domain.values.impl.AbstractObjectValue<T>
org.eclipse.ocl.examples.domain.values.impl.AbstractEnumerationLiteralValueImpl<DomainEnumerationLiteral>
org.eclipse.ocl.examples.domain.values.impl.EnumerationLiteralValueImpl
- All Implemented Interfaces:
- ElementValue, EnumerationLiteralValue, ObjectValue, Value
public class EnumerationLiteralValueImpl
- extends AbstractEnumerationLiteralValueImpl<DomainEnumerationLiteral>
- implements EnumerationLiteralValue
Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value |
INVALID_NAME |
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.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 |
EnumerationLiteralValueImpl
public EnumerationLiteralValueImpl(ValueFactory valueFactory,
DomainEnumerationLiteral element)
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