2 * gles_texture_unit.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.SchemaNCName;
\r
18 public class gles_texture_unit extends com.jmex.xml.xml.Node {
\r
20 public gles_texture_unit(gles_texture_unit node) {
\r
24 public gles_texture_unit(org.w3c.dom.Node node) {
\r
28 public gles_texture_unit(org.w3c.dom.Document doc) {
\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
36 public void adjustPrefix() {
\r
37 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "sid" );
\r
39 tmpNode = getDomNextChild( Attribute, null, "sid", tmpNode )
\r
41 internalAdjustPrefix(tmpNode, false);
\r
43 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "surface" );
\r
45 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "surface", tmpNode )
\r
47 internalAdjustPrefix(tmpNode, true);
\r
49 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state" );
\r
51 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state", tmpNode )
\r
53 internalAdjustPrefix(tmpNode, true);
\r
55 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord" );
\r
57 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord", tmpNode )
\r
59 internalAdjustPrefix(tmpNode, true);
\r
60 new texcoordType(tmpNode).adjustPrefix();
\r
62 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
\r
64 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )
\r
66 internalAdjustPrefix(tmpNode, true);
\r
67 new extraType(tmpNode).adjustPrefix();
\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
75 public static int getsidMinCount() {
\r
79 public static int getsidMaxCount() {
\r
83 public int getsidCount() {
\r
84 return getDomChildCount(Attribute, null, "sid");
\r
87 public boolean hassid() {
\r
88 return hasDomChild(Attribute, null, "sid");
\r
91 public SchemaNCName newsid() {
\r
92 return new SchemaNCName();
\r
95 public SchemaNCName getsidAt(int index) throws Exception {
\r
96 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "sid", index)));
\r
99 public org.w3c.dom.Node getStartingsidCursor() throws Exception {
\r
100 return getDomFirstChild(Attribute, null, "sid" );
\r
103 public org.w3c.dom.Node getAdvancedsidCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
104 return getDomNextChild( Attribute, null, "sid", curNode );
\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
111 return new SchemaNCName(getDomNodeValue(curNode));
\r
114 public SchemaNCName getsid() throws Exception
\r
116 return getsidAt(0);
\r
119 public void removesidAt(int index) {
\r
120 removeDomChildAt(Attribute, null, "sid", index);
\r
123 public void removesid() {
\r
127 public org.w3c.dom.Node addsid(SchemaNCName value) {
\r
128 if( value.isNull() )
\r
131 return appendDomChild(Attribute, null, "sid", value.toString());
\r
134 public org.w3c.dom.Node addsid(String value) throws Exception {
\r
135 return addsid(new SchemaNCName(value));
\r
138 public void insertsidAt(SchemaNCName value, int index) {
\r
139 insertDomChildAt(Attribute, null, "sid", index, value.toString());
\r
142 public void insertsidAt(String value, int index) throws Exception {
\r
143 insertsidAt(new SchemaNCName(value), index);
\r
146 public void replacesidAt(SchemaNCName value, int index) {
\r
147 replaceDomChildAt(Attribute, null, "sid", index, value.toString());
\r
150 public void replacesidAt(String value, int index) throws Exception {
\r
151 replacesidAt(new SchemaNCName(value), index);
\r
154 public static int getsurfaceMinCount() {
\r
158 public static int getsurfaceMaxCount() {
\r
162 public int getsurfaceCount() {
\r
163 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface");
\r
166 public boolean hassurface() {
\r
167 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface");
\r
170 public SchemaNCName newsurface() {
\r
171 return new SchemaNCName();
\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
178 public org.w3c.dom.Node getStartingsurfaceCursor() throws Exception {
\r
179 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface" );
\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
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
190 return new SchemaNCName(getDomNodeValue(curNode));
\r
193 public SchemaNCName getsurface() throws Exception
\r
195 return getsurfaceAt(0);
\r
198 public void removesurfaceAt(int index) {
\r
199 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface", index);
\r
202 public void removesurface() {
\r
203 removesurfaceAt(0);
\r
206 public org.w3c.dom.Node addsurface(SchemaNCName value) {
\r
207 if( value.isNull() )
\r
210 return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "surface", value.toString());
\r
213 public org.w3c.dom.Node addsurface(String value) throws Exception {
\r
214 return addsurface(new SchemaNCName(value));
\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
221 public void insertsurfaceAt(String value, int index) throws Exception {
\r
222 insertsurfaceAt(new SchemaNCName(value), index);
\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
229 public void replacesurfaceAt(String value, int index) throws Exception {
\r
230 replacesurfaceAt(new SchemaNCName(value), index);
\r
233 public static int getsampler_stateMinCount() {
\r
237 public static int getsampler_stateMaxCount() {
\r
241 public int getsampler_stateCount() {
\r
242 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state");
\r
245 public boolean hassampler_state() {
\r
246 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state");
\r
249 public SchemaNCName newsampler_state() {
\r
250 return new SchemaNCName();
\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
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
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
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
269 return new SchemaNCName(getDomNodeValue(curNode));
\r
272 public SchemaNCName getsampler_state() throws Exception
\r
274 return getsampler_stateAt(0);
\r
277 public void removesampler_stateAt(int index) {
\r
278 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state", index);
\r
281 public void removesampler_state() {
\r
282 removesampler_stateAt(0);
\r
285 public org.w3c.dom.Node addsampler_state(SchemaNCName value) {
\r
286 if( value.isNull() )
\r
289 return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "sampler_state", value.toString());
\r
292 public org.w3c.dom.Node addsampler_state(String value) throws Exception {
\r
293 return addsampler_state(new SchemaNCName(value));
\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
300 public void insertsampler_stateAt(String value, int index) throws Exception {
\r
301 insertsampler_stateAt(new SchemaNCName(value), index);
\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
308 public void replacesampler_stateAt(String value, int index) throws Exception {
\r
309 replacesampler_stateAt(new SchemaNCName(value), index);
\r
312 public static int gettexcoordMinCount() {
\r
316 public static int gettexcoordMaxCount() {
\r
320 public int gettexcoordCount() {
\r
321 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord");
\r
324 public boolean hastexcoord() {
\r
325 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord");
\r
328 public texcoordType newtexcoord() {
\r
329 return new texcoordType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "texcoord"));
\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
336 public org.w3c.dom.Node getStartingtexcoordCursor() throws Exception {
\r
337 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord" );
\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
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
348 return new texcoordType(curNode);
\r
351 public texcoordType gettexcoord() throws Exception
\r
353 return gettexcoordAt(0);
\r
356 public void removetexcoordAt(int index) {
\r
357 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "texcoord", index);
\r
360 public void removetexcoord() {
\r
361 removetexcoordAt(0);
\r
364 public org.w3c.dom.Node addtexcoord(texcoordType value) {
\r
365 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "texcoord", value);
\r
368 public void inserttexcoordAt(texcoordType value, int index) {
\r
369 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "texcoord", index, value);
\r
372 public void replacetexcoordAt(texcoordType value, int index) {
\r
373 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "texcoord", index, value);
\r
376 public static int getextraMinCount() {
\r
380 public static int getextraMaxCount() {
\r
381 return Integer.MAX_VALUE;
\r
384 public int getextraCount() {
\r
385 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
\r
388 public boolean hasextra() {
\r
389 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
\r
392 public extraType newextra() {
\r
393 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));
\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
400 public org.w3c.dom.Node getStartingextraCursor() throws Exception {
\r
401 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
\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
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
412 return new extraType(curNode);
\r
415 public extraType getextra() throws Exception
\r
417 return getextraAt(0);
\r
420 public void removeextraAt(int index) {
\r
421 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);
\r
424 public void removeextra() {
\r
429 public org.w3c.dom.Node addextra(extraType value) {
\r
430 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);
\r
433 public void insertextraAt(extraType value, int index) {
\r
434 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
\r
437 public void replaceextraAt(extraType value, int index) {
\r
438 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
\r