OSDN Git Service

c846d9f659af06d03ba1a302057bfecd126b4106
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / controllerType.java
1 /**\r
2  * controllerType.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.SchemaID;\r
17 import com.jmex.xml.types.SchemaNCName;\r
18 \r
19 public class controllerType extends com.jmex.xml.xml.Node {\r
20 \r
21         public controllerType(controllerType node) {\r
22                 super(node);\r
23         }\r
24 \r
25         public controllerType(org.w3c.dom.Node node) {\r
26                 super(node);\r
27         }\r
28 \r
29         public controllerType(org.w3c.dom.Document doc) {\r
30                 super(doc);\r
31         }\r
32 \r
33         public controllerType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {\r
34                 super(doc, namespaceURI, prefix, name);\r
35         }\r
36         \r
37         public void adjustPrefix() {\r
38                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "id" );\r
39                                 tmpNode != null;\r
40                                 tmpNode = getDomNextChild( Attribute, null, "id", tmpNode )\r
41                         ) {\r
42                         internalAdjustPrefix(tmpNode, false);\r
43                 }\r
44                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "name" );\r
45                                 tmpNode != null;\r
46                                 tmpNode = getDomNextChild( Attribute, null, "name", tmpNode )\r
47                         ) {\r
48                         internalAdjustPrefix(tmpNode, false);\r
49                 }\r
50                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset" );\r
51                                 tmpNode != null;\r
52                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", tmpNode )\r
53                         ) {\r
54                         internalAdjustPrefix(tmpNode, true);\r
55                         new assetType(tmpNode).adjustPrefix();\r
56                 }\r
57                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "skin" );\r
58                                 tmpNode != null;\r
59                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "skin", tmpNode )\r
60                         ) {\r
61                         internalAdjustPrefix(tmpNode, true);\r
62                         new skinType(tmpNode).adjustPrefix();\r
63                 }\r
64                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "morph" );\r
65                                 tmpNode != null;\r
66                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "morph", tmpNode )\r
67                         ) {\r
68                         internalAdjustPrefix(tmpNode, true);\r
69                         new morphType(tmpNode).adjustPrefix();\r
70                 }\r
71                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );\r
72                                 tmpNode != null;\r
73                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )\r
74                         ) {\r
75                         internalAdjustPrefix(tmpNode, true);\r
76                         new extraType(tmpNode).adjustPrefix();\r
77                 }\r
78         }\r
79         public void setXsiType() {\r
80                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;\r
81                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "controller");\r
82         }\r
83 \r
84         public static int getidMinCount() {\r
85                 return 0;\r
86         }\r
87 \r
88         public static int getidMaxCount() {\r
89                 return 1;\r
90         }\r
91 \r
92         public int getidCount() {\r
93                 return getDomChildCount(Attribute, null, "id");\r
94         }\r
95 \r
96         public boolean hasid() {\r
97                 return hasDomChild(Attribute, null, "id");\r
98         }\r
99 \r
100         public SchemaID newid() {\r
101                 return new SchemaID();\r
102         }\r
103 \r
104         public SchemaID getidAt(int index) throws Exception {\r
105                 return new SchemaID(getDomNodeValue(getDomChildAt(Attribute, null, "id", index)));\r
106         }\r
107 \r
108         public org.w3c.dom.Node getStartingidCursor() throws Exception {\r
109                 return getDomFirstChild(Attribute, null, "id" );\r
110         }\r
111 \r
112         public org.w3c.dom.Node getAdvancedidCursor( org.w3c.dom.Node curNode ) throws Exception {\r
113                 return getDomNextChild( Attribute, null, "id", curNode );\r
114         }\r
115 \r
116         public SchemaID getidValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
117                 if( curNode == null )\r
118                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
119                 else\r
120                         return new SchemaID(getDomNodeValue(curNode));\r
121         }\r
122 \r
123         public SchemaID getid() throws Exception \r
124  {\r
125                 return getidAt(0);\r
126         }\r
127 \r
128         public void removeidAt(int index) {\r
129                 removeDomChildAt(Attribute, null, "id", index);\r
130         }\r
131 \r
132         public void removeid() {\r
133                 removeidAt(0);\r
134         }\r
135 \r
136         public org.w3c.dom.Node addid(SchemaID value) {\r
137                 if( value.isNull() )\r
138                         return null;\r
139 \r
140                 return  appendDomChild(Attribute, null, "id", value.toString());\r
141         }\r
142 \r
143         public org.w3c.dom.Node addid(String value) throws Exception {\r
144                 return addid(new SchemaID(value));\r
145         }\r
146 \r
147         public void insertidAt(SchemaID value, int index) {\r
148                 insertDomChildAt(Attribute, null, "id", index, value.toString());\r
149         }\r
150 \r
151         public void insertidAt(String value, int index) throws Exception {\r
152                 insertidAt(new SchemaID(value), index);\r
153         }\r
154 \r
155         public void replaceidAt(SchemaID value, int index) {\r
156                 replaceDomChildAt(Attribute, null, "id", index, value.toString());\r
157         }\r
158 \r
159         public void replaceidAt(String value, int index) throws Exception {\r
160                 replaceidAt(new SchemaID(value), index);\r
161         }\r
162 \r
163         public static int getnameMinCount() {\r
164                 return 0;\r
165         }\r
166 \r
167         public static int getnameMaxCount() {\r
168                 return 1;\r
169         }\r
170 \r
171         public int getnameCount() {\r
172                 return getDomChildCount(Attribute, null, "name");\r
173         }\r
174 \r
175         public boolean hasname() {\r
176                 return hasDomChild(Attribute, null, "name");\r
177         }\r
178 \r
179         public SchemaNCName newname() {\r
180                 return new SchemaNCName();\r
181         }\r
182 \r
183         public SchemaNCName getnameAt(int index) throws Exception {\r
184                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "name", index)));\r
185         }\r
186 \r
187         public org.w3c.dom.Node getStartingnameCursor() throws Exception {\r
188                 return getDomFirstChild(Attribute, null, "name" );\r
189         }\r
190 \r
191         public org.w3c.dom.Node getAdvancednameCursor( org.w3c.dom.Node curNode ) throws Exception {\r
192                 return getDomNextChild( Attribute, null, "name", curNode );\r
193         }\r
194 \r
195         public SchemaNCName getnameValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
196                 if( curNode == null )\r
197                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
198                 else\r
199                         return new SchemaNCName(getDomNodeValue(curNode));\r
200         }\r
201 \r
202         public SchemaNCName getname() throws Exception \r
203  {\r
204                 return getnameAt(0);\r
205         }\r
206 \r
207         public void removenameAt(int index) {\r
208                 removeDomChildAt(Attribute, null, "name", index);\r
209         }\r
210 \r
211         public void removename() {\r
212                 removenameAt(0);\r
213         }\r
214 \r
215         public org.w3c.dom.Node addname(SchemaNCName value) {\r
216                 if( value.isNull() )\r
217                         return null;\r
218 \r
219                 return  appendDomChild(Attribute, null, "name", value.toString());\r
220         }\r
221 \r
222         public org.w3c.dom.Node addname(String value) throws Exception {\r
223                 return addname(new SchemaNCName(value));\r
224         }\r
225 \r
226         public void insertnameAt(SchemaNCName value, int index) {\r
227                 insertDomChildAt(Attribute, null, "name", index, value.toString());\r
228         }\r
229 \r
230         public void insertnameAt(String value, int index) throws Exception {\r
231                 insertnameAt(new SchemaNCName(value), index);\r
232         }\r
233 \r
234         public void replacenameAt(SchemaNCName value, int index) {\r
235                 replaceDomChildAt(Attribute, null, "name", index, value.toString());\r
236         }\r
237 \r
238         public void replacenameAt(String value, int index) throws Exception {\r
239                 replacenameAt(new SchemaNCName(value), index);\r
240         }\r
241 \r
242         public static int getassetMinCount() {\r
243                 return 0;\r
244         }\r
245 \r
246         public static int getassetMaxCount() {\r
247                 return 1;\r
248         }\r
249 \r
250         public int getassetCount() {\r
251                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset");\r
252         }\r
253 \r
254         public boolean hasasset() {\r
255                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset");\r
256         }\r
257 \r
258         public assetType newasset() {\r
259                 return new assetType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "asset"));\r
260         }\r
261 \r
262         public assetType getassetAt(int index) throws Exception {\r
263                 return new assetType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", index));\r
264         }\r
265 \r
266         public org.w3c.dom.Node getStartingassetCursor() throws Exception {\r
267                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset" );\r
268         }\r
269 \r
270         public org.w3c.dom.Node getAdvancedassetCursor( org.w3c.dom.Node curNode ) throws Exception {\r
271                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", curNode );\r
272         }\r
273 \r
274         public assetType getassetValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
275                 if( curNode == null )\r
276                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
277                 else\r
278                         return new assetType(curNode);\r
279         }\r
280 \r
281         public assetType getasset() throws Exception \r
282  {\r
283                 return getassetAt(0);\r
284         }\r
285 \r
286         public void removeassetAt(int index) {\r
287                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", index);\r
288         }\r
289 \r
290         public void removeasset() {\r
291                 removeassetAt(0);\r
292         }\r
293 \r
294         public org.w3c.dom.Node addasset(assetType value) {\r
295                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "asset", value);\r
296         }\r
297 \r
298         public void insertassetAt(assetType value, int index) {\r
299                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "asset", index, value);\r
300         }\r
301 \r
302         public void replaceassetAt(assetType value, int index) {\r
303                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "asset", index, value);\r
304         }\r
305 \r
306         public static int getskinMinCount() {\r
307                 return 1;\r
308         }\r
309 \r
310         public static int getskinMaxCount() {\r
311                 return 1;\r
312         }\r
313 \r
314         public int getskinCount() {\r
315                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "skin");\r
316         }\r
317 \r
318         public boolean hasskin() {\r
319                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "skin");\r
320         }\r
321 \r
322         public skinType newskin() {\r
323                 return new skinType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "skin"));\r
324         }\r
325 \r
326         public skinType getskinAt(int index) throws Exception {\r
327                 return new skinType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "skin", index));\r
328         }\r
329 \r
330         public org.w3c.dom.Node getStartingskinCursor() throws Exception {\r
331                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "skin" );\r
332         }\r
333 \r
334         public org.w3c.dom.Node getAdvancedskinCursor( org.w3c.dom.Node curNode ) throws Exception {\r
335                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "skin", curNode );\r
336         }\r
337 \r
338         public skinType getskinValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
339                 if( curNode == null )\r
340                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
341                 else\r
342                         return new skinType(curNode);\r
343         }\r
344 \r
345         public skinType getskin() throws Exception \r
346  {\r
347                 return getskinAt(0);\r
348         }\r
349 \r
350         public void removeskinAt(int index) {\r
351                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "skin", index);\r
352         }\r
353 \r
354         public void removeskin() {\r
355                 removeskinAt(0);\r
356         }\r
357 \r
358         public org.w3c.dom.Node addskin(skinType value) {\r
359                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "skin", value);\r
360         }\r
361 \r
362         public void insertskinAt(skinType value, int index) {\r
363                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "skin", index, value);\r
364         }\r
365 \r
366         public void replaceskinAt(skinType value, int index) {\r
367                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "skin", index, value);\r
368         }\r
369 \r
370         public static int getmorphMinCount() {\r
371                 return 1;\r
372         }\r
373 \r
374         public static int getmorphMaxCount() {\r
375                 return 1;\r
376         }\r
377 \r
378         public int getmorphCount() {\r
379                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "morph");\r
380         }\r
381 \r
382         public boolean hasmorph() {\r
383                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "morph");\r
384         }\r
385 \r
386         public morphType newmorph() {\r
387                 return new morphType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "morph"));\r
388         }\r
389 \r
390         public morphType getmorphAt(int index) throws Exception {\r
391                 return new morphType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "morph", index));\r
392         }\r
393 \r
394         public org.w3c.dom.Node getStartingmorphCursor() throws Exception {\r
395                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "morph" );\r
396         }\r
397 \r
398         public org.w3c.dom.Node getAdvancedmorphCursor( org.w3c.dom.Node curNode ) throws Exception {\r
399                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "morph", curNode );\r
400         }\r
401 \r
402         public morphType getmorphValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
403                 if( curNode == null )\r
404                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
405                 else\r
406                         return new morphType(curNode);\r
407         }\r
408 \r
409         public morphType getmorph() throws Exception \r
410  {\r
411                 return getmorphAt(0);\r
412         }\r
413 \r
414         public void removemorphAt(int index) {\r
415                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "morph", index);\r
416         }\r
417 \r
418         public void removemorph() {\r
419                 removemorphAt(0);\r
420         }\r
421 \r
422         public org.w3c.dom.Node addmorph(morphType value) {\r
423                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "morph", value);\r
424         }\r
425 \r
426         public void insertmorphAt(morphType value, int index) {\r
427                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "morph", index, value);\r
428         }\r
429 \r
430         public void replacemorphAt(morphType value, int index) {\r
431                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "morph", index, value);\r
432         }\r
433 \r
434         public static int getextraMinCount() {\r
435                 return 0;\r
436         }\r
437 \r
438         public static int getextraMaxCount() {\r
439                 return Integer.MAX_VALUE;\r
440         }\r
441 \r
442         public int getextraCount() {\r
443                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");\r
444         }\r
445 \r
446         public boolean hasextra() {\r
447                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");\r
448         }\r
449 \r
450         public extraType newextra() {\r
451                 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));\r
452         }\r
453 \r
454         public extraType getextraAt(int index) throws Exception {\r
455                 return new extraType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index));\r
456         }\r
457 \r
458         public org.w3c.dom.Node getStartingextraCursor() throws Exception {\r
459                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );\r
460         }\r
461 \r
462         public org.w3c.dom.Node getAdvancedextraCursor( org.w3c.dom.Node curNode ) throws Exception {\r
463                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", curNode );\r
464         }\r
465 \r
466         public extraType getextraValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
467                 if( curNode == null )\r
468                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
469                 else\r
470                         return new extraType(curNode);\r
471         }\r
472 \r
473         public extraType getextra() throws Exception \r
474  {\r
475                 return getextraAt(0);\r
476         }\r
477 \r
478         public void removeextraAt(int index) {\r
479                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);\r
480         }\r
481 \r
482         public void removeextra() {\r
483                 while (hasextra())\r
484                         removeextraAt(0);\r
485         }\r
486 \r
487         public org.w3c.dom.Node addextra(extraType value) {\r
488                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);\r
489         }\r
490 \r
491         public void insertextraAt(extraType value, int index) {\r
492                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);\r
493         }\r
494 \r
495         public void replaceextraAt(extraType value, int index) {\r
496                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);\r
497         }\r
498 \r
499 }\r