Class: Relation

$k. Relation

new $k.Relation()

Represents a relation.

Extends

Methods

inverseRelation() : $k.Relation

Returns the inverse relation

Returns:
Type Description
$k.Relation

relocate(newTarget) : $k.Relation

Changes the relation Target

Name Type Description
newTarget $k.SemanticElement

The new relation target.

Throws:
Type Description
$k.exception.SchemaError

If the relation can not point to the new target (either because new target is of wrong type or because no additional relations can be created for new target).

$k.exception.AccessDenied

If changing the relation's target is not allowed

$k.exception.TransactionError

If no write transaction is active

Returns:
Type Description
$k.Relation

target() : $k.SemanticElement

Returns the relation target

Returns:
Type Description
$k.SemanticElement

Intherited methods