2 * light_enableType2.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 light_enableType2 extends com.jmex.xml.xml.Node {
\r
20 public light_enableType2(light_enableType2 node) {
\r
24 public light_enableType2(org.w3c.dom.Node node) {
\r
28 public light_enableType2(org.w3c.dom.Document doc) {
\r
32 public light_enableType2(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, "value" );
\r
39 tmpNode = getDomNextChild( Attribute, null, "value", tmpNode )
\r
41 internalAdjustPrefix(tmpNode, false);
\r
43 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "param" );
\r
45 tmpNode = getDomNextChild( Attribute, null, "param", tmpNode )
\r
47 internalAdjustPrefix(tmpNode, false);
\r
49 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "index" );
\r
51 tmpNode = getDomNextChild( Attribute, null, "index", tmpNode )
\r
53 internalAdjustPrefix(tmpNode, false);
\r
56 public void setXsiType() {
\r
57 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
\r
58 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "light_enable");
\r
61 public static int getvalue2MinCount() {
\r
65 public static int getvalue2MaxCount() {
\r
69 public int getvalue2Count() {
\r
70 return getDomChildCount(Attribute, null, "value");
\r
73 public boolean hasvalue2() {
\r
74 return hasDomChild(Attribute, null, "value");
\r
77 public bool newvalue2() {
\r
81 public bool getvalue2At(int index) throws Exception {
\r
82 return new bool(getDomNodeValue(getDomChildAt(Attribute, null, "value", index)));
\r
85 public org.w3c.dom.Node getStartingvalue2Cursor() throws Exception {
\r
86 return getDomFirstChild(Attribute, null, "value" );
\r
89 public org.w3c.dom.Node getAdvancedvalue2Cursor( org.w3c.dom.Node curNode ) throws Exception {
\r
90 return getDomNextChild( Attribute, null, "value", curNode );
\r
93 public bool getvalue2ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
94 if( curNode == null )
\r
95 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
97 return new bool(getDomNodeValue(curNode));
\r
100 public bool getvalue2() throws Exception
\r
102 return getvalue2At(0);
\r
105 public void removevalue2At(int index) {
\r
106 removeDomChildAt(Attribute, null, "value", index);
\r
109 public void removevalue2() {
\r
113 public org.w3c.dom.Node addvalue2(bool value) {
\r
114 if( value.isNull() )
\r
117 return appendDomChild(Attribute, null, "value", value.toString());
\r
120 public org.w3c.dom.Node addvalue2(String value) throws Exception {
\r
121 return addvalue2(new bool(value));
\r
124 public void insertvalue2At(bool value, int index) {
\r
125 insertDomChildAt(Attribute, null, "value", index, value.toString());
\r
128 public void insertvalue2At(String value, int index) throws Exception {
\r
129 insertvalue2At(new bool(value), index);
\r
132 public void replacevalue2At(bool value, int index) {
\r
133 replaceDomChildAt(Attribute, null, "value", index, value.toString());
\r
136 public void replacevalue2At(String value, int index) throws Exception {
\r
137 replacevalue2At(new bool(value), index);
\r
140 public static int getparamMinCount() {
\r
144 public static int getparamMaxCount() {
\r
148 public int getparamCount() {
\r
149 return getDomChildCount(Attribute, null, "param");
\r
152 public boolean hasparam() {
\r
153 return hasDomChild(Attribute, null, "param");
\r
156 public SchemaNCName newparam() {
\r
157 return new SchemaNCName();
\r
160 public SchemaNCName getparamAt(int index) throws Exception {
\r
161 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "param", index)));
\r
164 public org.w3c.dom.Node getStartingparamCursor() throws Exception {
\r
165 return getDomFirstChild(Attribute, null, "param" );
\r
168 public org.w3c.dom.Node getAdvancedparamCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
169 return getDomNextChild( Attribute, null, "param", curNode );
\r
172 public SchemaNCName getparamValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
173 if( curNode == null )
\r
174 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
176 return new SchemaNCName(getDomNodeValue(curNode));
\r
179 public SchemaNCName getparam() throws Exception
\r
181 return getparamAt(0);
\r
184 public void removeparamAt(int index) {
\r
185 removeDomChildAt(Attribute, null, "param", index);
\r
188 public void removeparam() {
\r
192 public org.w3c.dom.Node addparam(SchemaNCName value) {
\r
193 if( value.isNull() )
\r
196 return appendDomChild(Attribute, null, "param", value.toString());
\r
199 public org.w3c.dom.Node addparam(String value) throws Exception {
\r
200 return addparam(new SchemaNCName(value));
\r
203 public void insertparamAt(SchemaNCName value, int index) {
\r
204 insertDomChildAt(Attribute, null, "param", index, value.toString());
\r
207 public void insertparamAt(String value, int index) throws Exception {
\r
208 insertparamAt(new SchemaNCName(value), index);
\r
211 public void replaceparamAt(SchemaNCName value, int index) {
\r
212 replaceDomChildAt(Attribute, null, "param", index, value.toString());
\r
215 public void replaceparamAt(String value, int index) throws Exception {
\r
216 replaceparamAt(new SchemaNCName(value), index);
\r
219 public static int getindexMinCount() {
\r
223 public static int getindexMaxCount() {
\r
227 public int getindexCount() {
\r
228 return getDomChildCount(Attribute, null, "index");
\r
231 public boolean hasindex() {
\r
232 return hasDomChild(Attribute, null, "index");
\r
235 public GLES_MAX_LIGHTS_index newindex() {
\r
236 return new GLES_MAX_LIGHTS_index();
\r
239 public GLES_MAX_LIGHTS_index getindexAt(int index) throws Exception {
\r
240 return new GLES_MAX_LIGHTS_index(getDomNodeValue(getDomChildAt(Attribute, null, "index", index)));
\r
243 public org.w3c.dom.Node getStartingindexCursor() throws Exception {
\r
244 return getDomFirstChild(Attribute, null, "index" );
\r
247 public org.w3c.dom.Node getAdvancedindexCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
248 return getDomNextChild( Attribute, null, "index", curNode );
\r
251 public GLES_MAX_LIGHTS_index getindexValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
252 if( curNode == null )
\r
253 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
255 return new GLES_MAX_LIGHTS_index(getDomNodeValue(curNode));
\r
258 public GLES_MAX_LIGHTS_index getindex() throws Exception
\r
260 return getindexAt(0);
\r
263 public void removeindexAt(int index) {
\r
264 removeDomChildAt(Attribute, null, "index", index);
\r
267 public void removeindex() {
\r
271 public org.w3c.dom.Node addindex(GLES_MAX_LIGHTS_index value) {
\r
272 if( value.isNull() )
\r
275 return appendDomChild(Attribute, null, "index", value.toString());
\r
278 public org.w3c.dom.Node addindex(String value) throws Exception {
\r
279 return addindex(new GLES_MAX_LIGHTS_index(value));
\r
282 public void insertindexAt(GLES_MAX_LIGHTS_index value, int index) {
\r
283 insertDomChildAt(Attribute, null, "index", index, value.toString());
\r
286 public void insertindexAt(String value, int index) throws Exception {
\r
287 insertindexAt(new GLES_MAX_LIGHTS_index(value), index);
\r
290 public void replaceindexAt(GLES_MAX_LIGHTS_index value, int index) {
\r
291 replaceDomChildAt(Attribute, null, "index", index, value.toString());
\r
294 public void replaceindexAt(String value, int index) throws Exception {
\r
295 replaceindexAt(new GLES_MAX_LIGHTS_index(value), index);
\r