///////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2010-2011 Wolfgang Kowarschick // // Dieses Werk darf unter den Bedingungen der Creative Common Lizenz by-nc 3.0 de // (http://creativecommons.org/licenses/by-nc/3.0/de/) // vervielfaeltigt, verbreitet, publiziert und modifiziert werden. ///////////////////////////////////////////////////////////////////////////////// package as3.enumeration { import as3.extent.ExtentBase; import as3.extent.I_Element; import as3.identifier.ID; import flash.utils.Dictionary; import flash.utils.getQualifiedClassName; /** * @autor Wolfgang Kowarschick * @category class * @langversion 3.0 */ public class Enum extends ExtentBase implements I_Enum { ///////////////////////////////////////////////////////////////////////////// // Attributes ///////////////////////////////////////////////////////////////////////////// private var v_id: String; /** The id of the current object. It cannot be changed. */ public function get id(): String { return v_id; } ///////////////////////////////////////////////////////////////////////////// // Constructor ///////////////////////////////////////////////////////////////////////////// /** * This constructor may only be called by sub class constructors. * * @param p_id The string value (= identifier) of the new enumeration element. */ public function Enum(p_id: String) { super(); v_id = p_id; this.add(this); } ///////////////////////////////////////////////////////////////////////////// // Methods ///////////////////////////////////////////////////////////////////////////// /** * @return The string value (= identifier) of the current enumeration object. */ public function toString(): String { return v_id; } ///////////////////////////////////////////////////////////////////////////// // End of class ///////////////////////////////////////////////////////////////////////////// } } ///////////////////////////////////////////////////////////////////////////////// // End of file /////////////////////////////////////////////////////////////////////////////////