Annotations

class Annotations
Annotations Annotations syside.Annotations ChildrenNodes ChildrenNodes syside.ChildrenNodes ChildrenNodes->Annotations ChildrenNodesView ChildrenNodesView syside.ChildrenNodesView ChildrenNodesView->ChildrenNodes
Members defined in Annotations (3 members)

append

insert

replace

Members inherited from ChildrenNodes (5 members)
Members inherited from ChildrenNodesView (6 members)

elements

R

The related elements in this container.

relationships

R

The relationships in this container.

__bool__

__getitem__

__len__

at

Methods

append(relationship: type[syside.Annotations.append.R], element: syside.Annotations.append.M, name: syside.NameID = ...) tuple[syside.Annotations.append.R, syside.Annotations.append.M]

Append a new owned or referenced element, inferred from the relationship type and this container. Returns a pair of (relationship, element), only the relationship is newly constructed.

insert(index: int, relationship: type[syside.Annotations.insert.R], element: syside.Annotations.insert.M, name: syside.NameID = ...) tuple[syside.Annotations.insert.R, syside.Annotations.insert.M]

Insert a relationship and a related element at the specified index. The related element may be owned or referenced depending on the relationship type and this container, see append for more details.

replace(index: int, relationship: type[syside.Annotations.replace.R], element: syside.Annotations.replace.M, name: syside.NameID = ...) tuple[syside.Annotations.replace.R, syside.Annotations.replace.M]

Replace the relationship and its related element at the specified index. The relationship may be reused if its type matches the current relationship at that index. The related element may be owned or referenced depending on the relationship type and this container, see append for more details.

Used in