LibreOffice
LibreOffice 24.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 
20 module 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: */
Definition: XAttr.idl:24
The primary dom datatype.
Definition: XNode.idl:60
Definition: Ambiguous.idl:20
Definition: XNodeList.idl:25
Definition: XElement.idl:22
encapsulates the details of an XML parse error or warning.
Definition: DOMException.idl:27