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.
Extends
Type Parameters
Type Parameter |
---|
O extends CloudObject |
D extends CloudObject |
Methods
getDirection()
getDirection(): Direction;
Returns
direction of the relation, whether it points to origin or destination
getInverse()
getInverse(): Relation<D, O>;
Returns
Relation
<D
, O
>
inverse relation where newOrigin = oldDestination, newDestination = oldOrigin
getTag()
getTag(): string;
Returns
string
tag of the relation
Overrides
originType()
originType(): Class<O>;
Returns
Class
<O
>
class type for the origin of the relation
type()
type(): Class<D>;
Returns
Class
<D
>
class type for the destination of the relation