ooodev.adapter.container.name_container_impl module
- class ooodev.adapter.container.name_container_impl.NameContainerImpl(element_type)[source]
Bases:
Base
,XNameContainer
Class that implements XNameContainer Component.
- Parameters:
args (Any) –
kwargs (Any) –
- Return type:
Any
- getByName(aName)[source]
- Raises:
com.sun.star.container.NoSuchElementException –
NoSuchElementException
com.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 –
IllegalArgumentException
com.sun.star.container.ElementExistException –
ElementExistException
com.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 –
NoSuchElementException
com.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 –
IllegalArgumentException
com.sun.star.container.NoSuchElementException –
NoSuchElementException
com.sun.star.lang.WrappedTargetException –
WrappedTargetException
- Return type:
None
- Parameters:
aName (str) –
aElement (Any) –