org.eclipse.emf.common.util
Class AbstractEnumerator

java.lang.Object
  extended byorg.eclipse.emf.common.util.AbstractEnumerator
All Implemented Interfaces:
Enumerator
Direct Known Subclasses:
ChangeKind, GenPropertyKind, GenProviderKind, GenResourceKind, SpaceType

public abstract class AbstractEnumerator
extends Object
implements Enumerator

An extensible enumerator implementation.


Constructor Summary
protected AbstractEnumerator(int value, String name)
          Creates an initialized instance.
 
Method Summary
 String getName()
          Returns the name of the enumerator.
 int getValue()
          Returns the int value of the enumerator.
 String toString()
          Returns the name of the enumerator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractEnumerator

protected AbstractEnumerator(int value,
                             String name)
Creates an initialized instance.

Parameters:
value - the int value of the enumerator.
name - the name of the enumerator.
Method Detail

getName

public final String getName()
Returns the name of the enumerator.

Specified by:
getName in interface Enumerator
Returns:
the name.

getValue

public final int getValue()
Returns the int value of the enumerator.

Specified by:
getValue in interface Enumerator
Returns:
the value.

toString

public final String toString()
Returns the name of the enumerator.

Returns:
the name.

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