ChainedReferenceAccessor

class ChainedReferenceAccessor
%3 ChainedReferenceAccessor ChainedReferenceAccessor syside.ChainedReferenceAccessor ReferenceAccessor ReferenceAccessor syside.ReferenceAccessor ReferenceAccessor->ChainedReferenceAccessor
Children
Members defined in ChainedReferenceAccessor (2 members)

set_chain

try_set_chain but instead raises ValueError if this reference cannot be modified.

try_set_chain

Try changing the referenced element to a chain of Features. Returns None if this reference cannot be modified, otherwise returns a new owned Feature that chains all Features in order.

Members inherited from ReferenceAccessor (4 members)

element

R

Returns the referenced Element. This may return None, e.g. when reference resolution failed, although in most such cases a placeholder element will be returned instead.

modifiable

R

Returns True if this reference can be modified, that is the owning Relationship is an owned member of a Namespace. Calling set methods when modifiable == False will raise ValueError.

set

try_set but instead raises ValueError if this reference cannot be modified.

try_set

Try changing the referenced element. Returns None if this reference cannot be modified, otherwise returns element argument.

Methods

set_chain(arg: Sequence[syside.Feature], /) syside.Feature

try_set_chain but instead raises ValueError if this reference cannot be modified.

try_set_chain(arg: Sequence[syside.Feature], /) syside.Feature | None

Try changing the referenced element to a chain of Features. Returns None if this reference cannot be modified, otherwise returns a new owned Feature that chains all Features in order.