FilterCollection
implementation of the filter collection
FilterCollection
Canonical path: Utils.ElementFilter.FilterCollection.FilterCollection
Bases: BaseFilterObject
implementation of the filter collection
__call__
__call__(element: BaseElementAdapter) -> bool
execute the filter collection
Parameters:
-
element
(BaseElementAdapter
) –element to filter
Returns:
-
bool
–element fulfills the filter: True/False
__init__
initialize
Parameters:
-
and_filter
(bool
, default:False
) –combine the filters with an AND operation
append
append(
ele_filter: (
BaseFilterObject | SelectionQuery | Callable[[BaseElementAdapter], bool]
),
)
append a filter
Parameters:
-
ele_filter
(BaseFilterObject | SelectionQuery | Callable[[BaseElementAdapter], bool]
) –filter
Placeholder