OSDN Git Service

6ad71eff88012d592a7a88a85074561dff3d743e
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / animation_clipType.java
1 /**
2  * animation_clipType.java
3  *
4  * This file was generated by XMLSpy 2007sp2 Enterprise Edition.
5  *
6  * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
7  * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
8  *
9  * Refer to the XMLSpy Documentation for further details.
10  * http://www.altova.com/xmlspy
11  */
12
13
14 package com.jmex.model.collada.schema;
15
16 import com.jmex.xml.types.SchemaDouble;
17 import com.jmex.xml.types.SchemaID;
18 import com.jmex.xml.types.SchemaNCName;
19
20 public class animation_clipType extends com.jmex.xml.xml.Node {
21
22         public animation_clipType(animation_clipType node) {
23                 super(node);
24         }
25
26         public animation_clipType(org.w3c.dom.Node node) {
27                 super(node);
28         }
29
30         public animation_clipType(org.w3c.dom.Document doc) {
31                 super(doc);
32         }
33
34         public animation_clipType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
35                 super(doc, namespaceURI, prefix, name);
36         }
37         
38         public void adjustPrefix() {
39                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "id" );
40                                 tmpNode != null;
41                                 tmpNode = getDomNextChild( Attribute, null, "id", tmpNode )
42                         ) {
43                         internalAdjustPrefix(tmpNode, false);
44                 }
45                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "name" );
46                                 tmpNode != null;
47                                 tmpNode = getDomNextChild( Attribute, null, "name", tmpNode )
48                         ) {
49                         internalAdjustPrefix(tmpNode, false);
50                 }
51                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "start" );
52                                 tmpNode != null;
53                                 tmpNode = getDomNextChild( Attribute, null, "start", tmpNode )
54                         ) {
55                         internalAdjustPrefix(tmpNode, false);
56                 }
57                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "end" );
58                                 tmpNode != null;
59                                 tmpNode = getDomNextChild( Attribute, null, "end", tmpNode )
60                         ) {
61                         internalAdjustPrefix(tmpNode, false);
62                 }
63                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset" );
64                                 tmpNode != null;
65                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", tmpNode )
66                         ) {
67                         internalAdjustPrefix(tmpNode, true);
68                         new assetType(tmpNode).adjustPrefix();
69                 }
70                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation" );
71                                 tmpNode != null;
72                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation", tmpNode )
73                         ) {
74                         internalAdjustPrefix(tmpNode, true);
75                         new InstanceWithExtra(tmpNode).adjustPrefix();
76                 }
77                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
78                                 tmpNode != null;
79                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )
80                         ) {
81                         internalAdjustPrefix(tmpNode, true);
82                         new extraType(tmpNode).adjustPrefix();
83                 }
84         }
85         public void setXsiType() {
86                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
87                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "animation_clip");
88         }
89
90         public static int getidMinCount() {
91                 return 0;
92         }
93
94         public static int getidMaxCount() {
95                 return 1;
96         }
97
98         public int getidCount() {
99                 return getDomChildCount(Attribute, null, "id");
100         }
101
102         public boolean hasid() {
103                 return hasDomChild(Attribute, null, "id");
104         }
105
106         public SchemaID newid() {
107                 return new SchemaID();
108         }
109
110         public SchemaID getidAt(int index) throws Exception {
111                 return new SchemaID(getDomNodeValue(getDomChildAt(Attribute, null, "id", index)));
112         }
113
114         public org.w3c.dom.Node getStartingidCursor() throws Exception {
115                 return getDomFirstChild(Attribute, null, "id" );
116         }
117
118         public org.w3c.dom.Node getAdvancedidCursor( org.w3c.dom.Node curNode ) throws Exception {
119                 return getDomNextChild( Attribute, null, "id", curNode );
120         }
121
122         public SchemaID getidValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
123                 if( curNode == null )
124                         throw new com.jmex.xml.xml.XmlException("Out of range");
125                 else
126                         return new SchemaID(getDomNodeValue(curNode));
127         }
128
129         public SchemaID getid() throws Exception 
130  {
131                 return getidAt(0);
132         }
133
134         public void removeidAt(int index) {
135                 removeDomChildAt(Attribute, null, "id", index);
136         }
137
138         public void removeid() {
139                 removeidAt(0);
140         }
141
142         public org.w3c.dom.Node addid(SchemaID value) {
143                 if( value.isNull() )
144                         return null;
145
146                 return  appendDomChild(Attribute, null, "id", value.toString());
147         }
148
149         public org.w3c.dom.Node addid(String value) throws Exception {
150                 return addid(new SchemaID(value));
151         }
152
153         public void insertidAt(SchemaID value, int index) {
154                 insertDomChildAt(Attribute, null, "id", index, value.toString());
155         }
156
157         public void insertidAt(String value, int index) throws Exception {
158                 insertidAt(new SchemaID(value), index);
159         }
160
161         public void replaceidAt(SchemaID value, int index) {
162                 replaceDomChildAt(Attribute, null, "id", index, value.toString());
163         }
164
165         public void replaceidAt(String value, int index) throws Exception {
166                 replaceidAt(new SchemaID(value), index);
167         }
168
169         public static int getnameMinCount() {
170                 return 0;
171         }
172
173         public static int getnameMaxCount() {
174                 return 1;
175         }
176
177         public int getnameCount() {
178                 return getDomChildCount(Attribute, null, "name");
179         }
180
181         public boolean hasname() {
182                 return hasDomChild(Attribute, null, "name");
183         }
184
185         public SchemaNCName newname() {
186                 return new SchemaNCName();
187         }
188
189         public SchemaNCName getnameAt(int index) throws Exception {
190                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "name", index)));
191         }
192
193         public org.w3c.dom.Node getStartingnameCursor() throws Exception {
194                 return getDomFirstChild(Attribute, null, "name" );
195         }
196
197         public org.w3c.dom.Node getAdvancednameCursor( org.w3c.dom.Node curNode ) throws Exception {
198                 return getDomNextChild( Attribute, null, "name", curNode );
199         }
200
201         public SchemaNCName getnameValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
202                 if( curNode == null )
203                         throw new com.jmex.xml.xml.XmlException("Out of range");
204                 else
205                         return new SchemaNCName(getDomNodeValue(curNode));
206         }
207
208         public SchemaNCName getname() throws Exception 
209  {
210                 return getnameAt(0);
211         }
212
213         public void removenameAt(int index) {
214                 removeDomChildAt(Attribute, null, "name", index);
215         }
216
217         public void removename() {
218                 removenameAt(0);
219         }
220
221         public org.w3c.dom.Node addname(SchemaNCName value) {
222                 if( value.isNull() )
223                         return null;
224
225                 return  appendDomChild(Attribute, null, "name", value.toString());
226         }
227
228         public org.w3c.dom.Node addname(String value) throws Exception {
229                 return addname(new SchemaNCName(value));
230         }
231
232         public void insertnameAt(SchemaNCName value, int index) {
233                 insertDomChildAt(Attribute, null, "name", index, value.toString());
234         }
235
236         public void insertnameAt(String value, int index) throws Exception {
237                 insertnameAt(new SchemaNCName(value), index);
238         }
239
240         public void replacenameAt(SchemaNCName value, int index) {
241                 replaceDomChildAt(Attribute, null, "name", index, value.toString());
242         }
243
244         public void replacenameAt(String value, int index) throws Exception {
245                 replacenameAt(new SchemaNCName(value), index);
246         }
247
248         public static int getstartMinCount() {
249                 return 0;
250         }
251
252         public static int getstartMaxCount() {
253                 return 1;
254         }
255
256         public int getstartCount() {
257                 return getDomChildCount(Attribute, null, "start");
258         }
259
260         public boolean hasstart() {
261                 return hasDomChild(Attribute, null, "start");
262         }
263
264         public SchemaDouble newstart() {
265                 return new SchemaDouble();
266         }
267
268         public SchemaDouble getstartAt(int index) throws Exception {
269                 return new SchemaDouble(getDomNodeValue(getDomChildAt(Attribute, null, "start", index)));
270         }
271
272         public org.w3c.dom.Node getStartingstartCursor() throws Exception {
273                 return getDomFirstChild(Attribute, null, "start" );
274         }
275
276         public org.w3c.dom.Node getAdvancedstartCursor( org.w3c.dom.Node curNode ) throws Exception {
277                 return getDomNextChild( Attribute, null, "start", curNode );
278         }
279
280         public SchemaDouble getstartValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
281                 if( curNode == null )
282                         throw new com.jmex.xml.xml.XmlException("Out of range");
283                 else
284                         return new SchemaDouble(getDomNodeValue(curNode));
285         }
286
287         public SchemaDouble getstart() throws Exception 
288  {
289                 return getstartAt(0);
290         }
291
292         public void removestartAt(int index) {
293                 removeDomChildAt(Attribute, null, "start", index);
294         }
295
296         public void removestart() {
297                 removestartAt(0);
298         }
299
300         public org.w3c.dom.Node addstart(SchemaDouble value) {
301                 if( value.isNull() )
302                         return null;
303
304                 return  appendDomChild(Attribute, null, "start", value.toString());
305         }
306
307         public org.w3c.dom.Node addstart(String value) throws Exception {
308                 return addstart(new SchemaDouble(value));
309         }
310
311         public void insertstartAt(SchemaDouble value, int index) {
312                 insertDomChildAt(Attribute, null, "start", index, value.toString());
313         }
314
315         public void insertstartAt(String value, int index) throws Exception {
316                 insertstartAt(new SchemaDouble(value), index);
317         }
318
319         public void replacestartAt(SchemaDouble value, int index) {
320                 replaceDomChildAt(Attribute, null, "start", index, value.toString());
321         }
322
323         public void replacestartAt(String value, int index) throws Exception {
324                 replacestartAt(new SchemaDouble(value), index);
325         }
326
327         public static int getendMinCount() {
328                 return 0;
329         }
330
331         public static int getendMaxCount() {
332                 return 1;
333         }
334
335         public int getendCount() {
336                 return getDomChildCount(Attribute, null, "end");
337         }
338
339         public boolean hasend() {
340                 return hasDomChild(Attribute, null, "end");
341         }
342
343         public SchemaDouble newend() {
344                 return new SchemaDouble();
345         }
346
347         public SchemaDouble getendAt(int index) throws Exception {
348                 return new SchemaDouble(getDomNodeValue(getDomChildAt(Attribute, null, "end", index)));
349         }
350
351         public org.w3c.dom.Node getStartingendCursor() throws Exception {
352                 return getDomFirstChild(Attribute, null, "end" );
353         }
354
355         public org.w3c.dom.Node getAdvancedendCursor( org.w3c.dom.Node curNode ) throws Exception {
356                 return getDomNextChild( Attribute, null, "end", curNode );
357         }
358
359         public SchemaDouble getendValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
360                 if( curNode == null )
361                         throw new com.jmex.xml.xml.XmlException("Out of range");
362                 else
363                         return new SchemaDouble(getDomNodeValue(curNode));
364         }
365
366         public SchemaDouble getend() throws Exception 
367  {
368                 return getendAt(0);
369         }
370
371         public void removeendAt(int index) {
372                 removeDomChildAt(Attribute, null, "end", index);
373         }
374
375         public void removeend() {
376                 removeendAt(0);
377         }
378
379         public org.w3c.dom.Node addend(SchemaDouble value) {
380                 if( value.isNull() )
381                         return null;
382
383                 return  appendDomChild(Attribute, null, "end", value.toString());
384         }
385
386         public org.w3c.dom.Node addend(String value) throws Exception {
387                 return addend(new SchemaDouble(value));
388         }
389
390         public void insertendAt(SchemaDouble value, int index) {
391                 insertDomChildAt(Attribute, null, "end", index, value.toString());
392         }
393
394         public void insertendAt(String value, int index) throws Exception {
395                 insertendAt(new SchemaDouble(value), index);
396         }
397
398         public void replaceendAt(SchemaDouble value, int index) {
399                 replaceDomChildAt(Attribute, null, "end", index, value.toString());
400         }
401
402         public void replaceendAt(String value, int index) throws Exception {
403                 replaceendAt(new SchemaDouble(value), index);
404         }
405
406         public static int getassetMinCount() {
407                 return 0;
408         }
409
410         public static int getassetMaxCount() {
411                 return 1;
412         }
413
414         public int getassetCount() {
415                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset");
416         }
417
418         public boolean hasasset() {
419                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset");
420         }
421
422         public assetType newasset() {
423                 return new assetType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "asset"));
424         }
425
426         public assetType getassetAt(int index) throws Exception {
427                 return new assetType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", index));
428         }
429
430         public org.w3c.dom.Node getStartingassetCursor() throws Exception {
431                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset" );
432         }
433
434         public org.w3c.dom.Node getAdvancedassetCursor( org.w3c.dom.Node curNode ) throws Exception {
435                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", curNode );
436         }
437
438         public assetType getassetValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
439                 if( curNode == null )
440                         throw new com.jmex.xml.xml.XmlException("Out of range");
441                 else
442                         return new assetType(curNode);
443         }
444
445         public assetType getasset() throws Exception 
446  {
447                 return getassetAt(0);
448         }
449
450         public void removeassetAt(int index) {
451                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", index);
452         }
453
454         public void removeasset() {
455                 removeassetAt(0);
456         }
457
458         public org.w3c.dom.Node addasset(assetType value) {
459                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "asset", value);
460         }
461
462         public void insertassetAt(assetType value, int index) {
463                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "asset", index, value);
464         }
465
466         public void replaceassetAt(assetType value, int index) {
467                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "asset", index, value);
468         }
469
470         public static int getinstance_animationMinCount() {
471                 return 1;
472         }
473
474         public static int getinstance_animationMaxCount() {
475                 return Integer.MAX_VALUE;
476         }
477
478         public int getinstance_animationCount() {
479                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation");
480         }
481
482         public boolean hasinstance_animation() {
483                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation");
484         }
485
486         public InstanceWithExtra newinstance_animation() {
487                 return new InstanceWithExtra(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "instance_animation"));
488         }
489
490         public InstanceWithExtra getinstance_animationAt(int index) throws Exception {
491                 return new InstanceWithExtra(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation", index));
492         }
493
494         public org.w3c.dom.Node getStartinginstance_animationCursor() throws Exception {
495                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation" );
496         }
497
498         public org.w3c.dom.Node getAdvancedinstance_animationCursor( org.w3c.dom.Node curNode ) throws Exception {
499                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation", curNode );
500         }
501
502         public InstanceWithExtra getinstance_animationValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
503                 if( curNode == null )
504                         throw new com.jmex.xml.xml.XmlException("Out of range");
505                 else
506                         return new InstanceWithExtra(curNode);
507         }
508
509         public InstanceWithExtra getinstance_animation() throws Exception 
510  {
511                 return getinstance_animationAt(0);
512         }
513
514         public void removeinstance_animationAt(int index) {
515                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation", index);
516         }
517
518         public void removeinstance_animation() {
519                 while (hasinstance_animation())
520                         removeinstance_animationAt(0);
521         }
522
523         public org.w3c.dom.Node addinstance_animation(InstanceWithExtra value) {
524                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "instance_animation", value);
525         }
526
527         public void insertinstance_animationAt(InstanceWithExtra value, int index) {
528                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "instance_animation", index, value);
529         }
530
531         public void replaceinstance_animationAt(InstanceWithExtra value, int index) {
532                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "instance_animation", index, value);
533         }
534
535         public static int getextraMinCount() {
536                 return 0;
537         }
538
539         public static int getextraMaxCount() {
540                 return Integer.MAX_VALUE;
541         }
542
543         public int getextraCount() {
544                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
545         }
546
547         public boolean hasextra() {
548                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
549         }
550
551         public extraType newextra() {
552                 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));
553         }
554
555         public extraType getextraAt(int index) throws Exception {
556                 return new extraType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index));
557         }
558
559         public org.w3c.dom.Node getStartingextraCursor() throws Exception {
560                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
561         }
562
563         public org.w3c.dom.Node getAdvancedextraCursor( org.w3c.dom.Node curNode ) throws Exception {
564                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", curNode );
565         }
566
567         public extraType getextraValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
568                 if( curNode == null )
569                         throw new com.jmex.xml.xml.XmlException("Out of range");
570                 else
571                         return new extraType(curNode);
572         }
573
574         public extraType getextra() throws Exception 
575  {
576                 return getextraAt(0);
577         }
578
579         public void removeextraAt(int index) {
580                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);
581         }
582
583         public void removeextra() {
584                 while (hasextra())
585                         removeextraAt(0);
586         }
587
588         public org.w3c.dom.Node addextra(extraType value) {
589                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);
590         }
591
592         public void insertextraAt(extraType value, int index) {
593                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
594         }
595
596         public void replaceextraAt(extraType value, int index) {
597                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
598         }
599
600 }