Skip to main content
Version: Next

Relation <O, D>

Relations can be defined between from a CloudObject to another, for example between two data types. Relations are directed and have two types: the origin type, the destination type.

Defining a relation between two data types means that instances of these data types can be related with that relation.

Hierarchy

Index

Methods

getDirection


  • Returns Direction

    direction of the relation, whether it points to origin or destination

getInverse


  • Returns Relation<D, O>

    inverse relation where newOrigin = oldDestination, newDestination = oldOrigin

getTag

  • getTag(): string

  • Returns string

    tag of the relation

originType


  • Returns Class<O>

    class type for the origin of the relation

type


  • Returns Class<D>

    class type for the destination of the relation