ooodev.adapter.container.name_container_impl module
- class ooodev.adapter.container.name_container_impl.NameContainerImpl(element_type)[source]
Bases:
Base,XNameContainerClass that implements XNameContainer Component.
- Parameters:
args (Any) –
kwargs (Any) –
- Return type:
Any
- getByName(aName)[source]
- Raises:
com.sun.star.container.NoSuchElementException –
NoSuchElementExceptioncom.sun.star.lang.WrappedTargetException –
WrappedTargetException
- Return type:
Any- Parameters:
aName (str) –
- hasByName(aName)[source]
In many cases the next call is XNameAccess.getByName(). You should optimize this case.
- Return type:
bool- Parameters:
aName (str) –
- insertByName(aName, aElement)[source]
inserts the given element at the specified name.
- Raises:
com.sun.star.lang.IllegalArgumentException –
IllegalArgumentExceptioncom.sun.star.container.ElementExistException –
ElementExistExceptioncom.sun.star.lang.WrappedTargetException –
WrappedTargetException
- Return type:
None- Parameters:
aName (str) –
aElement (Any) –
- removeByName(Name)[source]
removes the element with the specified name.
- Raises:
com.sun.star.container.NoSuchElementException –
NoSuchElementExceptioncom.sun.star.lang.WrappedTargetException –
WrappedTargetException
- Return type:
None- Parameters:
Name (str) –
- replaceByName(aName, aElement)[source]
replaces the element with the specified name with the given element.
- Raises:
com.sun.star.lang.IllegalArgumentException –
IllegalArgumentExceptioncom.sun.star.container.NoSuchElementException –
NoSuchElementExceptioncom.sun.star.lang.WrappedTargetException –
WrappedTargetException
- Return type:
None- Parameters:
aName (str) –
aElement (Any) –