org.eclipse.emf.ecore.xcore
Interface XEnumLiteral

All Superinterfaces:
EObject, Notifier, XModelElement, XNamedElement
All Known Implementing Classes:
XEnumLiteralImpl

public interface XEnumLiteral
extends XNamedElement

A representation of the model object 'XEnum Literal'.

The following features are supported:

See Also:
XcorePackage.getXEnumLiteral()

Method Summary
 XEnum getEnum()
          Returns the value of the 'Enum' container reference.
 java.lang.String getLiteral()
          Returns the value of the 'Literal' attribute
 int getValue()
          Returns the value of the 'Value' attribute
 void setLiteral(java.lang.String value)
          Sets the value of the 'Literal' attribute
 void setValue(int value)
          Sets the value of the 'Value' attribute
 
Methods inherited from interface org.eclipse.emf.ecore.xcore.XNamedElement
getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.xcore.XModelElement
getAnnotation, getAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getValue

int getValue()
Returns the value of the 'Value' attribute.

If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Value' attribute.
See Also:
setValue(int), XcorePackage.getXEnumLiteral_Value()

setValue

void setValue(int value)
Sets the value of the 'Value' attribute.

Parameters:
value - the new value of the 'Value' attribute.
See Also:
getValue()

getLiteral

java.lang.String getLiteral()
Returns the value of the 'Literal' attribute.

If the meaning of the 'Literal' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Literal' attribute.
See Also:
setLiteral(String), XcorePackage.getXEnumLiteral_Literal()

setLiteral

void setLiteral(java.lang.String value)
Sets the value of the 'Literal' attribute.

Parameters:
value - the new value of the 'Literal' attribute.
See Also:
getLiteral()

getEnum

XEnum getEnum()
Returns the value of the 'Enum' container reference. It is bidirectional and its opposite is 'Literals'.

If the meaning of the 'Enum' container reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Enum' container reference.
See Also:
XcorePackage.getXEnumLiteral_Enum(), XEnum.getLiterals()

Copyright 2001-2012 IBM Corporation and others.
All Rights Reserved.