ConnectorEndsAccessor

class ConnectorEndsAccessor[R: FeatureMembership, M: Feature]
%3 ConnectorEndsAccessor ConnectorEndsAccessor syside.ConnectorEndsAccessor ChildrenNodesView ChildrenNodesView syside.ChildrenNodesView ChildrenNodesView->ConnectorEndsAccessor
Children
Members defined in ConnectorEndsAccessor (8 members)

modifiable

R

Returns True if the contents of this accessor can be modified. In such a case, try_ methods will return values, and corresponding modification methods will not raise ValueErrors.

append

Same as try_append but will raise ValueError if the contents cannot be modified.

clear

Clear the contents accessed by this accessor. Does nothing if the contents cannot be modified.

erase

Erase Feature at the specified index. Raises IndexError if the index is out of bounds.

extract

Extract Feature at the specified index. Raises IndexError if the index is out of bounds.

insert

Same as insert but will raise ValueError if the contents cannot be modified.

try_append

Try appending a new Feature. Ownership constraints apply.

try_insert

Try inserting a new Feature at the specified index. Ownership constraints apply.

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

Attributes

property modifiable: bool

Returns True if the contents of this accessor can be modified. In such a case, try_ methods will return values, and corresponding modification methods will not raise ValueErrors.

False is returned when the corresponding textual syntax position is already occupied by other elements, e.g. FlowUsage declared_messages and declared_ends share the same position.

Methods

append(arg0: syside.M, /) tuple[syside.R, syside.M]

Same as try_append but will raise ValueError if the contents cannot be modified.

append(/) tuple[syside.R, syside.M]
clear() None

Clear the contents accessed by this accessor. Does nothing if the contents cannot be modified.

erase(arg: int, /) None

Erase Feature at the specified index. Raises IndexError if the index is out of bounds.

extract(arg0: int, /) syside.M

Extract Feature at the specified index. Raises IndexError if the index is out of bounds.

insert(arg0: int, arg1: syside.M, /) tuple[syside.R, syside.M]

Same as insert but will raise ValueError if the contents cannot be modified.

insert(arg0: int, /) tuple[syside.R, syside.M]
try_append(arg0: syside.M, /) tuple[syside.R, syside.M] | None

Try appending a new Feature. Ownership constraints apply.

Returns a pair of (membership, feature) where feature is the argument passed in if the contents can be modified. Note that generally empty Features are not syntactically correct, and the correct syntax depends on the owner type.

try_append() tuple[syside.R, syside.M] | None

Try appending a new default constructed Feature with type inferred from the corresponding member type in the textual syntax dependent on the owner of this accessor.

Returns a pair of (membership, feature) if the contents can be modified. Note that generally empty Features are not syntactically correct, and the correct syntax depends on the owner type.

try_insert(arg0: int, arg1: syside.M, /) tuple[syside.R, syside.M] | None

Try inserting a new Feature at the specified index. Ownership constraints apply.

Returns a pair of (membership, feature) where feature is the argument passed in if the contents can be modified. Note that generally empty Features are not syntactically correct, and the correct syntax depends on the owner type.

try_insert(arg0: int, /) tuple[syside.R, syside.M] | None

Try inserting a new default constructed Feature at the index specified with type inferred from the corresponding member type in the textual syntax dependent on the owner of this accessor.

Returns a pair of (membership, feature) if the contents can be modified. Note that generally empty Features are not syntactically correct, and the correct syntax depends on the owner type.