Skip to content

AttributeFilterImpl

Canonical path: Utils.ElementFilter.AttributeFilter.AttributeFilterImpl

Bases: BaseFilterObject

Filter for element attributes

Methods:

__call__

__call__(element: BaseElementAdapter) -> bool

Execute the filtering

Parameters:

Returns:

  • bool

    element fulfills the filter: True/False

__init__

__init__(
    attribute_comparison_operator: list[str],
    attribute_data: list[AttributeIdValue],
    attribute_logical_operator: list[str],
)

Initialize

Parameters:

  • attribute_comparison_operator (list[str]) –

    attributes comparison operator

  • attribute_data (list[AttributeIdValue]) –

    attributes data

  • attribute_logical_operator (list[str]) –

    attributes logical operator

__str__

__str__() -> str

String representation of the filter

Returns:

  • str

    string representation

to_info_string

to_info_string() -> str

String representation of the filter for info

Returns:

  • str

    string representation for info

Placeholder