Class: Identifiers

Identifiers


new Identifiers( [json])

Manage the set of identifers for an object.
Parameters:
Name Type Argument Description
json Object <optional>
See:

Extends

Methods


addValue(value [, type])

Add a value for a given type
Parameters:
Name Type Argument Description
value String
type String <optional>

getValues( [type])

Get the values for a given type
Parameters:
Name Type Argument Description
type String <optional>
If not specified then values with no associated type are returned.
Returns:
Type
Array.<String>

init(json)

Initialize from JSON
Parameters:
Name Type Description
json Object
Overrides:
Returns:
this
Type
Identifiers

<static> isInstance(obj)

Check whether the given object is an instance of this class.
Parameters:
Name Type Description
obj Object
Returns:
Type
Boolean

setValues(values [, type])

Set the values for a given type
Parameters:
Name Type Argument Description
values Array.<String>
type String <optional>

toJSON()

Export the object as JSON
Overrides:
Returns:
JSON object
Type
Object