Relationship

sealed abstract class Relationship(val arc: XLinkArc, val resolvedFrom: ResolvedLocatorOrResource[_ <: TaxonomyElem], val resolvedTo: ResolvedLocatorOrResource[_ <: TaxonomyElem])

Any '''relationship'''. Relationships are like their underlying arcs, but resolving the locators. Note that an underlying arc may represent more than 1 relationship.

Any '''relationship'''. Relationships are like their underlying arcs, but resolving the locators. Note that an underlying arc may represent more than 1 relationship.

These objects must be very efficient to create.

Like for the underlying taxonomy elements, relationship creation is designed not to fail, but the type may be of an unexpected "catch-all relationship type". There is an exception to this leniency, though, and that is that each arc must have an XLink arcole attribute, or else an exception is thrown. This can be circumvented in practice by using an arc filter when instantiating a taxonomy object.

Unlike relationship creation (with the missing arcrole exception), instance methods on relationships may fail, however.

This relationship type hierarchy knows about standard relationships, including dimensional relationships. It also knows about a few specific generic relationships. It does not know about table and formula relationships, which are only seen as non-standard or unknown relationships.

Each relationship is either a eu.cdevreeze.tqa.base.relationship.StandardRelationship, a eu.cdevreeze.tqa.base.relationship.NonStandardRelationship, or an eu.cdevreeze.tqa.base.relationship.UnknownRelationship.

Authors

Chris de Vreeze

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

final def arcPath: Path
final def arcrole: String
final def baseUri: URI
final def docUri: URI
final def elr: String
final override def equals(obj: Any): Boolean
Definition Classes
Any
final def fromPath: Path

Returns the resolved source element path.

Returns the resolved source element path.

final override def hashCode: Int
Definition Classes
Any
final def order: BigDecimal
final def priority: Int
final def toPath: Path

Returns the resolved target element path.

Returns the resolved target element path.

final def uniqueKey: UniqueKey
final def use: Use