Class: Identifiable

composer-common. Identifiable

Identifiable is an entity with a namespace, type and an identifier.

This class is abstract.


<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.

Source:

Methods


getFullyQualifiedIdentifier()

Get the fully qualified identifier of this instance.
(namespace '.' type '#' identifier).

Source:
Returns:

the fully qualified identifier of this instance

Type
string

getIdentifier()

Get the identifier of this instance

Source:
Returns:

The identifier for this object

Type
string

isRelationship()

Determine if this identifiable is a relationship.

Source:
Returns:

True if this identifiable is a relationship,
false if not.

Type
boolean

isResource()

Determine if this identifiable is a resource.

Source:
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

Source:

toString()

Returns the string representation of this class

Source:
Returns:

the string representation of the class

Type
String