2 * controllerType.java
\r
4 * This file was generated by XMLSpy 2007sp2 Enterprise Edition.
\r
6 * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
\r
7 * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
\r
9 * Refer to the XMLSpy Documentation for further details.
\r
10 * http://www.altova.com/xmlspy
\r
14 package com.jmex.model.collada.schema;
\r
16 import com.jmex.xml.types.SchemaID;
\r
17 import com.jmex.xml.types.SchemaNCName;
\r
19 public class controllerType extends com.jmex.xml.xml.Node {
\r
21 public controllerType(controllerType node) {
\r
25 public controllerType(org.w3c.dom.Node node) {
\r
29 public controllerType(org.w3c.dom.Document doc) {
\r
33 public controllerType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
\r
34 super(doc, namespaceURI, prefix, name);
\r
37 public void adjustPrefix() {
\r
38 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "id" );
\r
40 tmpNode = getDomNextChild( Attribute, null, "id", tmpNode )
\r
42 internalAdjustPrefix(tmpNode, false);
\r
44 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "name" );
\r
46 tmpNode = getDomNextChild( Attribute, null, "name", tmpNode )
\r
48 internalAdjustPrefix(tmpNode, false);
\r
50 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset" );
\r
52 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", tmpNode )
\r
54 internalAdjustPrefix(tmpNode, true);
\r
55 new assetType(tmpNode).adjustPrefix();
\r
57 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "skin" );
\r
59 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "skin", tmpNode )
\r
61 internalAdjustPrefix(tmpNode, true);
\r
62 new skinType(tmpNode).adjustPrefix();
\r
64 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "morph" );
\r
66 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "morph", tmpNode )
\r
68 internalAdjustPrefix(tmpNode, true);
\r
69 new morphType(tmpNode).adjustPrefix();
\r
71 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
\r
73 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )
\r
75 internalAdjustPrefix(tmpNode, true);
\r
76 new extraType(tmpNode).adjustPrefix();
\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
84 public static int getidMinCount() {
\r
88 public static int getidMaxCount() {
\r
92 public int getidCount() {
\r
93 return getDomChildCount(Attribute, null, "id");
\r
96 public boolean hasid() {
\r
97 return hasDomChild(Attribute, null, "id");
\r
100 public SchemaID newid() {
\r
101 return new SchemaID();
\r
104 public SchemaID getidAt(int index) throws Exception {
\r
105 return new SchemaID(getDomNodeValue(getDomChildAt(Attribute, null, "id", index)));
\r
108 public org.w3c.dom.Node getStartingidCursor() throws Exception {
\r
109 return getDomFirstChild(Attribute, null, "id" );
\r
112 public org.w3c.dom.Node getAdvancedidCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
113 return getDomNextChild( Attribute, null, "id", curNode );
\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
120 return new SchemaID(getDomNodeValue(curNode));
\r
123 public SchemaID getid() throws Exception
\r
128 public void removeidAt(int index) {
\r
129 removeDomChildAt(Attribute, null, "id", index);
\r
132 public void removeid() {
\r
136 public org.w3c.dom.Node addid(SchemaID value) {
\r
137 if( value.isNull() )
\r
140 return appendDomChild(Attribute, null, "id", value.toString());
\r
143 public org.w3c.dom.Node addid(String value) throws Exception {
\r
144 return addid(new SchemaID(value));
\r
147 public void insertidAt(SchemaID value, int index) {
\r
148 insertDomChildAt(Attribute, null, "id", index, value.toString());
\r
151 public void insertidAt(String value, int index) throws Exception {
\r
152 insertidAt(new SchemaID(value), index);
\r
155 public void replaceidAt(SchemaID value, int index) {
\r
156 replaceDomChildAt(Attribute, null, "id", index, value.toString());
\r
159 public void replaceidAt(String value, int index) throws Exception {
\r
160 replaceidAt(new SchemaID(value), index);
\r
163 public static int getnameMinCount() {
\r
167 public static int getnameMaxCount() {
\r
171 public int getnameCount() {
\r
172 return getDomChildCount(Attribute, null, "name");
\r
175 public boolean hasname() {
\r
176 return hasDomChild(Attribute, null, "name");
\r
179 public SchemaNCName newname() {
\r
180 return new SchemaNCName();
\r
183 public SchemaNCName getnameAt(int index) throws Exception {
\r
184 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "name", index)));
\r
187 public org.w3c.dom.Node getStartingnameCursor() throws Exception {
\r
188 return getDomFirstChild(Attribute, null, "name" );
\r
191 public org.w3c.dom.Node getAdvancednameCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
192 return getDomNextChild( Attribute, null, "name", curNode );
\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
199 return new SchemaNCName(getDomNodeValue(curNode));
\r
202 public SchemaNCName getname() throws Exception
\r
204 return getnameAt(0);
\r
207 public void removenameAt(int index) {
\r
208 removeDomChildAt(Attribute, null, "name", index);
\r
211 public void removename() {
\r
215 public org.w3c.dom.Node addname(SchemaNCName value) {
\r
216 if( value.isNull() )
\r
219 return appendDomChild(Attribute, null, "name", value.toString());
\r
222 public org.w3c.dom.Node addname(String value) throws Exception {
\r
223 return addname(new SchemaNCName(value));
\r
226 public void insertnameAt(SchemaNCName value, int index) {
\r
227 insertDomChildAt(Attribute, null, "name", index, value.toString());
\r
230 public void insertnameAt(String value, int index) throws Exception {
\r
231 insertnameAt(new SchemaNCName(value), index);
\r
234 public void replacenameAt(SchemaNCName value, int index) {
\r
235 replaceDomChildAt(Attribute, null, "name", index, value.toString());
\r
238 public void replacenameAt(String value, int index) throws Exception {
\r
239 replacenameAt(new SchemaNCName(value), index);
\r
242 public static int getassetMinCount() {
\r
246 public static int getassetMaxCount() {
\r
250 public int getassetCount() {
\r
251 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset");
\r
254 public boolean hasasset() {
\r
255 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset");
\r
258 public assetType newasset() {
\r
259 return new assetType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "asset"));
\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
266 public org.w3c.dom.Node getStartingassetCursor() throws Exception {
\r
267 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset" );
\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
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
278 return new assetType(curNode);
\r
281 public assetType getasset() throws Exception
\r
283 return getassetAt(0);
\r
286 public void removeassetAt(int index) {
\r
287 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", index);
\r
290 public void removeasset() {
\r
294 public org.w3c.dom.Node addasset(assetType value) {
\r
295 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "asset", value);
\r
298 public void insertassetAt(assetType value, int index) {
\r
299 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "asset", index, value);
\r
302 public void replaceassetAt(assetType value, int index) {
\r
303 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "asset", index, value);
\r
306 public static int getskinMinCount() {
\r
310 public static int getskinMaxCount() {
\r
314 public int getskinCount() {
\r
315 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "skin");
\r
318 public boolean hasskin() {
\r
319 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "skin");
\r
322 public skinType newskin() {
\r
323 return new skinType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "skin"));
\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
330 public org.w3c.dom.Node getStartingskinCursor() throws Exception {
\r
331 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "skin" );
\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
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
342 return new skinType(curNode);
\r
345 public skinType getskin() throws Exception
\r
347 return getskinAt(0);
\r
350 public void removeskinAt(int index) {
\r
351 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "skin", index);
\r
354 public void removeskin() {
\r
358 public org.w3c.dom.Node addskin(skinType value) {
\r
359 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "skin", value);
\r
362 public void insertskinAt(skinType value, int index) {
\r
363 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "skin", index, value);
\r
366 public void replaceskinAt(skinType value, int index) {
\r
367 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "skin", index, value);
\r
370 public static int getmorphMinCount() {
\r
374 public static int getmorphMaxCount() {
\r
378 public int getmorphCount() {
\r
379 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "morph");
\r
382 public boolean hasmorph() {
\r
383 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "morph");
\r
386 public morphType newmorph() {
\r
387 return new morphType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "morph"));
\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
394 public org.w3c.dom.Node getStartingmorphCursor() throws Exception {
\r
395 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "morph" );
\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
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
406 return new morphType(curNode);
\r
409 public morphType getmorph() throws Exception
\r
411 return getmorphAt(0);
\r
414 public void removemorphAt(int index) {
\r
415 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "morph", index);
\r
418 public void removemorph() {
\r
422 public org.w3c.dom.Node addmorph(morphType value) {
\r
423 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "morph", value);
\r
426 public void insertmorphAt(morphType value, int index) {
\r
427 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "morph", index, value);
\r
430 public void replacemorphAt(morphType value, int index) {
\r
431 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "morph", index, value);
\r
434 public static int getextraMinCount() {
\r
438 public static int getextraMaxCount() {
\r
439 return Integer.MAX_VALUE;
\r
442 public int getextraCount() {
\r
443 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
\r
446 public boolean hasextra() {
\r
447 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
\r
450 public extraType newextra() {
\r
451 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));
\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
458 public org.w3c.dom.Node getStartingextraCursor() throws Exception {
\r
459 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
\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
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
470 return new extraType(curNode);
\r
473 public extraType getextra() throws Exception
\r
475 return getextraAt(0);
\r
478 public void removeextraAt(int index) {
\r
479 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);
\r
482 public void removeextra() {
\r
487 public org.w3c.dom.Node addextra(extraType value) {
\r
488 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);
\r
491 public void insertextraAt(extraType value, int index) {
\r
492 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
\r
495 public void replaceextraAt(extraType value, int index) {
\r
496 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
\r