<abstract> new Identifiable(modelManager, ns, type, id)
Create an instance.
Note: Only to be called by framework code. Applications should
retrieve instances from Factory
Parameters:
Name | Type | Description |
---|---|---|
modelManager |
ModelManager | The ModelManager for this instance |
ns |
string | The namespace this instance. |
type |
string | The type this instance. |
id |
string | The identifier of this instance. |
Methods
-
getFullyQualifiedIdentifier()
-
Get the fully qualified identifier of this instance.
(namespace '.' type '#' identifier).Returns:
the fully qualified identifier of this instance
- Type
- string
-
getIdentifier()
-
Get the identifier of this instance
Returns:
The identifier for this object
- Type
- string
-
isRelationship()
-
Determine if this identifiable is a relationship.
Returns:
True if this identifiable is a relationship,
false if not.- Type
- boolean
-
isResource()
-
Determine if this identifiable is a resource.
Returns:
True if this identifiable is a resource,
false if not.- Type
- boolean
-
setIdentifier(id)
-
Set the identifier of this instance
Parameters:
Name Type Description id
string the new identifier for this object
-
toString()
-
Returns the string representation of this class
Returns:
the string representation of the class
- Type
- String