RelationModel

The RelationModel models an asset-relation.

implements: hash
bundle: online channel standard (oc)
since 4.2.0
The RelationModel models an asset-relation.

The RelationModel represents an asset relation from the perspective of an source asset.

Link Information

isParentRel ↦ AssetModel
since 4.2.0
Returns true if and only if the original source asset of the query is the child asset of the relation.

parent ↦ AssetModel
since 4.2.0
Returns the parent asset of the relation.

isChildRel ↦ Boolean
since 4.2.0
Returns true if and only if the original source asset of the query is the parent asset of the relation.

child ↦ AssetModel
since 4.2.0
Returns the child asset of the relation.

Metadata

sorting ↦ Number
since 4.2.0
Returns the sorting number of the relation.

type ↦ String
since 4.2.0
Returns the relation type.

startDate ↦ Date
since 4.2.0
Returns the value of the attribute 'start_date'.

endDate ↦ Date
since 4.2.0
Returns the value of the attribute 'end_date'.

displayName ↦ String
since 4.2.0
Returns the display name of the relation types.

relationDescription ↦ String
since 5.6.0
Returns the relation description.

relationName ↦ String
since 5.6.0
Returns the relation name.

relationNameDirected ↦ String
since 5.6.0
Returns the (directed) relation name.

features ↦ FeatureInstancesModel
since 4.2.1
Returns a model of the feature instances of the relation.

xmlData ↦ NodeModel
since 4.2.0
Returns the arbitrary xml data (customizing).

xml ↦ NodeModel
since 4.2.1
Returns the xml defining this relation.