Class: WKcEnum

$wk$. WKcEnum

new WKcEnum(arguments) → {Object}

$wk$.WKcEnum is a constructor to create enumeration types.

Each argument passed to the constructor describes a enumeration key/value pair. Three types of arguments are supported:

String
The string denotes the enumaration key. As enumaration value a unique integer number is used.
Array
The array must contain two values: The first value, a string, denotes the key, the second value is used as enumeration value.
Object
The object itself is used a enumartion value. It must contain a property named key, the value of which is used as enumeration key.

Parameters:
Name Type Description
arguments A list of enumeration key/value specifiers.
Source:
Returns:
A new enumeration object.
Type
Object
W. Kowarschick © 2013 (CC BY-NC-SA 3.0: http://creativecommons.org/licenses/by-nc-sa/3.0/)
Documentation generated by JSDoc 3.3.0-dev on Sat Oct 05 2013 15:14:39 GMT+0200 (MESZ) using the DocStrap template.