Packageorg.pranaframework.domain
Classpublic class Enum
InheritanceEnum Inheritance Entity Inheritance ValueObject
ImplementsIEnum

Base class for enumerations.



Public Properties
 PropertyDefined by
 Inheritedid : *
Entity
  value : *
Enum
Public Methods
 MethodDefined by
  
Enum(id:*, value:*)
Creates a new Enum object.
Enum
  
clone():*
Returns the same enum instead of cloning it.
Enum
 Inherited
copyFrom(other:*):void
ValueObject
 Inherited
equals(other:*):Boolean
ValueObject
 Inherited
Entity
  
fromID(id:*, clazz:Class):IEnum
[static] Looks up an enum entry for the given class by its id.
Enum
Protected Methods
 MethodDefined by
 Inherited
clonePropertyValue(property:*, name:String = ""):*
ValueObject
 Inherited
doEquals(other:*, ignoredProperties:Array):Boolean
ValueObject
Protected Constants
 ConstantDefined by
 InheritedPROPERTY_PROTOTOYPE : String = "prototype"
[static]
ValueObject
Property detail
valueproperty
value:*  [read-write]

Implementation
    public function get value():*
    public function set value(value:*):void
Constructor detail
Enum()constructor
public function Enum(id:*, value:*)

Creates a new Enum object.

Parameters
id:* — the id of the enum object
 
value:* — the value of the enum object
Method detail
clone()method
public override function clone():*

Returns the same enum instead of cloning it.

Returns
*
fromID()method 
public static function fromID(id:*, clazz:Class):IEnum

Looks up an enum entry for the given class by its id.

Parameters
id:* — the id of the enum entry to get
 
clazz:Class — the class that defines the enumeration

Returns
IEnum