Mercurial > projects > qtd
comparison generator/typesystem_xml-java.java @ 1:e78566595089
initial import
author | mandel |
---|---|
date | Mon, 11 May 2009 16:01:50 +0000 |
parents | |
children | 5917a613d118 |
comparison
equal
deleted
inserted
replaced
0:36fb74dc547d | 1:e78566595089 |
---|---|
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.*; | |
45 import qt.xml.*; | |
46 | |
47 class QDomDocument___ extends QDomDocument { | |
48 | |
49 public class Result { | |
50 private Result(boolean success, QNativePointer errorMessage, QNativePointer errorLine, QNativePointer errorColumn) { | |
51 this.success = success; | |
52 this.errorMessage = errorMessage.stringValue(); | |
53 this.errorLine = errorLine.intValue(); | |
54 this.errorColumn = errorColumn.intValue(); | |
55 } | |
56 | |
57 public boolean success; | |
58 public String errorMessage; | |
59 public int errorLine; | |
60 public int errorColumn; | |
61 | |
62 } | |
63 | |
64 }// class | |
65 | |
66 class QXmlNamespaceSupport___ extends QXmlNamespaceSupport { | |
67 | |
68 public static class ProcessedName { | |
69 public ProcessedName(String nsuri, String localName) { | |
70 this.nsuri = nsuri; | |
71 this.localName = localName; | |
72 } | |
73 | |
74 public String nsuri; | |
75 public String localName; | |
76 } | |
77 | |
78 public final ProcessedName processName(String qname, boolean isAttribute) { | |
79 QNativePointer nsUri = new QNativePointer(QNativePointer.Type.String); | |
80 QNativePointer localName = new QNativePointer(QNativePointer.Type.String); | |
81 processName(qname, isAttribute, nsUri, localName); | |
82 | |
83 return new ProcessedName(nsUri.stringValue(), localName.stringValue()); | |
84 } | |
85 | |
86 public static class SplitName { | |
87 public SplitName(String prefix, String localname) { | |
88 this.prefix = prefix; | |
89 this.localname = localname; | |
90 } | |
91 | |
92 public String prefix; | |
93 public String localname; | |
94 } | |
95 | |
96 public final SplitName splitName(String qname) { | |
97 QNativePointer prefix = new QNativePointer(QNativePointer.Type.String); | |
98 QNativePointer localName = new QNativePointer(QNativePointer.Type.String); | |
99 splitName(qname, prefix, localName); | |
100 | |
101 return new SplitName(prefix.stringValue(), localName.stringValue()); | |
102 } | |
103 | |
104 }// class | |
105 | |
106 class QXmlStreamWriter___ extends QXmlStreamWriter { | |
107 | |
108 public QXmlStreamWriter(qt.core.QByteArray array) { | |
109 this(array.nativePointer()); | |
110 __rcDevice = array; | |
111 } | |
112 | |
113 public final void setCodec(String codecName) { | |
114 setCodec(QNativePointer.createCharPointer(codecName)); | |
115 __rcCodec = null; | |
116 } | |
117 | |
118 }// class | |
119 | |
120 interface QXmlEntityResolver___ extends QXmlEntityResolver { | |
121 | |
122 public static class ResolvedEntity { | |
123 | |
124 public boolean error; | |
125 public QXmlInputSource inputSource; | |
126 | |
127 public ResolvedEntity(boolean error, QXmlInputSource inputSource) { | |
128 | |
129 this.error = error; | |
130 this.inputSource = inputSource; | |
131 | |
132 } | |
133 | |
134 } | |
135 | |
136 }// class |