Packagesystem
Classpublic class Enum
InheritanceEnum Inheritance Object
Implements Serializable
Subclasses AccessorType, FilterType, HostID, HostnameType, LoggerLevel, MemberType, PlatformID, SwitchStatus

This class determinates a basic implementation to creates enumeration objects.



Public Methods
 MethodDefined By
  
Enum(value:int = 0, name:String)
Creates a new Enum instance.
Enum
  
toSource(indent:int = 0):String
Returns the source code String representation of the object.
Enum
  
toString():String
Returns the String representation of the object.
Enum
  
valueOf():int
Returns the primitive value of the object.
Enum
Constructor Detail
Enum()Constructor
public function Enum(value:int = 0, name:String)

Creates a new Enum instance.

Parameters
value:int (default = 0) — The value of the enumeration.
 
name:String — The name key of the enumeration.
Method Detail
toSource()method
public function toSource(indent:int = 0):String

Returns the source code String representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code String representation of the object.
toString()method 
public function toString():String

Returns the String representation of the object.

Returns
String — the String representation of the object.
valueOf()method 
public function valueOf():int

Returns the primitive value of the object.

Returns
int — the primitive value of the object.