Class: Relationship

composer-common. Relationship

A Relationship is a typed pointer to an instance. I.e the relationship
with namespace = 'org.acme', type = 'Vehicle' and id = 'ABC' creates
a pointer that points at an instance of org.acme.Vehicle with the id
ABC.


new Relationship(modelManager, ns, type, id)

Create an asset. Use the Factory to create instances.


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

Extends

  • Identifiable

Methods


isRelationship()

Determine if this identifiable is a relationship.

Source:
Returns:

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

Type
boolean

toString()

Returns the string representation of this class

Source:
Returns:

the string representation of the class

Type
String