1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XNamedNodeMap.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_xml_dom_XNamedNodeMap_idl__
32 #define __com_sun_star_xml_dom_XNamedNodeMap_idl__
34 #ifndef __com_sun_star_uno_XInterface_idl__
35 #include
<com
/sun
/star
/uno
/XInterface.idl
>
37 #ifndef __com_sun_star_xml_dom_DOMException_idl__
38 #include
<com
/sun
/star
/xml
/dom
/DOMException.idl
>
41 module com
{ module sun
{ module star
{ module xml
{ module dom
{
45 interface XNamedNodeMap
: com
::sun
::star
::uno
::XInterface
49 The number of nodes in this map.
54 Retrieves a node specified by local name
56 XNode getNamedItem
([in] string name
);
59 Retrieves a node specified by local name and namespace URI.
61 XNode getNamedItemNS
([in] string namespaceURI
,[in] string localName
);
64 Returns the indexth item in the map.
66 XNode item
([in] long index
);
69 Removes a node specified by name.
71 DOMException - NOT_FOUND_ERR: Raised if there is no node named name in this map.
72 NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
74 XNode removeNamedItem
([in] string name
) raises
(DOMException
);
77 Removes a node specified by local name and namespace URI.
79 DOMException - NOT_FOUND_ERR: Raised if there is no node with the specified namespaceURI and localName in this map.
80 NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
82 XNode removeNamedItemNS
([in] string namespaceURI
, [in] string localName
) raises
(DOMException
);
85 Adds a node using its nodeName attribute.
87 DOMException - WRONG_DOCUMENT_ERR: Raised if arg was created from a different document than the one that created this map.
88 NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
89 INUSE_ATTRIBUTE_ERR: Raised if arg is an Attr that is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to re-use them in other elements.
90 HIERARCHY_REQUEST_ERR: Raised if an attempt is made to add a node doesn't belong in this NamedNodeMap. Examples would include trying to insert something other than an Attr node into an Element's map of attributes, or a non-Entity node into the DocumentType's map of Entities.
92 XNode setNamedItem
([in] XNode arg
) raises
(DOMException
);
95 Adds a node using its namespaceURI and localName.
97 DOMException - WRONG_DOCUMENT_ERR: Raised if arg was created from a different document than the one that created this map.
98 NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.
99 INUSE_ATTRIBUTE_ERR: Raised if arg is an Attr that is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to re-use them in other elements.
100 HIERARCHY_REQUEST_ERR: Raised if an attempt is made to add a node doesn't belong in this NamedNodeMap. Examples would include trying to insert something other than an Attr node into an Element's map of attributes, or a non-Entity node into the DocumentType's map of Entities.
101 NOT_SUPPORTED_ERR: Always thrown if the current document does not support the "XML" feature, since namespaces were defined by XML.
103 XNode setNamedItemNS
([in] XNode arg
) raises
(DOMException
);