Skip to content

association

Represents an Association.

CLASS DESCRIPTION
Association

An Association is used to associate information and Artifacts with Flow Objects.

Classes

Association dataclass

Association(
    *,
    id: Optional[str] = None,
    documentation: list[Documentation] = list(),
    extension_elements: Optional[ExtensionElements] = None,
    source_ref: str,
    target_ref: str,
    association_direction: AssociationDirection = NONE
)

Bases: Artifact

An Association is used to associate information and Artifacts with Flow Objects.

ATTRIBUTE DESCRIPTION
association_direction

Defines whether the Association shows any directionality with an arrowhead.

TYPE: AssociationDirection

source_ref

The IDREF that the Association is connecting from.

TYPE: str

target_ref

The IDREF that the Association is connecting to.

TYPE: str

Attributes

association_direction class-attribute instance-attribute
association_direction: AssociationDirection = field(
    default=NONE, metadata={"name": "associationDirection", "type": "Attribute"}
)

Defines whether the Association shows any directionality with an arrowhead. The default is None (no arrowhead). A value of One means that the arrowhead will be at the Target Object. A value of Both means that there will be an arrowhead at both ends of the Association line.

source_ref class-attribute instance-attribute
source_ref: str = field(
    metadata={
        "name": "sourceRef",
        "type": "Attribute",
        "required": True,
        "is_reference": True,
    }
)

The IDREF that the Association is connecting from.

target_ref class-attribute instance-attribute
target_ref: str = field(
    metadata={
        "name": "targetRef",
        "type": "Attribute",
        "required": True,
        "is_reference": True,
    }
)

The IDREF that the Association is connecting to.

Functions