Package net.infonode.util
Class Enum
java.lang.Object
net.infonode.util.Enum
- All Implemented Interfaces:
Serializable
,Writable
- Direct Known Subclasses:
Alignment
,Direction
,TabAreaVisiblePolicy
,TabbedPanelHoverPolicy
,TabDepthOrderPolicy
,TabDropDownListVisiblePolicy
,TabLayoutPolicy
,TabSelectTrigger
,TitledTabBorderSizePolicy
,TitledTabSizePolicy
Base class for enum classes.
Each enum value contains a name and an integer identifier.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Object
decode
(Class cl, ObjectInputStream in) getName()
Return the name of this enum value.protected static Object
int
getValue()
Returns the integer identifier for this enum value.protected Object
toString()
void
write
(ObjectOutputStream out) Writes this object to an ObjectOutputStream.
-
Constructor Details
-
Enum
-
-
Method Details
-
getValue
public int getValue()Returns the integer identifier for this enum value.- Returns:
- the integer identifier for this enum value
-
getName
Return the name of this enum value.- Returns:
- the name of this enum value
-
toString
-
write
Description copied from interface:Writable
Writes this object to an ObjectOutputStream.- Specified by:
write
in interfaceWritable
- Parameters:
out
- the stream- Throws:
IOException
- if there is a stream error
-
getObject
- Throws:
IOException
-
decode
- Throws:
IOException
-
readResolve
- Throws:
ObjectStreamException
-