ooodev.adapter.container.hierarchical_name_partial module
- class ooodev.adapter.container.hierarchical_name_partial.HierarchicalNamePartial(component, interface=com.sun.star.container.XHierarchicalName)[source]
Bases:
objectPartial class for XHierarchicalName.
- Parameters:
component (XHierarchicalName) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.container.XHierarchicalName)[source]
Constructor
- Parameters:
component (XHierarchicalName) – UNO Component that implements
com.sun.star.container.XHierarchicalNameinterface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XHierarchicalName.
- Return type:
None
- compose_hierarchical_name(relative_name)[source]
builds the hierarchical name of an object, given a relative name
Can be used to find the name of a descendant object in the hierarchy without actually accessing it.
- Raises:
com.sun.star.lang.IllegalArgumentException –
IllegalArgumentExceptioncom.sun.star.lang.NoSupportException –
NoSupportException
- Return type:
str- Parameters:
relative_name (str) –