TypeRelationships

class TypeRelationships
TypeRelationships TypeRelationships syside.TypeRelationships ChainedChildrenNodes ChainedChildrenNodes syside.ChainedChildrenNodes ChainedChildrenNodes->TypeRelationships ChildrenNodes ChildrenNodes syside.ChildrenNodes ChildrenNodes->ChainedChildrenNodes ChildrenNodesView ChildrenNodesView syside.ChildrenNodesView ChildrenNodesView->ChildrenNodes
Members defined in TypeRelationships (6 members)
Members inherited from ChainedChildrenNodes (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.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 TypeError if 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 append for 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 TypeError if 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 append for 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 TypeError if the relationship type cannot have owned chaining in the textual syntax.

Used in