1 /** 2 * <copyright> 3 * 4 * Copyright (c) 2002-2004 IBM Corporation and others. 5 * All rights reserved. This program and the accompanying materials 6 * are made available under the terms of the Eclipse Public License v1.0 7 * which accompanies this distribution, and is available at 8 * http://www.eclipse.org/legal/epl-v10.html 9 * 10 * Contributors: 11 * IBM - Initial API and implementation 12 * 13 * </copyright> 14 * 15 * $Id: EEnum.java,v 1.4 2005/06/08 06:20:10 nickb Exp $ 16 */ 17 package org.eclipse.emf.ecore; 18 19 20 import org.eclipse.emf.common.util.EList; 21 22 23 /** 24 * <!-- begin-user-doc --> 25 * A representation of the model object '<em><b>EEnum</b></em>'. 26 * <!-- end-user-doc --> 27 * 28 * <p> 29 * The following features are supported: 30 * <ul> 31 * <li>{@link org.eclipse.emf.ecore.EEnum#getELiterals <em>ELiterals</em>}</li> 32 * </ul> 33 * </p> 34 * 35 * @see org.eclipse.emf.ecore.EcorePackage#getEEnum() 36 * @model 37 * @generated 38 */ 39 public interface EEnum extends EDataType 40 { 41 /** 42 * Returns the value of the '<em><b>ELiterals</b></em>' containment reference list. 43 * The list contents are of type {@link org.eclipse.emf.ecore.EEnumLiteral}. 44 * It is bidirectional and its opposite is '{@link org.eclipse.emf.ecore.EEnumLiteral#getEEnum <em>EEnum</em>}'. 45 * <!-- begin-user-doc --> 46 * <p> 47 * It represents the enumerators of the enumeration. 48 * </p> 49 * <!-- end-user-doc --> 50 * @return the value of the '<em>ELiterals</em>' containment reference list. 51 * @see org.eclipse.emf.ecore.EcorePackage#getEEnum_ELiterals() 52 * @see org.eclipse.emf.ecore.EEnumLiteral#getEEnum 53 * @model type="org.eclipse.emf.ecore.EEnumLiteral" opposite="eEnum" containment="true" 54 * @generated 55 */ 56 EList getELiterals(); 57 58 /** 59 * <!-- begin-user-doc --> 60 * Returns the enum literal with the given name, or <code>null</code>. 61 * @param name name in question. 62 * @return the enum literal with the given name, or <code>null</code>. 63 * <!-- end-user-doc --> 64 * @model 65 * @generated 66 */ 67 EEnumLiteral getEEnumLiteral(String name); 68 69 /** 70 * <!-- begin-user-doc --> 71 * Returns the enum literal with the given value, or <code>null</code>. 72 * The values may not be unique; it returns the first. 73 * @param value value in question. 74 * @return the enum literal with the given value, or <code>null</code>. 75 * <!-- end-user-doc --> 76 * @model 77 * @generated 78 */ 79 EEnumLiteral getEEnumLiteral(int value); 80 81 } 82