ooodev.adapter.xml.dom.node_list_partial module

class ooodev.adapter.xml.dom.node_list_partial.NodeListPartial(component, interface=com.sun.star.xml.dom.XNodeList)[source]

Bases: object

Partial class for XNodeList.

Parameters:
  • component (XNodeList) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.xml.dom.XNodeList)[source]

Constructor

Parameters:
  • component (XNodeList) – UNO Component that implements com.sun.star.xml.dom.XNodeList interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XNodeList.

Return type:

None

get_length()[source]

The number of nodes in the list.

Return type:

int

item(idx)[source]

Returns a node specified by index in the collection.

Return type:

XNode

Parameters:

idx (int) –