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 Objectdecode(Class cl, ObjectInputStream in) getName()Return the name of this enum value.protected static ObjectintgetValue()Returns the integer identifier for this enum value.protected ObjecttoString()voidwrite(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:WritableWrites this object to an ObjectOutputStream.- Specified by:
writein interfaceWritable- Parameters:
out- the stream- Throws:
IOException- if there is a stream error
-
getObject
- Throws:
IOException
-
decode
- Throws:
IOException
-
readResolve
- Throws:
ObjectStreamException
-