org.eclipse.emf.ecore
Interface EEnum

All Superinterfaces:
EClassifier, EDataType, EModelElement, ENamedElement, EObject, Notifier
All Known Implementing Classes:
EEnumImpl

public interface EEnum
extends EDataType

A representation of the model object 'EEnum'.

The following features are supported:

See Also:
EcorePackage.getEEnum()

Method Summary
 EEnumLiteral getEEnumLiteral(int value)
           Returns the enum literal with the given value, or null.
 EEnumLiteral getEEnumLiteral(String name)
           Returns the enum literal with the given name, or null.
 EEnumLiteral getEEnumLiteralByLiteral(String literal)
           Returns the enum literal with the given literal value, or null.
 EList getELiterals()
          Returns the value of the 'ELiterals' containment reference list.
 
Methods inherited from interface org.eclipse.emf.ecore.EDataType
isSerializable, setSerializable
 
Methods inherited from interface org.eclipse.emf.ecore.EClassifier
getClassifierID, getDefaultValue, getEPackage, getInstanceClass, getInstanceClassName, isInstance, setInstanceClass, setInstanceClassName
 
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement
getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getELiterals

public EList getELiterals()
Returns the value of the 'ELiterals' containment reference list. The list contents are of type EEnumLiteral. It is bidirectional and its opposite is 'EEnum'.

It represents the enumerators of the enumeration.

Returns:
the value of the 'ELiterals' containment reference list.
See Also:
EcorePackage.getEEnum_ELiterals(), EEnumLiteral.getEEnum()

getEEnumLiteral

public EEnumLiteral getEEnumLiteral(String name)
Returns the enum literal with the given name, or null.

Parameters:
name - name in question.
Returns:
the enum literal with the given name, or null.

getEEnumLiteral

public EEnumLiteral getEEnumLiteral(int value)
Returns the enum literal with the given value, or null. The values may not be unique; it returns the first.

Parameters:
value - value in question.
Returns:
the enum literal with the given value, or null.

getEEnumLiteralByLiteral

public EEnumLiteral getEEnumLiteralByLiteral(String literal)
Returns the enum literal with the given literal value, or null.

Parameters:
literal - literal in question.
Returns:
the enum literal with the given literal value, or null.

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