| LibreOffice
    LibreOffice 25.2 SDK API Reference | 
is used to access named objects within a container. More...
import "XNameAccess.idl";
 
  
| Public Member Functions | |
| any | getByName ([in] string aName) raises ( com::sun::star::container::NoSuchElementException, com::sun::star::lang::WrappedTargetException ) | 
| sequence< string > | getElementNames () | 
| boolean | hasByName ([in] string aName) | 
| Public Member Functions inherited from XElementAccess | |
| type | getElementType () | 
| boolean | hasElements () | 
| Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) | 
| queries for a new interface to an existing UNO object. | |
| void | acquire () | 
| increases the reference counter by one. | |
| void | release () | 
| decreases the reference counter by one. | |
is used to access named objects within a container.
To implement inaccurate name access, support the com::sun::star::beans::XExactName interface.
| any getByName | ( | [in] string | aName | ) | ||
| raises | ( | com::sun::star::container::NoSuchElementException, | ||||
| com::sun::star::lang::WrappedTargetException ) | ||||||
| aName | the name of the object. | 
| NoSuchElementException | if an element under Name does not exist. | 
| com::sun::star::lang::WrappedTargetException | If the implementation has internal reasons for exceptions, then wrap these in a com::sun::star::lang::WrappedTargetException exception. | 
| sequence< string > getElementNames | ( | ) | 
The order of the names is not specified.
| boolean hasByName | ( | [in] string | aName | ) | 
In many cases the next call is XNameAccess::getByName(). You should optimize this case.
| aName | the name of the object. |