001    /**
002     * <copyright>
003     *
004     * Copyright (c) 2002-2004 IBM Corporation and others.
005     * All rights reserved.   This program and the accompanying materials
006     * are made available under the terms of the Eclipse Public License v1.0
007     * which accompanies this distribution, and is available at
008     * http://www.eclipse.org/legal/epl-v10.html
009     * 
010     * Contributors: 
011     *   IBM - Initial API and implementation
012     *
013     * </copyright>
014     *
015     * $Id: Enumerator.java,v 1.3 2005/10/28 13:57:55 davidms Exp $
016     */
017    package org.eclipse.emf.common.util;
018    
019    
020    /**
021     * An interface implemented by the enumerators of a type-safe enum.
022     */
023    public interface Enumerator
024    {
025      /**
026       * Returns the name of the enumerator.
027       * @return the name.
028       */
029      String getName();
030    
031      /**
032       * Returns the <code>int</code>value of the enumerator.
033       * @return the value.
034       */
035      int getValue();
036      
037      /**
038       * Returns the literal value of the enumerator.
039       * @return the literal.
040       */
041      String getLiteral();
042    }