OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / gles_texture_unit.java
1 /**\r
2  * gles_texture_unit.java\r
3  *\r
4  * This file was generated by XMLSpy 2007sp2 Enterprise Edition.\r
5  *\r
6  * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE\r
7  * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.\r
8  *\r
9  * Refer to the XMLSpy Documentation for further details.\r
10  * http://www.altova.com/xmlspy\r
11  */\r
12 \r
13 \r
14 package com.jmex.model.collada.schema;\r
15 \r
16 import com.jmex.xml.types.SchemaNCName;\r
17 \r
18 public class gles_texture_unit extends com.jmex.xml.xml.Node {\r
19 \r
20         public gles_texture_unit(gles_texture_unit node) {\r
21                 super(node);\r
22         }\r
23 \r
24         public gles_texture_unit(org.w3c.dom.Node node) {\r
25                 super(node);\r
26         }\r
27 \r
28         public gles_texture_unit(org.w3c.dom.Document doc) {\r
29                 super(doc);\r
30         }\r
31 \r
32         public gles_texture_unit(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {\r
33                 super(doc, namespaceURI, prefix, name);\r
34         }\r
35         \r
36         public void adjustPrefix() {\r
37                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "sid" );\r
38                                 tmpNode != null;\r
39                                 tmpNode = getDomNextChild( Attribute, null, "sid", tmpNode )\r
40                         ) {\r
41                         internalAdjustPrefix(tmpNode, false);\r
42                 }\r
43                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "surface" );\r
44                                 tmpNode != null;\r
45                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "surface", tmpNode )\r
46                         ) {\r
47                         internalAdjustPrefix(tmpNode, true);\r
48                 }\r
49                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state" );\r
50                                 tmpNode != null;\r
51                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state", tmpNode )\r
52                         ) {\r
53                         internalAdjustPrefix(tmpNode, true);\r
54                 }\r
55                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord" );\r
56                                 tmpNode != null;\r
57                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord", tmpNode )\r
58                         ) {\r
59                         internalAdjustPrefix(tmpNode, true);\r
60                         new texcoordType(tmpNode).adjustPrefix();\r
61                 }\r
62                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );\r
63                                 tmpNode != null;\r
64                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )\r
65                         ) {\r
66                         internalAdjustPrefix(tmpNode, true);\r
67                         new extraType(tmpNode).adjustPrefix();\r
68                 }\r
69         }\r
70         public void setXsiType() {\r
71                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;\r
72                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "gles_texture_unit");\r
73         }\r
74 \r
75         public static int getsidMinCount() {\r
76                 return 0;\r
77         }\r
78 \r
79         public static int getsidMaxCount() {\r
80                 return 1;\r
81         }\r
82 \r
83         public int getsidCount() {\r
84                 return getDomChildCount(Attribute, null, "sid");\r
85         }\r
86 \r
87         public boolean hassid() {\r
88                 return hasDomChild(Attribute, null, "sid");\r
89         }\r
90 \r
91         public SchemaNCName newsid() {\r
92                 return new SchemaNCName();\r
93         }\r
94 \r
95         public SchemaNCName getsidAt(int index) throws Exception {\r
96                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "sid", index)));\r
97         }\r
98 \r
99         public org.w3c.dom.Node getStartingsidCursor() throws Exception {\r
100                 return getDomFirstChild(Attribute, null, "sid" );\r
101         }\r
102 \r
103         public org.w3c.dom.Node getAdvancedsidCursor( org.w3c.dom.Node curNode ) throws Exception {\r
104                 return getDomNextChild( Attribute, null, "sid", curNode );\r
105         }\r
106 \r
107         public SchemaNCName getsidValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
108                 if( curNode == null )\r
109                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
110                 else\r
111                         return new SchemaNCName(getDomNodeValue(curNode));\r
112         }\r
113 \r
114         public SchemaNCName getsid() throws Exception \r
115  {\r
116                 return getsidAt(0);\r
117         }\r
118 \r
119         public void removesidAt(int index) {\r
120                 removeDomChildAt(Attribute, null, "sid", index);\r
121         }\r
122 \r
123         public void removesid() {\r
124                 removesidAt(0);\r
125         }\r
126 \r
127         public org.w3c.dom.Node addsid(SchemaNCName value) {\r
128                 if( value.isNull() )\r
129                         return null;\r
130 \r
131                 return  appendDomChild(Attribute, null, "sid", value.toString());\r
132         }\r
133 \r
134         public org.w3c.dom.Node addsid(String value) throws Exception {\r
135                 return addsid(new SchemaNCName(value));\r
136         }\r
137 \r
138         public void insertsidAt(SchemaNCName value, int index) {\r
139                 insertDomChildAt(Attribute, null, "sid", index, value.toString());\r
140         }\r
141 \r
142         public void insertsidAt(String value, int index) throws Exception {\r
143                 insertsidAt(new SchemaNCName(value), index);\r
144         }\r
145 \r
146         public void replacesidAt(SchemaNCName value, int index) {\r
147                 replaceDomChildAt(Attribute, null, "sid", index, value.toString());\r
148         }\r
149 \r
150         public void replacesidAt(String value, int index) throws Exception {\r
151                 replacesidAt(new SchemaNCName(value), index);\r
152         }\r
153 \r
154         public static int getsurfaceMinCount() {\r
155                 return 0;\r
156         }\r
157 \r
158         public static int getsurfaceMaxCount() {\r
159                 return 1;\r
160         }\r
161 \r
162         public int getsurfaceCount() {\r
163                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface");\r
164         }\r
165 \r
166         public boolean hassurface() {\r
167                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface");\r
168         }\r
169 \r
170         public SchemaNCName newsurface() {\r
171                 return new SchemaNCName();\r
172         }\r
173 \r
174         public SchemaNCName getsurfaceAt(int index) throws Exception {\r
175                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface", index)));\r
176         }\r
177 \r
178         public org.w3c.dom.Node getStartingsurfaceCursor() throws Exception {\r
179                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface" );\r
180         }\r
181 \r
182         public org.w3c.dom.Node getAdvancedsurfaceCursor( org.w3c.dom.Node curNode ) throws Exception {\r
183                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "surface", curNode );\r
184         }\r
185 \r
186         public SchemaNCName getsurfaceValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
187                 if( curNode == null )\r
188                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
189                 else\r
190                         return new SchemaNCName(getDomNodeValue(curNode));\r
191         }\r
192 \r
193         public SchemaNCName getsurface() throws Exception \r
194  {\r
195                 return getsurfaceAt(0);\r
196         }\r
197 \r
198         public void removesurfaceAt(int index) {\r
199                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface", index);\r
200         }\r
201 \r
202         public void removesurface() {\r
203                 removesurfaceAt(0);\r
204         }\r
205 \r
206         public org.w3c.dom.Node addsurface(SchemaNCName value) {\r
207                 if( value.isNull() )\r
208                         return null;\r
209 \r
210                 return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface", value.toString());\r
211         }\r
212 \r
213         public org.w3c.dom.Node addsurface(String value) throws Exception {\r
214                 return addsurface(new SchemaNCName(value));\r
215         }\r
216 \r
217         public void insertsurfaceAt(SchemaNCName value, int index) {\r
218                 insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface", index, value.toString());\r
219         }\r
220 \r
221         public void insertsurfaceAt(String value, int index) throws Exception {\r
222                 insertsurfaceAt(new SchemaNCName(value), index);\r
223         }\r
224 \r
225         public void replacesurfaceAt(SchemaNCName value, int index) {\r
226                 replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface", index, value.toString());\r
227         }\r
228 \r
229         public void replacesurfaceAt(String value, int index) throws Exception {\r
230                 replacesurfaceAt(new SchemaNCName(value), index);\r
231         }\r
232 \r
233         public static int getsampler_stateMinCount() {\r
234                 return 0;\r
235         }\r
236 \r
237         public static int getsampler_stateMaxCount() {\r
238                 return 1;\r
239         }\r
240 \r
241         public int getsampler_stateCount() {\r
242                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state");\r
243         }\r
244 \r
245         public boolean hassampler_state() {\r
246                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state");\r
247         }\r
248 \r
249         public SchemaNCName newsampler_state() {\r
250                 return new SchemaNCName();\r
251         }\r
252 \r
253         public SchemaNCName getsampler_stateAt(int index) throws Exception {\r
254                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state", index)));\r
255         }\r
256 \r
257         public org.w3c.dom.Node getStartingsampler_stateCursor() throws Exception {\r
258                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state" );\r
259         }\r
260 \r
261         public org.w3c.dom.Node getAdvancedsampler_stateCursor( org.w3c.dom.Node curNode ) throws Exception {\r
262                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state", curNode );\r
263         }\r
264 \r
265         public SchemaNCName getsampler_stateValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
266                 if( curNode == null )\r
267                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
268                 else\r
269                         return new SchemaNCName(getDomNodeValue(curNode));\r
270         }\r
271 \r
272         public SchemaNCName getsampler_state() throws Exception \r
273  {\r
274                 return getsampler_stateAt(0);\r
275         }\r
276 \r
277         public void removesampler_stateAt(int index) {\r
278                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state", index);\r
279         }\r
280 \r
281         public void removesampler_state() {\r
282                 removesampler_stateAt(0);\r
283         }\r
284 \r
285         public org.w3c.dom.Node addsampler_state(SchemaNCName value) {\r
286                 if( value.isNull() )\r
287                         return null;\r
288 \r
289                 return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state", value.toString());\r
290         }\r
291 \r
292         public org.w3c.dom.Node addsampler_state(String value) throws Exception {\r
293                 return addsampler_state(new SchemaNCName(value));\r
294         }\r
295 \r
296         public void insertsampler_stateAt(SchemaNCName value, int index) {\r
297                 insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state", index, value.toString());\r
298         }\r
299 \r
300         public void insertsampler_stateAt(String value, int index) throws Exception {\r
301                 insertsampler_stateAt(new SchemaNCName(value), index);\r
302         }\r
303 \r
304         public void replacesampler_stateAt(SchemaNCName value, int index) {\r
305                 replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state", index, value.toString());\r
306         }\r
307 \r
308         public void replacesampler_stateAt(String value, int index) throws Exception {\r
309                 replacesampler_stateAt(new SchemaNCName(value), index);\r
310         }\r
311 \r
312         public static int gettexcoordMinCount() {\r
313                 return 0;\r
314         }\r
315 \r
316         public static int gettexcoordMaxCount() {\r
317                 return 1;\r
318         }\r
319 \r
320         public int gettexcoordCount() {\r
321                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord");\r
322         }\r
323 \r
324         public boolean hastexcoord() {\r
325                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord");\r
326         }\r
327 \r
328         public texcoordType newtexcoord() {\r
329                 return new texcoordType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "texcoord"));\r
330         }\r
331 \r
332         public texcoordType gettexcoordAt(int index) throws Exception {\r
333                 return new texcoordType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord", index));\r
334         }\r
335 \r
336         public org.w3c.dom.Node getStartingtexcoordCursor() throws Exception {\r
337                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord" );\r
338         }\r
339 \r
340         public org.w3c.dom.Node getAdvancedtexcoordCursor( org.w3c.dom.Node curNode ) throws Exception {\r
341                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord", curNode );\r
342         }\r
343 \r
344         public texcoordType gettexcoordValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
345                 if( curNode == null )\r
346                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
347                 else\r
348                         return new texcoordType(curNode);\r
349         }\r
350 \r
351         public texcoordType gettexcoord() throws Exception \r
352  {\r
353                 return gettexcoordAt(0);\r
354         }\r
355 \r
356         public void removetexcoordAt(int index) {\r
357                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord", index);\r
358         }\r
359 \r
360         public void removetexcoord() {\r
361                 removetexcoordAt(0);\r
362         }\r
363 \r
364         public org.w3c.dom.Node addtexcoord(texcoordType value) {\r
365                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "texcoord", value);\r
366         }\r
367 \r
368         public void inserttexcoordAt(texcoordType value, int index) {\r
369                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "texcoord", index, value);\r
370         }\r
371 \r
372         public void replacetexcoordAt(texcoordType value, int index) {\r
373                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "texcoord", index, value);\r
374         }\r
375 \r
376         public static int getextraMinCount() {\r
377                 return 0;\r
378         }\r
379 \r
380         public static int getextraMaxCount() {\r
381                 return Integer.MAX_VALUE;\r
382         }\r
383 \r
384         public int getextraCount() {\r
385                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");\r
386         }\r
387 \r
388         public boolean hasextra() {\r
389                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");\r
390         }\r
391 \r
392         public extraType newextra() {\r
393                 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));\r
394         }\r
395 \r
396         public extraType getextraAt(int index) throws Exception {\r
397                 return new extraType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index));\r
398         }\r
399 \r
400         public org.w3c.dom.Node getStartingextraCursor() throws Exception {\r
401                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );\r
402         }\r
403 \r
404         public org.w3c.dom.Node getAdvancedextraCursor( org.w3c.dom.Node curNode ) throws Exception {\r
405                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", curNode );\r
406         }\r
407 \r
408         public extraType getextraValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
409                 if( curNode == null )\r
410                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
411                 else\r
412                         return new extraType(curNode);\r
413         }\r
414 \r
415         public extraType getextra() throws Exception \r
416  {\r
417                 return getextraAt(0);\r
418         }\r
419 \r
420         public void removeextraAt(int index) {\r
421                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);\r
422         }\r
423 \r
424         public void removeextra() {\r
425                 while (hasextra())\r
426                         removeextraAt(0);\r
427         }\r
428 \r
429         public org.w3c.dom.Node addextra(extraType value) {\r
430                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);\r
431         }\r
432 \r
433         public void insertextraAt(extraType value, int index) {\r
434                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);\r
435         }\r
436 \r
437         public void replaceextraAt(extraType value, int index) {\r
438                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);\r
439         }\r
440 \r
441 }\r