syside.NamespacePrefixes

class NamespacePrefixes

Bases: OwnedChildrenNodes[OwningMembership, syside.MetadataFeature | syside.MetadataUsage]

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

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

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