1
|
1 /****************************************************************************
|
|
2 **
|
|
3 ** Copyright (C) 1992-2008 Nokia. All rights reserved.
|
|
4 **
|
|
5 ** This file is part of Qt Jambi.
|
|
6 **
|
|
7 ** * Commercial Usage
|
|
8 * Licensees holding valid Qt Commercial licenses may use this file in
|
|
9 * accordance with the Qt Commercial License Agreement provided with the
|
|
10 * Software or, alternatively, in accordance with the terms contained in
|
|
11 * a written agreement between you and Nokia.
|
|
12 *
|
|
13 *
|
|
14 * GNU General Public License Usage
|
|
15 * Alternatively, this file may be used under the terms of the GNU
|
|
16 * General Public License versions 2.0 or 3.0 as published by the Free
|
|
17 * Software Foundation and appearing in the file LICENSE.GPL included in
|
|
18 * the packaging of this file. Please review the following information
|
|
19 * to ensure GNU General Public Licensing requirements will be met:
|
|
20 * http://www.fsf.org/licensing/licenses/info/GPLv2.html and
|
|
21 * http://www.gnu.org/copyleft/gpl.html. In addition, as a special
|
|
22 * exception, Nokia gives you certain additional rights. These rights
|
|
23 * are described in the Nokia Qt GPL Exception version 1.2, included in
|
|
24 * the file GPL_EXCEPTION.txt in this package.
|
|
25 *
|
|
26 * Qt for Windows(R) Licensees
|
|
27 * As a special exception, Nokia, as the sole copyright holder for Qt
|
|
28 * Designer, grants users of the Qt/Eclipse Integration plug-in the
|
|
29 * right for the Qt/Eclipse Integration to link to functionality
|
|
30 * provided by Qt Designer and its related libraries.
|
|
31 *
|
|
32 *
|
|
33 * If you are unsure which license is appropriate for your use, please
|
|
34 * contact the sales department at qt-sales@nokia.com.
|
|
35
|
|
36 **
|
|
37 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|
38 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
39 **
|
|
40 ****************************************************************************/
|
|
41
|
|
42 package generator;
|
|
43
|
|
44 import qt.QtBlockedSlot;
|
|
45 import qt.xmlpatterns.QAbstractXmlNodeModel;
|
|
46 import qt.xmlpatterns.QXmlNodeModelIndex;
|
|
47
|
|
48 class QXmlNodeModelIndex___ extends QXmlNodeModelIndex {
|
|
49 @QtBlockedSlot
|
|
50 public final QAbstractXmlNodeModel model() {
|
|
51 return QAbstractXmlNodeModel.fromNativePointer(model_private());
|
|
52 }
|
|
53 }// class
|
|
54
|
|
55 class QXmlName___ extends QXmlName {
|
|
56
|
|
57 /**
|
|
58 * Constructs a <code>QXmlName</code> instance that inserts <code>localName</code>,
|
|
59 * <code>namespaceURI</code> and <code>prefix</code> into <code>namePool</code> if they aren't
|
|
60 * already there. The accessor functions <code>namespaceUri()</code>, <code>prefix()</code>,
|
|
61 * <code>localName()</code>, and <code>toClarkName()</code> must be passed the <code>namePool</code>
|
|
62 * used here, so the <code>namePool</code> must remain in scope while the
|
|
63 * accessor functions might be used. However, two instances can
|
|
64 * be compared with <code>==</code> or <code>!=</code> and copied without the
|
|
65 * <code>namePool</code>.
|
|
66 *
|
|
67 * The user guarantees that the string components are valid for a
|
|
68 * <code>QName</code>. In particular, the local name, and the prefix (if present),
|
|
69 * must be valid {@link <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCNames</a>}
|
|
70 * The function <code>isNCName()</code> can be used to test validity
|
|
71 * of these names. The namespace URI should be an absolute URI.
|
|
72 * <code>QUrl.isRelative()</code> can be used to test whether the namespace URI
|
|
73 * is relative or absolute. Finally, providing a prefix is not valid
|
|
74 * when no namespace URI is provided.
|
|
75 *
|
|
76 * <code>namePool</code> is not copied. Nor is the reference to it retained
|
|
77 * in this instance. This constructor inserts the three strings
|
|
78 * into <code>namePool</code>.
|
|
79 */
|
|
80 public QXmlName(QXmlNamePool namePool, String localName, String namespaceURI, String prefix) {
|
|
81 this(namePool.nativePointer(), localName, namespaceURI, prefix);
|
|
82 }
|
|
83
|
|
84 /**
|
|
85 * Equivalent to calling QXmlName(namePool, localName, namespaceURI, null);
|
|
86 */
|
|
87 public QXmlName(QXmlNamePool namePool, String localName, String namespaceURI) {
|
|
88 this(namePool, localName, namespaceURI, null);
|
|
89 }
|
|
90
|
|
91 /**
|
|
92 * Equivalent to calling QXmlName(namePool, localName, null, null)
|
|
93 */
|
|
94 public QXmlName(QXmlNamePool namePool, String localName) {
|
|
95 this(namePool, localName, null);
|
|
96 }
|
|
97
|
|
98
|
|
99 }// class
|
|
100
|
|
101 class QSimpleXmlNodeModel___ extends QSimpleXmlNodeModel {
|
|
102
|
|
103 /**
|
|
104 * Returns the name pool that is associated with this model. The implementation of <code>name()</code>
|
|
105 * would use this to create names.
|
|
106 */
|
|
107 public final QXmlNamePool namePool() {
|
|
108 return QXmlNamePool.fromNativePointer(namePool_private());
|
|
109 }
|
|
110 }// class
|