Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: container ::

interface XHierarchicalNameAccess
Description
is used to have hierarchical access to elements within a container.

You address an object of a specific level in the hierarchy by giving its fully qualified name, e.g., "com.sun.star.uno.XInterface".

To implement inaccurate name access, support the ::com::sun::star::beans::XExactName interface.

See also
::com::sun::star::beans::XExactName

Methods' Summary
getByHierarchicalName  
hasByHierarchicalName  
Methods' Details
getByHierarchicalName
any
getByHierarchicalName( [in] string  aName )
raises( NoSuchElementException );

Returns
the object with the specified name.
Parameter aName
the name of the object.
Throws
NoSuchElementException if an element under Name does not exist.
hasByHierarchicalName
boolean
hasByHierarchicalName( [in] string  aName );

Returns
true if an element with this name is in the container, false otherwise.

In many cases, the next call is XNameAccess::getByName. You should optimize this case.

Parameter aName
the name of the object.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.