Mercurial > projects > qtd
comparison generator/typesystem_xml-java.xml @ 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 <?xml version="1.0"?> | |
2 <typesystem package="qt.xml" default-superclass="qt.QtJambiObject"> | |
3 <inject-code> | |
4 qt.Utilities.loadQtLibrary("QtXml"); | |
5 </inject-code> | |
6 | |
7 | |
8 <value-type name="QDomDocument"> | |
9 <inject-code> | |
10 <import-file name="typesystem_xml-java.java" quote-after-line="class QDomDocument___" quote-before-line="}// class"/> | |
11 </inject-code> | |
12 <extra-includes> | |
13 <include file-name="qt.QNativePointer.Type" location="java"/> | |
14 <include file-name="qt.core.QIODevice" location="java"/> | |
15 <include file-name="qt.core.QByteArray" location="java"/> | |
16 </extra-includes> | |
17 | |
18 | |
19 | |
20 <template name="xml.domdocument_setContent"> | |
21 public final Result setContent(%ARGUMENTS){ | |
22 QNativePointer errorStr = new QNativePointer(Type.String); | |
23 QNativePointer errorLine = new QNativePointer(Type.Int); | |
24 QNativePointer errorColumn = new QNativePointer(Type.Int); | |
25 | |
26 boolean success = setContent(%CALL_ARGUMENTS, errorStr, errorLine, errorColumn); | |
27 return new Result(success, errorStr, errorLine, errorColumn); | |
28 } | |
29 </template> | |
30 | |
31 <!--bool setContent(QIODevice* dev, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 ); --> | |
32 <modify-function signature="setContent(QIODevice*, bool, QString*, int*, int*)"> | |
33 <access modifier="private"/> | |
34 <modify-argument index="3"> | |
35 <remove-default-expression/> | |
36 </modify-argument> | |
37 <modify-argument index="4"> | |
38 <remove-default-expression/> | |
39 </modify-argument> | |
40 <modify-argument index="5"> | |
41 <remove-default-expression/> | |
42 </modify-argument> | |
43 </modify-function> | |
44 <inject-code class="java"> | |
45 <insert-template name="xml.domdocument_setContent"> | |
46 <replace from="%ARGUMENTS" to="QIODevice dev, boolean namespaceProcessing"/> | |
47 <replace from="%CALL_ARGUMENTS" to="dev, namespaceProcessing"/> | |
48 </insert-template> | |
49 </inject-code> | |
50 | |
51 <!--bool setContent(const QByteArray& text, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 ); --> | |
52 <modify-function signature="setContent(QByteArray, bool, QString*, int*, int*)"> | |
53 <access modifier="private"/> | |
54 <modify-argument index="3"> | |
55 <remove-default-expression/> | |
56 </modify-argument> | |
57 <modify-argument index="4"> | |
58 <remove-default-expression/> | |
59 </modify-argument> | |
60 <modify-argument index="5"> | |
61 <remove-default-expression/> | |
62 </modify-argument> | |
63 | |
64 </modify-function> | |
65 <inject-code class="java"> | |
66 <insert-template name="xml.domdocument_setContent"> | |
67 <replace from="%ARGUMENTS" to="QByteArray text, boolean namespaceProcessing"/> | |
68 <replace from="%CALL_ARGUMENTS" to="text, namespaceProcessing"/> | |
69 </insert-template> | |
70 </inject-code> | |
71 | |
72 <!--bool setContent(const QString& text, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0 );--> | |
73 <modify-function signature="setContent(QString, bool, QString*, int*, int*)"> | |
74 <access modifier="private"/> | |
75 <modify-argument index="3"> | |
76 <remove-default-expression/> | |
77 </modify-argument> | |
78 <modify-argument index="4"> | |
79 <remove-default-expression/> | |
80 </modify-argument> | |
81 <modify-argument index="5"> | |
82 <remove-default-expression/> | |
83 </modify-argument> | |
84 </modify-function> | |
85 <inject-code class="java"> | |
86 <insert-template name="xml.domdocument_setContent"> | |
87 <replace from="%ARGUMENTS" to="String text, boolean namespaceProcessing"/> | |
88 <replace from="%CALL_ARGUMENTS" to="text, namespaceProcessing"/> | |
89 </insert-template> | |
90 </inject-code> | |
91 | |
92 <modify-function signature="setContent(QXmlInputSource*,QXmlReader*,QString*,int*,int*)"> | |
93 <access modifier="private"/> | |
94 <modify-argument index="3"> | |
95 <remove-default-expression/> | |
96 </modify-argument> | |
97 <modify-argument index="4"> | |
98 <remove-default-expression/> | |
99 </modify-argument> | |
100 <modify-argument index="5"> | |
101 <remove-default-expression/> | |
102 </modify-argument> | |
103 </modify-function> | |
104 <inject-code> | |
105 <insert-template name="xml.domdocument_setContent"> | |
106 <replace from="%ARGUMENTS" to="QXmlInputSource source, QXmlReader reader"/> | |
107 <replace from="%CALL_ARGUMENTS" to="source, reader"/> | |
108 </insert-template> | |
109 </inject-code> | |
110 | |
111 <modify-function signature="setContent(QString,QString*,int*,int*)"> | |
112 <access modifier="private"/> | |
113 <modify-argument index="2"> | |
114 <remove-default-expression/> | |
115 </modify-argument> | |
116 <modify-argument index="3"> | |
117 <remove-default-expression/> | |
118 </modify-argument> | |
119 <modify-argument index="4"> | |
120 <remove-default-expression/> | |
121 </modify-argument> | |
122 </modify-function> | |
123 <inject-code> | |
124 <insert-template name="xml.domdocument_setContent"> | |
125 <replace from="%ARGUMENTS" to="String text"/> | |
126 <replace from="%CALL_ARGUMENTS" to="text"/> | |
127 </insert-template> | |
128 </inject-code> | |
129 | |
130 <modify-function signature="setContent(QByteArray,QString*,int*,int*)"> | |
131 <access modifier="private"/> | |
132 <modify-argument index="2"> | |
133 <remove-default-expression/> | |
134 </modify-argument> | |
135 <modify-argument index="3"> | |
136 <remove-default-expression/> | |
137 </modify-argument> | |
138 <modify-argument index="4"> | |
139 <remove-default-expression/> | |
140 </modify-argument> | |
141 </modify-function> | |
142 <inject-code> | |
143 <insert-template name="xml.domdocument_setContent"> | |
144 <replace from="%ARGUMENTS" to="QByteArray buffer"/> | |
145 <replace from="%CALL_ARGUMENTS" to="buffer"/> | |
146 </insert-template> | |
147 </inject-code> | |
148 | |
149 <modify-function signature="setContent(QIODevice*,QString*,int*,int*)"> | |
150 <access modifier="private"/> | |
151 <modify-argument index="2"> | |
152 <remove-default-expression/> | |
153 </modify-argument> | |
154 <modify-argument index="3"> | |
155 <remove-default-expression/> | |
156 </modify-argument> | |
157 <modify-argument index="4"> | |
158 <remove-default-expression/> | |
159 </modify-argument> | |
160 </modify-function> | |
161 <inject-code> | |
162 <insert-template name="xml.domdocument_setContent"> | |
163 <replace from="%ARGUMENTS" to="QIODevice dev"/> | |
164 <replace from="%CALL_ARGUMENTS" to="dev"/> | |
165 </insert-template> | |
166 </inject-code> | |
167 | |
168 </value-type> | |
169 | |
170 | |
171 | |
172 <value-type name="QXmlNamespaceSupport"> | |
173 <inject-code> | |
174 <import-file name="typesystem_xml-java.java" quote-after-line="class QXmlNamespaceSupport___" quote-before-line="}// class"/> | |
175 </inject-code> | |
176 <extra-includes> | |
177 <include file-name="qt.QNativePointer" location="java"/> | |
178 </extra-includes> | |
179 <modify-function signature="processName(QString,bool,QString&,QString&)const"> | |
180 <access modifier="private"/> | |
181 </modify-function> | |
182 | |
183 | |
184 <modify-function signature="splitName(QString,QString&,QString&)const"> | |
185 <access modifier="private"/> | |
186 </modify-function> | |
187 | |
188 </value-type> | |
189 | |
190 <value-type name="QDomElement"> | |
191 | |
192 <template name="xml.constQString_to_constQStringRef"> | |
193 QString %out = qtjambi_to_qstring(__jni_env, (jstring) %in); | |
194 </template> | |
195 | |
196 <modify-function signature="attributeNS(const QString, const QString &, const QString &) const"> | |
197 <modify-argument index="1"> | |
198 <conversion-rule class="native"> | |
199 <insert-template name="xml.constQString_to_constQStringRef"/> | |
200 </conversion-rule> | |
201 </modify-argument> | |
202 </modify-function> | |
203 <modify-function signature="setAttributeNS(const QString, const QString &, const QString &)"> | |
204 <modify-argument index="1"> | |
205 <conversion-rule class="native"> | |
206 <insert-template name="xml.constQString_to_constQStringRef"/> | |
207 </conversion-rule> | |
208 </modify-argument> | |
209 </modify-function> | |
210 <modify-function signature="setAttributeNS(const QString, const QString &, int)"> | |
211 <modify-argument index="1"> | |
212 <conversion-rule class="native"> | |
213 <insert-template name="xml.constQString_to_constQStringRef"/> | |
214 </conversion-rule> | |
215 </modify-argument> | |
216 </modify-function> | |
217 <modify-function signature="setAttributeNS(const QString, const QString &, uint)"> | |
218 <modify-argument index="1"> | |
219 <conversion-rule class="native"> | |
220 <insert-template name="xml.constQString_to_constQStringRef"/> | |
221 </conversion-rule> | |
222 </modify-argument> | |
223 </modify-function> | |
224 <modify-function signature="setAttributeNS(const QString, const QString &, long long)"> | |
225 <modify-argument index="1"> | |
226 <conversion-rule class="native"> | |
227 <insert-template name="xml.constQString_to_constQStringRef"/> | |
228 </conversion-rule> | |
229 </modify-argument> | |
230 </modify-function> | |
231 <modify-function signature="setAttributeNS(const QString, const QString &, unsigned long long)"> | |
232 <modify-argument index="1"> | |
233 <conversion-rule class="native"> | |
234 <insert-template name="xml.constQString_to_constQStringRef"/> | |
235 </conversion-rule> | |
236 </modify-argument> | |
237 </modify-function> | |
238 <modify-function signature="setAttributeNS(const QString, const QString &, double)"> | |
239 <modify-argument index="1"> | |
240 <conversion-rule class="native"> | |
241 <insert-template name="xml.constQString_to_constQStringRef"/> | |
242 </conversion-rule> | |
243 </modify-argument> | |
244 </modify-function> | |
245 | |
246 </value-type> | |
247 <object-type name="QXmlStreamReader"> | |
248 <modify-function signature="setDevice(QIODevice*)"> | |
249 <modify-argument index="1"> | |
250 <reference-count action="set" variable-name="__rcDevice"/> | |
251 </modify-argument> | |
252 </modify-function> | |
253 <modify-function signature="clear()"> | |
254 <inject-code class="java" position="end"> | |
255 __rcDevice = null; // clear() call removes device from stream | |
256 </inject-code> | |
257 </modify-function> | |
258 </object-type> | |
259 | |
260 <object-type name="QXmlStreamWriter"> | |
261 <inject-code> | |
262 <import-file name="typesystem_xml-java.java" quote-after-line="class QXmlStreamWriter___" quote-before-line="}// class"/> | |
263 </inject-code> | |
264 <modify-function signature="QXmlStreamWriter(QByteArray *)"> | |
265 <access modifier="private"/> | |
266 </modify-function> | |
267 | |
268 <modify-function signature="setCodec(const char *)"> | |
269 <access modifier="private"/> | |
270 </modify-function> | |
271 | |
272 <modify-function signature="setCodec(QTextCodec*)"> | |
273 <modify-argument index="1"> | |
274 <reference-count action="set" variable-name="__rcCodec"/> | |
275 </modify-argument> | |
276 </modify-function> | |
277 <modify-function signature="setDevice(QIODevice*)"> | |
278 <modify-argument index="1"> | |
279 <reference-count action="set" variable-name="__rcDevice"/> | |
280 </modify-argument> | |
281 </modify-function> | |
282 </object-type> | |
283 | |
284 <object-type name="QXmlReader"> | |
285 <modify-function signature="parse(const QXmlInputSource &)"> | |
286 <remove class="java"/> | |
287 </modify-function> | |
288 | |
289 <modify-function signature="property(QString,bool*)const"> | |
290 <remove class="java"/> | |
291 </modify-function> | |
292 <modify-function signature="setProperty(QString,void*)"> | |
293 <remove class="java"/> | |
294 </modify-function> | |
295 | |
296 <modify-function signature="feature(QString,bool*)const"> | |
297 <modify-argument index="2"> | |
298 <remove-argument/> | |
299 <conversion-rule class="shell"> | |
300 // nothing | |
301 </conversion-rule> | |
302 <conversion-rule class="native"> | |
303 bool *%out = 0; | |
304 </conversion-rule> | |
305 </modify-argument> | |
306 | |
307 <modify-argument index="0"> | |
308 <conversion-rule class="shell"> | |
309 bool %out = (bool) %in; | |
310 if (%2 != 0) *%2 = hasFeature(%1); | |
311 </conversion-rule> | |
312 </modify-argument> | |
313 </modify-function> | |
314 </object-type> | |
315 | |
316 <interface-type name="QXmlEntityResolver"> | |
317 <inject-code> | |
318 <import-file name="typesystem_xml-java.java" quote-after-line="interface QXmlEntityResolver___" quote-before-line="}// class"/> | |
319 </inject-code> | |
320 <modify-function signature="resolveEntity(QString,QString,QXmlInputSource&*)"> | |
321 <modify-argument index="3"> | |
322 <remove-argument/> | |
323 <conversion-rule class="shell"> | |
324 // nothing | |
325 </conversion-rule> | |
326 <conversion-rule class="native"> | |
327 QXmlInputSource *inputSourceHolder = 0; | |
328 QXmlInputSource *&%out = inputSourceHolder; | |
329 </conversion-rule> | |
330 </modify-argument> | |
331 <modify-argument index="return"> | |
332 <replace-type modified-type="qt.xml.QXmlEntityResolver$ResolvedEntity" /> | |
333 <conversion-rule class="native"> | |
334 jobject %out = qtjambi_to_resolvedentity(__jni_env, %in, inputSourceHolder); | |
335 </conversion-rule> | |
336 <conversion-rule class="shell"> | |
337 bool %out = qtjambi_from_resolvedentity(__jni_env, (void *&) %3, %in); | |
338 </conversion-rule> | |
339 </modify-argument> | |
340 </modify-function> | |
341 | |
342 </interface-type> | |
343 | |
344 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QDomNodeList' has equals operators but no qHash() function"/> | |
345 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QXmlStreamNamespaceDeclaration' has equals operators but no qHash() function"/> | |
346 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QDomNamedNodeMap' has equals operators but no qHash() function"/> | |
347 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QXmlStreamNotationDeclaration' has equals operators but no qHash() function"/> | |
348 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QDomNode' has equals operators but no qHash() function"/> | |
349 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QDomImplementation' has equals operators but no qHash() function"/> | |
350 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QXmlStreamAttribute' has equals operators but no qHash() function"/> | |
351 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QXmlStreamAttributes' has equals operators but no qHash() function"/> | |
352 <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QXmlStreamEntityDeclaration' has equals operators but no qHash() function"/> | |
353 | |
354 </typesystem> |