Skip to main content
Version: 2.9

RelationConstructor

Constructors

new RelationConstructor()

new RelationConstructor(tag, direction?): Relation<CloudObject, CloudObject>

Create a relation between two CloudObject classes

Parameters

ParameterTypeDescription
tagInstanceOrTagtag of the relation to create
direction?Directionwhether the relation points to the origin or destination

Returns

Relation<CloudObject, CloudObject>

new RelationConstructor()

new RelationConstructor<O, D>(
tag,
direction?,
origin?,
destination?): Relation<O, D>

Create a relation between two CloudObject classes

Parameters

ParameterTypeDescription
tagInstanceOrTagtag of the relation to create
direction?Directionwhether the relation points to the origin or destination
origin?Class<O>origin class of the relation
destination?Class<D>destination class of the relation

Returns

Relation<O, D>