entities~RelationshipType(name)

The type of relationships.

new RelationshipType(name)

Constructs a relationship type.
Parameters:
Name Type Description
name string The name of the relationship type.

Methods

getName() → {string}

Returns the name of the relationship type.
Returns:
string - The name of the relationship type.

getUuid() → {string}

Returns the UUID of the relationship type.
Returns:
string - The uuid of the relationship type.

isRelationshipOfType(relationship) → {Boolean}

Returns true, if the given relationship is of the this type.
Parameters:
Name Type Description
relationship Relationship The relationship.
Returns:
Boolean - True, if the given relationship is of the this type.

isRelationshipRegistered(relationship) → {Boolean}

Returns true, if the relationship is registered.
Parameters:
Name Type Description
relationship Relationship The relationship.
Returns:
Boolean - True, if the relationship is already registered.

register(relationship)

Registers an relationship of this relationship type.
Parameters:
Name Type Description
relationship Relationship The relationship to register.

unregister(relationship)

Unregisters an relationship.
Parameters:
Name Type Description
relationship Relationship The relationship to unregister.