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 valueString typeString <optional>
-
getValues( [type])
-
Get the values for a given type
Parameters:
Name Type Argument Description typeString <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 jsonObject - Overrides:
Returns:
this- Type
- Identifiers
-
<static> isInstance(obj)
-
Check whether the given object is an instance of this class.
Parameters:
Name Type Description objObject Returns:
- Type
- Boolean
-
setValues(values [, type])
-
Set the values for a given type
Parameters:
Name Type Argument Description valuesArray.<String> typeString <optional>
-
toJSON()
-
Export the object as JSON
- Overrides:
Returns:
JSON object- Type
- Object