net.infonode.util
Class Enum

java.lang.Object
  extended bynet.infonode.util.Enum
All Implemented Interfaces:
Serializable, Writable
Direct Known Subclasses:
Alignment, Direction, TabAreaVisiblePolicy, TabbedPanelHoverPolicy, TabDepthOrderPolicy, TabDropDownListVisiblePolicy, TabLayoutPolicy, TabSelectTrigger, TitledTabBorderSizePolicy, TitledTabSizePolicy

public class Enum
extends Object
implements Serializable, Writable

Base class for enum classes. Each enum value contains a name and an integer identifier.

Version:
$Revision: 1.8 $ $Date: 2005/02/16 11:28:14 $
See Also:
Serialized Form

Method Summary
 String getName()
          Return the name of this enum value.
 int getValue()
          Returns the integer identifier for this enum value.
 String toString()
           
 void write(ObjectOutputStream out)
          Writes this object to an ObjectOutputStream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getValue

public int getValue()
Returns the integer identifier for this enum value.

Returns:
the integer identifier for this enum value

getName

public String getName()
Return the name of this enum value.

Returns:
the name of this enum value

toString

public String toString()

write

public void write(ObjectOutputStream out)
           throws IOException
Description copied from interface: Writable
Writes this object to an ObjectOutputStream.

Specified by:
write in interface Writable
Parameters:
out - the stream
Throws:
IOException - if there is a stream error


Copyright © 2007 NNL Technology AB. All Rights Reserved.