Class: RoleMapUtils

RoleMapUtils

new RoleMapUtils()

Util methods to manipulate {role, item} hash.
Source:

Members

(static) NON_EXPLICIT_ROLE

Indicate a role is not explicited set.
Source:

Methods

(static) createMap(item, role) → {Hash}

Create a role map.
Parameters:
Name Type Description
item Variant
role String If not set, Kekule.RoleMapUtils.NON_EXPLICIT_ROLE will be used.
Source:
Returns:
Type
Hash

(static) getItem(map) → {Variant}

Get item in map.
Parameters:
Name Type Description
map Hash
Source:
Returns:
Type
Variant

(static) getRole(map) → {String}

Get role name in map.
Parameters:
Name Type Description
map Hash
Source:
Returns:
Type
String

(static) setItem(map, item)

Set item of map.
Parameters:
Name Type Description
map Hash
item Variant
Source:

(static) setRole(map, role)

Set role name of map.
Parameters:
Name Type Description
map Hash
role String
Source: