new Reference(tag)
Creates a Reference.
Parameters:
| Name | Type | Description |
|---|---|---|
tag |
string | olympe.dc.HasTag | The tag of the instance to reference. |
- Implements:
Methods
-
<static> fromJSON(json)
-
Deserializes an
Referencefrom a JSON object or string.Parameters:
Name Type Description jsonstring | Object Returns:
- Type
- olympe.dc.Reference
-
equals(other)
-
Checks if two References are identical.
Parameters:
Name Type Description otherObject The Object to test against.
Returns:
trueif this Reference is identical toother.- Type
- boolean
-
getSync()
-
Gets the referenced instance.
Returns:
The instance.
-
getTag()
-
Gets the references object's tag.
- Implements:
Returns:
The tag.
- Type
- string
-
toJSON()
-
Converts this
Referenceinto a JSON string.Returns:
- Type
- string
Olympe SDK