ChainedMemberAccessor

class ChainedMemberAccessor[R: Membership, M: Feature]
%3 ChainedMemberAccessor ChainedMemberAccessor syside.ChainedMemberAccessor MemberAccessor MemberAccessor syside.MemberAccessor MemberAccessor->ChainedMemberAccessor
Children
Members defined in ChainedMemberAccessor (1 member)

set_member_element_chain

Set the reference to a chain of Features. Replaces the previous member_element.

Members inherited from MemberAccessor (6 members)

member_element

R

The member_element of this member if it is not empty.

membership

R

The membership of this member if it is not empty.

__bool__

extract_member_element

Extract the member_element leaving this member empty. Note that not all empty members are valid textual syntax. This does not check that the model is left in a valid state.

remove_member_element

Remove the member_element leaving this member empty. Note that not all empty members are valid textual syntax. This does not check that the model is left in a valid state.

set_member_element

Set a new member_element. element will only be referenced if the membership is Membership, otherwise ownership constraints apply. Replaces the previous member_element, which may be reused by the model if it was owned.

Methods

set_member_element_chain(arg: Sequence[syside.Feature], /) tuple[syside.OwningMembership, syside.Feature]

Set the reference to a chain of Features. Replaces the previous member_element.

Returns a pair of (membership, member_element) where member_element is the Feature with owned FeatureChainings to the provided Features with order preserved.