BaseElementAdapterService
Canonical path: NemAll_Python_IFW_ElementAdapter.BaseElementAdapterService
Implementation of the base element adapter service
Methods:
-
AdaptElementsAfterTransaction–Adapt the elements after a transaction (set new address, ...)
-
GetConnectedElements–Get the connected elements (ivk2)
-
GetDocumentIndex–Get the internal index of the element-document
-
GetLinkedElements–Get the linked elements
-
GetMacroElementAddress–Get the array address of macro element, if exist
-
IsConnectedElement–Check, whether the two elements are connected
-
IsElementFromElementGroup–Check, whether the element is inside an element group
-
IsElementOrChildDeleted–Check, whether the element or a child element is deleted
-
IsElementVisible–Check, whether the element is visible
-
IsPostActivation–Get the post activation state from the element
-
IsTypeConnectedElement–Check, whether the element is a type connected element
AdaptElementsAfterTransaction
staticmethod
AdaptElementsAfterTransaction(
elements: BaseElementAdapterList,
) -> BaseElementAdapterList
Adapt the elements after a transaction (set new address, ...)
Parameters:
-
elements(BaseElementAdapterList) –Elements to adapt
Returns:
-
BaseElementAdapterList–Adapted elements
GetConnectedElements
staticmethod
GetConnectedElements(ele: BaseElementAdapter) -> BaseElementAdapterList
Get the connected elements (ivk2)
Parameters:
-
ele(BaseElementAdapter) –Element
Returns:
-
BaseElementAdapterList–Connected elements
GetDocumentIndex
staticmethod
GetDocumentIndex(ele: BaseElementAdapter) -> int
Get the internal index of the element-document
Parameters:
-
ele(BaseElementAdapter) –Element
Returns:
-
int–Internal index of the element-document
GetLinkedElements
staticmethod
GetLinkedElements(ele: BaseElementAdapter) -> BaseElementAdapterVector
Get the linked elements
Parameters:
-
ele(BaseElementAdapter) –Element
Returns:
-
BaseElementAdapterVector–Linked elements
GetMacroElementAddress
staticmethod
GetMacroElementAddress(ele: BaseElementAdapter) -> int
Get the array address of macro element, if exist
Parameters:
-
ele(BaseElementAdapter) –Element
Returns:
-
int–Address of macro if exist, otherwise 0
IsConnectedElement
staticmethod
IsConnectedElement(ele1: BaseElementAdapter, ele2: BaseElementAdapter) -> bool
Check, whether the two elements are connected
Parameters:
-
ele1(BaseElementAdapter) –First element
-
ele2(BaseElementAdapter) –Second element
Returns:
-
bool–Elements are connected: true/false
IsElementFromElementGroup
staticmethod
IsElementFromElementGroup(ele: BaseElementAdapter) -> bool
Check, whether the element is inside an element group
Parameters:
-
ele(BaseElementAdapter) –Element
Returns:
-
bool–Element is inside an element group
IsElementOrChildDeleted
staticmethod
IsElementOrChildDeleted(ele: BaseElementAdapter) -> bool
Check, whether the element or a child element is deleted
Parameters:
-
ele(BaseElementAdapter) –Element to check
Returns:
-
bool–Element or child element is deleted
IsElementVisible
staticmethod
IsElementVisible(ele: BaseElementAdapter) -> bool
Check, whether the element is visible
Parameters:
-
ele(BaseElementAdapter) –Element
Returns:
-
bool–Element is visible: true/false
IsPostActivation
staticmethod
IsPostActivation(ele: BaseElementAdapter) -> bool
Get the post activation state from the element
Parameters:
-
ele(BaseElementAdapter) –Element
Returns:
-
bool–Element with post activation: true/false
IsTypeConnectedElement
staticmethod
IsTypeConnectedElement(ele: BaseElementAdapter, eleTypes: object) -> bool
Check, whether the element is a type connected element
Parameters:
-
ele(BaseElementAdapter) –Element
-
eleTypes(object) –Type(s) of the connection element
Returns:
-
bool–Text connected element: true/false