ElementModificationDataList
Canonical path: TypeCollections.ElementModificationDataList.ElementModificationDataList
Bases: list[ElementModificationData[ELETYPE, DATATYPE]]
implementation of the list class for the element modification
Methods:
-
__init__–Initialization of class ElementModificationDataLis
-
add_elements–Append element modification data to the list
-
get_element–get the element
-
get_modified_elements–Get modified elements
-
set_handle_modification–Set handle modification
-
set_property_modification–Set property modification
Attributes:
-
adapter_elements(list[BaseElementAdapter]) –Get adapter elements
-
is_handle_modified(bool) –Check if the handle is modified
-
is_modified(bool) –Check if the element is modified
adapter_elements
property
adapter_elements: list[BaseElementAdapter]
is_handle_modified
property
Check if the handle is modified
Returns:
-
bool–True if the handle is modified
is_modified
property
Check if the element is modified
Returns:
-
bool–True if the element is modified
add_elements
add_elements(
adapter_element: BaseElementAdapter,
element: ELETYPE,
additional_data: DATATYPE = None,
)
Append element modification data to the list
Parameters:
-
adapter_element(BaseElementAdapter) –adapter element
-
element(ELETYPE) –element
-
additional_data(DATATYPE, default:None) –additional data
get_element
get_element(adapter_element: BaseElementAdapter) -> ELETYPE
get the element
Parameters:
-
adapter_element(BaseElementAdapter) –adapter element
Returns:
-
ELETYPE–element
get_modified_elements
Get modified elements
Returns:
-
list[ELETYPE]–List of modified elements
set_handle_modification
set_handle_modification(adapter_element: BaseElementAdapter)