Class: Relation

olympe.dc.registry. Relation

Sync directory entries relations.


new Relation(tag [, direction], origin, destination)

Parameters:
Name Type Argument Description
tag olympe.dc.Tag
direction olympe.dc.Direction <optional>
origin function
destination function
Implements:

Members


<protected, non-null> direction :olympe.dc.Direction

Type:

<protected> tag :string

Type:
  • string

Methods


equals(r)

Return true if the specified relation is equal to this one.

Parameters:
Name Type Description
r Object
Returns:
Type
boolean

getDirection()

Gets the relation direction.

Returns:

The direction.

Type
olympe.dc.Direction

getInverse()

Gets the inverse relation.

Returns:

The inverse relation.

Type
olympe.dc.registry.Relation

getTag()

Return the relation tag

Implements:
Returns:
Type
string

originType()

Return the origin type of this relation.

Returns:
Type
function

toString()


type()

Return the destination type of this relation.

Returns:
Type
function