NamespaceBody
- class NamespaceBody
-
Members defined in
NamespaceBody(3 members)Members inherited from
OwnedChildrenNodes(0 members)Members inherited from
ChildrenNodes(5 members)
Members inherited from
ChildrenNodesView(6 members)
RThe related elements in this container.
RThe relationships in this container.
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
OwningMembershiporAnnotation. 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
appendfor 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
appendlimitations 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
appendfor 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
appendlimitations apply.