2 * animation_clipType.java
4 * This file was generated by XMLSpy 2007sp2 Enterprise Edition.
6 * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
7 * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
9 * Refer to the XMLSpy Documentation for further details.
10 * http://www.altova.com/xmlspy
14 package com.jmex.model.collada.schema;
16 import com.jmex.xml.types.SchemaDouble;
17 import com.jmex.xml.types.SchemaID;
18 import com.jmex.xml.types.SchemaNCName;
20 public class animation_clipType extends com.jmex.xml.xml.Node {
22 public animation_clipType(animation_clipType node) {
26 public animation_clipType(org.w3c.dom.Node node) {
30 public animation_clipType(org.w3c.dom.Document doc) {
34 public animation_clipType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
35 super(doc, namespaceURI, prefix, name);
38 public void adjustPrefix() {
39 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "id" );
41 tmpNode = getDomNextChild( Attribute, null, "id", tmpNode )
43 internalAdjustPrefix(tmpNode, false);
45 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "name" );
47 tmpNode = getDomNextChild( Attribute, null, "name", tmpNode )
49 internalAdjustPrefix(tmpNode, false);
51 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "start" );
53 tmpNode = getDomNextChild( Attribute, null, "start", tmpNode )
55 internalAdjustPrefix(tmpNode, false);
57 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "end" );
59 tmpNode = getDomNextChild( Attribute, null, "end", tmpNode )
61 internalAdjustPrefix(tmpNode, false);
63 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset" );
65 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", tmpNode )
67 internalAdjustPrefix(tmpNode, true);
68 new assetType(tmpNode).adjustPrefix();
70 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation" );
72 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation", tmpNode )
74 internalAdjustPrefix(tmpNode, true);
75 new InstanceWithExtra(tmpNode).adjustPrefix();
77 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
79 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )
81 internalAdjustPrefix(tmpNode, true);
82 new extraType(tmpNode).adjustPrefix();
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");
90 public static int getidMinCount() {
94 public static int getidMaxCount() {
98 public int getidCount() {
99 return getDomChildCount(Attribute, null, "id");
102 public boolean hasid() {
103 return hasDomChild(Attribute, null, "id");
106 public SchemaID newid() {
107 return new SchemaID();
110 public SchemaID getidAt(int index) throws Exception {
111 return new SchemaID(getDomNodeValue(getDomChildAt(Attribute, null, "id", index)));
114 public org.w3c.dom.Node getStartingidCursor() throws Exception {
115 return getDomFirstChild(Attribute, null, "id" );
118 public org.w3c.dom.Node getAdvancedidCursor( org.w3c.dom.Node curNode ) throws Exception {
119 return getDomNextChild( Attribute, null, "id", curNode );
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");
126 return new SchemaID(getDomNodeValue(curNode));
129 public SchemaID getid() throws Exception
134 public void removeidAt(int index) {
135 removeDomChildAt(Attribute, null, "id", index);
138 public void removeid() {
142 public org.w3c.dom.Node addid(SchemaID value) {
146 return appendDomChild(Attribute, null, "id", value.toString());
149 public org.w3c.dom.Node addid(String value) throws Exception {
150 return addid(new SchemaID(value));
153 public void insertidAt(SchemaID value, int index) {
154 insertDomChildAt(Attribute, null, "id", index, value.toString());
157 public void insertidAt(String value, int index) throws Exception {
158 insertidAt(new SchemaID(value), index);
161 public void replaceidAt(SchemaID value, int index) {
162 replaceDomChildAt(Attribute, null, "id", index, value.toString());
165 public void replaceidAt(String value, int index) throws Exception {
166 replaceidAt(new SchemaID(value), index);
169 public static int getnameMinCount() {
173 public static int getnameMaxCount() {
177 public int getnameCount() {
178 return getDomChildCount(Attribute, null, "name");
181 public boolean hasname() {
182 return hasDomChild(Attribute, null, "name");
185 public SchemaNCName newname() {
186 return new SchemaNCName();
189 public SchemaNCName getnameAt(int index) throws Exception {
190 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "name", index)));
193 public org.w3c.dom.Node getStartingnameCursor() throws Exception {
194 return getDomFirstChild(Attribute, null, "name" );
197 public org.w3c.dom.Node getAdvancednameCursor( org.w3c.dom.Node curNode ) throws Exception {
198 return getDomNextChild( Attribute, null, "name", curNode );
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");
205 return new SchemaNCName(getDomNodeValue(curNode));
208 public SchemaNCName getname() throws Exception
213 public void removenameAt(int index) {
214 removeDomChildAt(Attribute, null, "name", index);
217 public void removename() {
221 public org.w3c.dom.Node addname(SchemaNCName value) {
225 return appendDomChild(Attribute, null, "name", value.toString());
228 public org.w3c.dom.Node addname(String value) throws Exception {
229 return addname(new SchemaNCName(value));
232 public void insertnameAt(SchemaNCName value, int index) {
233 insertDomChildAt(Attribute, null, "name", index, value.toString());
236 public void insertnameAt(String value, int index) throws Exception {
237 insertnameAt(new SchemaNCName(value), index);
240 public void replacenameAt(SchemaNCName value, int index) {
241 replaceDomChildAt(Attribute, null, "name", index, value.toString());
244 public void replacenameAt(String value, int index) throws Exception {
245 replacenameAt(new SchemaNCName(value), index);
248 public static int getstartMinCount() {
252 public static int getstartMaxCount() {
256 public int getstartCount() {
257 return getDomChildCount(Attribute, null, "start");
260 public boolean hasstart() {
261 return hasDomChild(Attribute, null, "start");
264 public SchemaDouble newstart() {
265 return new SchemaDouble();
268 public SchemaDouble getstartAt(int index) throws Exception {
269 return new SchemaDouble(getDomNodeValue(getDomChildAt(Attribute, null, "start", index)));
272 public org.w3c.dom.Node getStartingstartCursor() throws Exception {
273 return getDomFirstChild(Attribute, null, "start" );
276 public org.w3c.dom.Node getAdvancedstartCursor( org.w3c.dom.Node curNode ) throws Exception {
277 return getDomNextChild( Attribute, null, "start", curNode );
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");
284 return new SchemaDouble(getDomNodeValue(curNode));
287 public SchemaDouble getstart() throws Exception
289 return getstartAt(0);
292 public void removestartAt(int index) {
293 removeDomChildAt(Attribute, null, "start", index);
296 public void removestart() {
300 public org.w3c.dom.Node addstart(SchemaDouble value) {
304 return appendDomChild(Attribute, null, "start", value.toString());
307 public org.w3c.dom.Node addstart(String value) throws Exception {
308 return addstart(new SchemaDouble(value));
311 public void insertstartAt(SchemaDouble value, int index) {
312 insertDomChildAt(Attribute, null, "start", index, value.toString());
315 public void insertstartAt(String value, int index) throws Exception {
316 insertstartAt(new SchemaDouble(value), index);
319 public void replacestartAt(SchemaDouble value, int index) {
320 replaceDomChildAt(Attribute, null, "start", index, value.toString());
323 public void replacestartAt(String value, int index) throws Exception {
324 replacestartAt(new SchemaDouble(value), index);
327 public static int getendMinCount() {
331 public static int getendMaxCount() {
335 public int getendCount() {
336 return getDomChildCount(Attribute, null, "end");
339 public boolean hasend() {
340 return hasDomChild(Attribute, null, "end");
343 public SchemaDouble newend() {
344 return new SchemaDouble();
347 public SchemaDouble getendAt(int index) throws Exception {
348 return new SchemaDouble(getDomNodeValue(getDomChildAt(Attribute, null, "end", index)));
351 public org.w3c.dom.Node getStartingendCursor() throws Exception {
352 return getDomFirstChild(Attribute, null, "end" );
355 public org.w3c.dom.Node getAdvancedendCursor( org.w3c.dom.Node curNode ) throws Exception {
356 return getDomNextChild( Attribute, null, "end", curNode );
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");
363 return new SchemaDouble(getDomNodeValue(curNode));
366 public SchemaDouble getend() throws Exception
371 public void removeendAt(int index) {
372 removeDomChildAt(Attribute, null, "end", index);
375 public void removeend() {
379 public org.w3c.dom.Node addend(SchemaDouble value) {
383 return appendDomChild(Attribute, null, "end", value.toString());
386 public org.w3c.dom.Node addend(String value) throws Exception {
387 return addend(new SchemaDouble(value));
390 public void insertendAt(SchemaDouble value, int index) {
391 insertDomChildAt(Attribute, null, "end", index, value.toString());
394 public void insertendAt(String value, int index) throws Exception {
395 insertendAt(new SchemaDouble(value), index);
398 public void replaceendAt(SchemaDouble value, int index) {
399 replaceDomChildAt(Attribute, null, "end", index, value.toString());
402 public void replaceendAt(String value, int index) throws Exception {
403 replaceendAt(new SchemaDouble(value), index);
406 public static int getassetMinCount() {
410 public static int getassetMaxCount() {
414 public int getassetCount() {
415 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset");
418 public boolean hasasset() {
419 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset");
422 public assetType newasset() {
423 return new assetType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "asset"));
426 public assetType getassetAt(int index) throws Exception {
427 return new assetType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", index));
430 public org.w3c.dom.Node getStartingassetCursor() throws Exception {
431 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset" );
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 );
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");
442 return new assetType(curNode);
445 public assetType getasset() throws Exception
447 return getassetAt(0);
450 public void removeassetAt(int index) {
451 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", index);
454 public void removeasset() {
458 public org.w3c.dom.Node addasset(assetType value) {
459 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "asset", value);
462 public void insertassetAt(assetType value, int index) {
463 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "asset", index, value);
466 public void replaceassetAt(assetType value, int index) {
467 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "asset", index, value);
470 public static int getinstance_animationMinCount() {
474 public static int getinstance_animationMaxCount() {
475 return Integer.MAX_VALUE;
478 public int getinstance_animationCount() {
479 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation");
482 public boolean hasinstance_animation() {
483 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation");
486 public InstanceWithExtra newinstance_animation() {
487 return new InstanceWithExtra(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "instance_animation"));
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));
494 public org.w3c.dom.Node getStartinginstance_animationCursor() throws Exception {
495 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation" );
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 );
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");
506 return new InstanceWithExtra(curNode);
509 public InstanceWithExtra getinstance_animation() throws Exception
511 return getinstance_animationAt(0);
514 public void removeinstance_animationAt(int index) {
515 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "instance_animation", index);
518 public void removeinstance_animation() {
519 while (hasinstance_animation())
520 removeinstance_animationAt(0);
523 public org.w3c.dom.Node addinstance_animation(InstanceWithExtra value) {
524 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "instance_animation", value);
527 public void insertinstance_animationAt(InstanceWithExtra value, int index) {
528 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "instance_animation", index, value);
531 public void replaceinstance_animationAt(InstanceWithExtra value, int index) {
532 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "instance_animation", index, value);
535 public static int getextraMinCount() {
539 public static int getextraMaxCount() {
540 return Integer.MAX_VALUE;
543 public int getextraCount() {
544 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
547 public boolean hasextra() {
548 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
551 public extraType newextra() {
552 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));
555 public extraType getextraAt(int index) throws Exception {
556 return new extraType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index));
559 public org.w3c.dom.Node getStartingextraCursor() throws Exception {
560 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
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 );
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");
571 return new extraType(curNode);
574 public extraType getextra() throws Exception
576 return getextraAt(0);
579 public void removeextraAt(int index) {
580 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);
583 public void removeextra() {
588 public org.w3c.dom.Node addextra(extraType value) {
589 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);
592 public void insertextraAt(extraType value, int index) {
593 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
596 public void replaceextraAt(extraType value, int index) {
597 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);