Relationship

scroll.internal.support.impl.Relationships.Relationship
class Relationship[L <: AnyRef, R <: AnyRef](name: String, leftMul: Multiplicity, rightMul: Multiplicity)(using evidence$1: ClassTag[L], evidence$2: ClassTag[R]) extends RelationshipApi[L, R]

Class representation of a relationship between two (role) types.

Type parameters

L

type of the role of the left side of the relationship

R

type of the role of the right side of the relationship

Value parameters

leftMul

multiplicity of the left side of the relationship

name

name of the relationship

rightMul

multiplicity of the right side of the relationship

Attributes

Graph
Supertypes
class Relationships.this.RelationshipApi[L, R]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def left(matcher: L => Boolean = ...): Seq[L]

Get all instances of the left side of the relationship w.r.t. the provided matching function and checking the multiplicity.

Get all instances of the left side of the relationship w.r.t. the provided matching function and checking the multiplicity.

Implementations raise typed scroll.internal.errors.SCROLLErrors.RelationshipError instances when the configured multiplicity is violated or not supported.

Value parameters

matcher

a matching function to select the appropriate instances

Attributes

Returns

all instances of the left side of the relationship w.r.t. the provided matching function.

Definition Classes
override def right(matcher: R => Boolean = ...): Seq[R]

Get all instances of the right side of the relationship w.r.t. the provided matching function and checking the multiplicity.

Get all instances of the right side of the relationship w.r.t. the provided matching function and checking the multiplicity.

Implementations raise typed scroll.internal.errors.SCROLLErrors.RelationshipError instances when the configured multiplicity is violated or not supported.

Value parameters

matcher

a matching function to select the appropriate instances

Attributes

Returns

all instances of the right side of the relationship w.r.t. the provided matching function.

Definition Classes