TypeRelationships
- class TypeRelationships
-
Members defined in
TypeRelationships(6 members)
Members inherited from
ChainedChildrenNodes(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.TypeRelationships.append.R], element: syside.TypeRelationships.append.M, name: syside.NameID = ...) tuple[syside.TypeRelationships.append.R, syside.TypeRelationships.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_chain(relationship: type[syside.TypeRelationships.append_chain.R], features: Sequence[syside.Feature]) tuple[syside.TypeRelationships.append_chain.R, syside.Feature]
Append a relationship with an owned chaining. Raises
TypeErrorif the relationship type cannot have owned chaining in the textual syntax.
- insert(index: int, relationship: type[syside.TypeRelationships.insert.R], element: syside.TypeRelationships.insert.M, name: syside.NameID = ...) tuple[syside.TypeRelationships.insert.R, syside.TypeRelationships.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_chain(index: int, relationship: type[syside.TypeRelationships.insert_chain.R], features: Sequence[syside.Feature]) tuple[syside.TypeRelationships.insert_chain.R, syside.Feature]
Insert a relationship with an owned chaining at the specified index. Raises
TypeErrorif the relationship type cannot have owned chaining in the textual syntax.
- replace(index: int, relationship: type[syside.TypeRelationships.replace.R], element: syside.TypeRelationships.replace.M, name: syside.NameID = ...) tuple[syside.TypeRelationships.replace.R, syside.TypeRelationships.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_chain_at(index: int, relationship: type[syside.TypeRelationships.replace_chain_at.R], features: Sequence[syside.Feature]) tuple[syside.TypeRelationships.replace_chain_at.R, syside.Feature]
Replace the relationship and its related element at the specified index with an owned chaining. The relationship may be reused if its type matches the current relationship at that index. Raises
TypeErrorif the relationship type cannot have owned chaining in the textual syntax.