office-gobmx/udkapi/com/sun/star/container/XNameAccess.idl

101 lines
3.4 KiB
Text
Raw Normal View History

2000-11-06 05:26:02 -06:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-11-06 05:26:02 -06:00
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
2000-11-06 05:26:02 -06:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-11-06 05:26:02 -06:00
*
* This file is part of OpenOffice.org.
2000-11-06 05:26:02 -06:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2000-11-06 05:26:02 -06:00
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2000-11-06 05:26:02 -06:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2000-11-06 05:26:02 -06:00
*
************************************************************************/
#ifndef __com_sun_star_container_XNameAccess_idl__
#define __com_sun_star_container_XNameAccess_idl__
#include <com/sun/star/container/XElementAccess.idl>
#include <com/sun/star/container/NoSuchElementException.idl>
#include <com/sun/star/lang/WrappedTargetException.idl>
//=============================================================================
2002-10-03 06:44:33 -05:00
module com { module sun { module star { module container {
2000-11-06 05:26:02 -06:00
//=============================================================================
/** is used to access named objects within a container.
<p>To implement inaccurate name access, support the
<type scope="com::sun::star::beans">XExactName</type>
interface. </p>
@see com::sun::star::beans::XExactName
2000-11-06 05:26:02 -06:00
*/
published interface XNameAccess: com::sun::star::container::XElementAccess
2000-11-06 05:26:02 -06:00
{
//-------------------------------------------------------------------------
/** @returns
2002-10-03 06:44:33 -05:00
the object with the specified name.
2000-11-06 05:26:02 -06:00
@param aName
the name of the object.
2000-11-06 05:26:02 -06:00
@throws NoSuchElementException
if an element under Name does not exist.
2000-11-06 05:26:02 -06:00
@throws com::sun::star::lang::WrappedTargetException
2002-10-03 06:44:33 -05:00
If the implementation has internal reasons for exceptions,
2002-12-10 03:31:37 -06:00
then wrap these in a <type scope="com::sun::star::lang">WrappedTargetException</type>
2002-10-03 06:44:33 -05:00
exception.
2000-11-06 05:26:02 -06:00
*/
any getByName( [in] string aName )
2000-11-06 05:26:02 -06:00
raises( com::sun::star::container::NoSuchElementException,
com::sun::star::lang::WrappedTargetException );
//-------------------------------------------------------------------------
/** @returns
a sequence of all element names in this container.
2000-11-06 05:26:02 -06:00
<p>The order of the names is not specified. </p>
2000-11-06 05:26:02 -06:00
*/
sequence<string> getElementNames();
2000-11-06 05:26:02 -06:00
//-------------------------------------------------------------------------
/** @returns
<TRUE/> if an element with this name is in
the container, <FALSE/> otherwise.
2000-11-06 05:26:02 -06:00
2000-12-19 08:36:01 -06:00
<p>In many cases the next call is <member>XNameAccess::getByName</member>.
You should optimize this case. </p>
2000-11-06 05:26:02 -06:00
2002-10-03 06:44:33 -05:00
@param aName
the name of the object.
2000-11-06 05:26:02 -06:00
*/
boolean hasByName( [in] string aName );
2000-11-06 05:26:02 -06:00
};
//=============================================================================
}; }; }; };
#endif