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 texture1DType extends com.jmex.xml.xml.Node {
\r
20 public texture1DType(texture1DType node) {
\r
24 public texture1DType(org.w3c.dom.Node node) {
\r
28 public texture1DType(org.w3c.dom.Document doc) {
\r
32 public texture1DType(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, "index" );
\r
39 tmpNode = getDomNextChild( Attribute, null, "index", tmpNode )
\r
41 internalAdjustPrefix(tmpNode, false);
\r
43 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "value" );
\r
45 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "value", tmpNode )
\r
47 internalAdjustPrefix(tmpNode, true);
\r
48 new gl_sampler1D(tmpNode).adjustPrefix();
\r
50 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "param" );
\r
52 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "param", tmpNode )
\r
54 internalAdjustPrefix(tmpNode, true);
\r
57 public void setXsiType() {
\r
58 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
\r
59 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "texture1D");
\r
62 public static int getindexMinCount() {
\r
66 public static int getindexMaxCount() {
\r
70 public int getindexCount() {
\r
71 return getDomChildCount(Attribute, null, "index");
\r
74 public boolean hasindex() {
\r
75 return hasDomChild(Attribute, null, "index");
\r
78 public GL_MAX_TEXTURE_IMAGE_UNITS_index newindex() {
\r
79 return new GL_MAX_TEXTURE_IMAGE_UNITS_index();
\r
82 public GL_MAX_TEXTURE_IMAGE_UNITS_index getindexAt(int index) throws Exception {
\r
83 return new GL_MAX_TEXTURE_IMAGE_UNITS_index(getDomNodeValue(getDomChildAt(Attribute, null, "index", index)));
\r
86 public org.w3c.dom.Node getStartingindexCursor() throws Exception {
\r
87 return getDomFirstChild(Attribute, null, "index" );
\r
90 public org.w3c.dom.Node getAdvancedindexCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
91 return getDomNextChild( Attribute, null, "index", curNode );
\r
94 public GL_MAX_TEXTURE_IMAGE_UNITS_index getindexValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
95 if( curNode == null )
\r
96 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
98 return new GL_MAX_TEXTURE_IMAGE_UNITS_index(getDomNodeValue(curNode));
\r
101 public GL_MAX_TEXTURE_IMAGE_UNITS_index getindex() throws Exception
\r
103 return getindexAt(0);
\r
106 public void removeindexAt(int index) {
\r
107 removeDomChildAt(Attribute, null, "index", index);
\r
110 public void removeindex() {
\r
114 public org.w3c.dom.Node addindex(GL_MAX_TEXTURE_IMAGE_UNITS_index value) {
\r
115 if( value.isNull() )
\r
118 return appendDomChild(Attribute, null, "index", value.toString());
\r
121 public org.w3c.dom.Node addindex(String value) throws Exception {
\r
122 return addindex(new GL_MAX_TEXTURE_IMAGE_UNITS_index(value));
\r
125 public void insertindexAt(GL_MAX_TEXTURE_IMAGE_UNITS_index value, int index) {
\r
126 insertDomChildAt(Attribute, null, "index", index, value.toString());
\r
129 public void insertindexAt(String value, int index) throws Exception {
\r
130 insertindexAt(new GL_MAX_TEXTURE_IMAGE_UNITS_index(value), index);
\r
133 public void replaceindexAt(GL_MAX_TEXTURE_IMAGE_UNITS_index value, int index) {
\r
134 replaceDomChildAt(Attribute, null, "index", index, value.toString());
\r
137 public void replaceindexAt(String value, int index) throws Exception {
\r
138 replaceindexAt(new GL_MAX_TEXTURE_IMAGE_UNITS_index(value), index);
\r
141 public static int getvalue2MinCount() {
\r
145 public static int getvalue2MaxCount() {
\r
149 public int getvalue2Count() {
\r
150 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "value");
\r
153 public boolean hasvalue2() {
\r
154 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "value");
\r
157 public gl_sampler1D newvalue2() {
\r
158 return new gl_sampler1D(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "value"));
\r
161 public gl_sampler1D getvalue2At(int index) throws Exception {
\r
162 return new gl_sampler1D(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "value", index));
\r
165 public org.w3c.dom.Node getStartingvalue2Cursor() throws Exception {
\r
166 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "value" );
\r
169 public org.w3c.dom.Node getAdvancedvalue2Cursor( org.w3c.dom.Node curNode ) throws Exception {
\r
170 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "value", curNode );
\r
173 public gl_sampler1D getvalue2ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
174 if( curNode == null )
\r
175 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
177 return new gl_sampler1D(curNode);
\r
180 public gl_sampler1D getvalue2() throws Exception
\r
182 return getvalue2At(0);
\r
185 public void removevalue2At(int index) {
\r
186 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "value", index);
\r
189 public void removevalue2() {
\r
193 public org.w3c.dom.Node addvalue2(gl_sampler1D value) {
\r
194 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "value", value);
\r
197 public void insertvalue2At(gl_sampler1D value, int index) {
\r
198 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "value", index, value);
\r
201 public void replacevalue2At(gl_sampler1D value, int index) {
\r
202 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "value", index, value);
\r
205 public static int getparamMinCount() {
\r
209 public static int getparamMaxCount() {
\r
213 public int getparamCount() {
\r
214 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "param");
\r
217 public boolean hasparam() {
\r
218 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "param");
\r
221 public SchemaNCName newparam() {
\r
222 return new SchemaNCName();
\r
225 public SchemaNCName getparamAt(int index) throws Exception {
\r
226 return new SchemaNCName(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "param", index)));
\r
229 public org.w3c.dom.Node getStartingparamCursor() throws Exception {
\r
230 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "param" );
\r
233 public org.w3c.dom.Node getAdvancedparamCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
234 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "param", curNode );
\r
237 public SchemaNCName getparamValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
238 if( curNode == null )
\r
239 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
241 return new SchemaNCName(getDomNodeValue(curNode));
\r
244 public SchemaNCName getparam() throws Exception
\r
246 return getparamAt(0);
\r
249 public void removeparamAt(int index) {
\r
250 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "param", index);
\r
253 public void removeparam() {
\r
257 public org.w3c.dom.Node addparam(SchemaNCName value) {
\r
258 if( value.isNull() )
\r
261 return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "param", value.toString());
\r
264 public org.w3c.dom.Node addparam(String value) throws Exception {
\r
265 return addparam(new SchemaNCName(value));
\r
268 public void insertparamAt(SchemaNCName value, int index) {
\r
269 insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "param", index, value.toString());
\r
272 public void insertparamAt(String value, int index) throws Exception {
\r
273 insertparamAt(new SchemaNCName(value), index);
\r
276 public void replaceparamAt(SchemaNCName value, int index) {
\r
277 replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "param", index, value.toString());
\r
280 public void replaceparamAt(String value, int index) throws Exception {
\r
281 replaceparamAt(new SchemaNCName(value), index);
\r