NamespaceBody

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

append

insert

replace

Members inherited from OwnedChildrenNodes (0 members)
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.NamespaceBody.append.R], element: syside.NamespaceBody.append.M, name: syside.NameID = ...) tuple[syside.NamespaceBody.append.R, syside.NamespaceBody.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.

append(relationship: type[syside.NamespaceBody.append.R], element: type[syside.NamespaceBody.append.M]) tuple[syside.NamespaceBody.append.R, syside.NamespaceBody.append.M]

Append a new owned element. Relationship must be a subtype of OwningMembership or Annotation. Returns a newly constructed pair of (relationship, element) with the types provided.

insert(index: int, relationship: type[syside.NamespaceBody.insert.R], element: syside.NamespaceBody.insert.M, name: syside.NameID = ...) tuple[syside.NamespaceBody.insert.R, syside.NamespaceBody.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.

insert(index: int, relationship: type[syside.NamespaceBody.insert.R], element: type[syside.NamespaceBody.insert.M]) tuple[syside.NamespaceBody.insert.R, syside.NamespaceBody.insert.M]

Insert a relationship and a related element at the specified index. The related element must be owned so the same owning append limitations apply.

replace(index: int, relationship: type[syside.NamespaceBody.replace.R], element: syside.NamespaceBody.replace.M, name: syside.NameID = ...) tuple[syside.NamespaceBody.replace.R, syside.NamespaceBody.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.

replace(index: int, relationship: type[syside.NamespaceBody.replace.R], element: type[syside.NamespaceBody.replace.M]) tuple[syside.NamespaceBody.replace.R, syside.NamespaceBody.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 must be owned so the same owning append limitations apply.

Used in