LibreOffice LibreOffice 25.2 SDK API Reference

XElement.idl
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20module com { module sun { module star { module xml { module dom {
21
22 interface XElement: XNode
23{
27 string getAttribute([in] string name);
28
32 XAttr getAttributeNode([in] string name);
33
37 XAttr getAttributeNodeNS([in] string namespaceURI,[in]
38 string localName);
39
43 string getAttributeNS([in] string namespaceURI, [in] string localName);
44
50 XNodeList getElementsByTagName([in] string name);
51
57 XNodeList getElementsByTagNameNS([in] string namespaceURI,[in] string localName);
58
62 string getTagName();
63
68 boolean hasAttribute([in] string name);
69
74 boolean hasAttributeNS([in] string namespaceURI,[in] string localName);
75
81 void removeAttribute([in] string name) raises (DOMException);
82
89 XAttr removeAttributeNode([in] XAttr oldAttr) raises (DOMException);
90
96 void removeAttributeNS([in] string namespaceURI,[in] string localName) raises (DOMException);
97
104 void setAttribute([in] string name,[in] string value) raises (DOMException);
105
113 XAttr setAttributeNode([in] XAttr newAttr) raises (DOMException);
114
123 XAttr setAttributeNodeNS([in] XAttr newAttr) raises (DOMException);
124
133 void setAttributeNS(
134 [in] string namespaceURI, [in] string qualifiedName, [in] string value) raises (DOMException);
135};
136}; }; }; }; };
137
138/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::xml::dom::DOMException
encapsulates the details of an XML parse error or warning.
Definition: DOMException.idl:28
com::sun::star::xml::dom::XAttr
Definition: XAttr.idl:25
com::sun::star::xml::dom::XElement
Definition: XElement.idl:23
com::sun::star::xml::dom::XElement::getElementsByTagName
XNodeList getElementsByTagName([in] string name)
Returns a NodeList of all descendant Elements with a given tag name, in the order in which they are e...
com::sun::star::xml::dom::XElement::setAttributeNode
XAttr setAttributeNode([in] XAttr newAttr)
Adds a new attribute node.
com::sun::star::xml::dom::XElement::setAttributeNodeNS
XAttr setAttributeNodeNS([in] XAttr newAttr)
Adds a new attribute.
com::sun::star::xml::dom::XElement::removeAttributeNode
XAttr removeAttributeNode([in] XAttr oldAttr)
Removes the specified attribute node.
com::sun::star::xml::dom::XElement::getAttributeNS
string getAttributeNS([in] string namespaceURI, [in] string localName)
Retrieves an attribute value by local name and namespace URI.
com::sun::star::xml::dom::XElement::getAttributeNode
XAttr getAttributeNode([in] string name)
Retrieves an attribute node by name.
com::sun::star::xml::dom::XElement::getAttributeNodeNS
XAttr getAttributeNodeNS([in] string namespaceURI,[in] string localName)
Retrieves an Attr node by local name and namespace URI.
com::sun::star::xml::dom::XElement::getAttribute
string getAttribute([in] string name)
Retrieves an attribute value by name.
com::sun::star::xml::dom::XElement::setAttribute
void setAttribute([in] string name,[in] string value)
Adds a new attribute.
com::sun::star::xml::dom::XElement::removeAttributeNS
void removeAttributeNS([in] string namespaceURI,[in] string localName)
Removes an attribute by local name and namespace URI.
com::sun::star::xml::dom::XElement::hasAttributeNS
boolean hasAttributeNS([in] string namespaceURI,[in] string localName)
Returns true when an attribute with a given local name and namespace URI is specified on this element...
com::sun::star::xml::dom::XElement::getTagName
string getTagName()
The name of the element.
com::sun::star::xml::dom::XElement::getElementsByTagNameNS
XNodeList getElementsByTagNameNS([in] string namespaceURI,[in] string localName)
Returns a NodeList of all the descendant Elements with a given local name and namespace URI in the or...
com::sun::star::xml::dom::XElement::removeAttribute
void removeAttribute([in] string name)
Removes an attribute by name.
com::sun::star::xml::dom::XElement::setAttributeNS
void setAttributeNS([in] string namespaceURI, [in] string qualifiedName, [in] string value)
Adds a new attribute.
com::sun::star::xml::dom::XElement::hasAttribute
boolean hasAttribute([in] string name)
Returns true when an attribute with a given name is specified on this element or has a default value,...
com::sun::star::xml::dom::XNodeList
Definition: XNodeList.idl:26
com::sun::star::xml::dom::XNode
The primary dom datatype.
Definition: XNode.idl:61
com
Definition: Ambiguous.idl:20