2 * gles_texcombiner_argumentAlpha_type.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_texcombiner_argumentAlpha_type extends com.jmex.xml.xml.Node {
\r
20 public gles_texcombiner_argumentAlpha_type(gles_texcombiner_argumentAlpha_type node) {
\r
24 public gles_texcombiner_argumentAlpha_type(org.w3c.dom.Node node) {
\r
28 public gles_texcombiner_argumentAlpha_type(org.w3c.dom.Document doc) {
\r
32 public gles_texcombiner_argumentAlpha_type(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, "source" );
\r
39 tmpNode = getDomNextChild( Attribute, null, "source", tmpNode )
\r
41 internalAdjustPrefix(tmpNode, false);
\r
43 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "operand" );
\r
45 tmpNode = getDomNextChild( Attribute, null, "operand", tmpNode )
\r
47 internalAdjustPrefix(tmpNode, false);
\r
49 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "unit" );
\r
51 tmpNode = getDomNextChild( Attribute, null, "unit", 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", "gles_texcombiner_argumentAlpha_type");
\r
61 public static int getsourceMinCount() {
\r
65 public static int getsourceMaxCount() {
\r
69 public int getsourceCount() {
\r
70 return getDomChildCount(Attribute, null, "source");
\r
73 public boolean hassource() {
\r
74 return hasDomChild(Attribute, null, "source");
\r
77 public gles_texcombiner_source_enums newsource() {
\r
78 return new gles_texcombiner_source_enums();
\r
81 public gles_texcombiner_source_enums getsourceAt(int index) throws Exception {
\r
82 return new gles_texcombiner_source_enums(getDomNodeValue(getDomChildAt(Attribute, null, "source", index)));
\r
85 public org.w3c.dom.Node getStartingsourceCursor() throws Exception {
\r
86 return getDomFirstChild(Attribute, null, "source" );
\r
89 public org.w3c.dom.Node getAdvancedsourceCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
90 return getDomNextChild( Attribute, null, "source", curNode );
\r
93 public gles_texcombiner_source_enums getsourceValueAtCursor( 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 gles_texcombiner_source_enums(getDomNodeValue(curNode));
\r
100 public gles_texcombiner_source_enums getsource() throws Exception
\r
102 return getsourceAt(0);
\r
105 public void removesourceAt(int index) {
\r
106 removeDomChildAt(Attribute, null, "source", index);
\r
109 public void removesource() {
\r
113 public org.w3c.dom.Node addsource(gles_texcombiner_source_enums value) {
\r
114 if( value.isNull() )
\r
117 return appendDomChild(Attribute, null, "source", value.toString());
\r
120 public org.w3c.dom.Node addsource(String value) throws Exception {
\r
121 return addsource(new gles_texcombiner_source_enums(value));
\r
124 public void insertsourceAt(gles_texcombiner_source_enums value, int index) {
\r
125 insertDomChildAt(Attribute, null, "source", index, value.toString());
\r
128 public void insertsourceAt(String value, int index) throws Exception {
\r
129 insertsourceAt(new gles_texcombiner_source_enums(value), index);
\r
132 public void replacesourceAt(gles_texcombiner_source_enums value, int index) {
\r
133 replaceDomChildAt(Attribute, null, "source", index, value.toString());
\r
136 public void replacesourceAt(String value, int index) throws Exception {
\r
137 replacesourceAt(new gles_texcombiner_source_enums(value), index);
\r
140 public static int getoperandMinCount() {
\r
144 public static int getoperandMaxCount() {
\r
148 public int getoperandCount() {
\r
149 return getDomChildCount(Attribute, null, "operand");
\r
152 public boolean hasoperand() {
\r
153 return hasDomChild(Attribute, null, "operand");
\r
156 public gles_texcombiner_operandAlpha_enums newoperand() {
\r
157 return new gles_texcombiner_operandAlpha_enums();
\r
160 public gles_texcombiner_operandAlpha_enums getoperandAt(int index) throws Exception {
\r
161 return new gles_texcombiner_operandAlpha_enums(getDomNodeValue(getDomChildAt(Attribute, null, "operand", index)));
\r
164 public org.w3c.dom.Node getStartingoperandCursor() throws Exception {
\r
165 return getDomFirstChild(Attribute, null, "operand" );
\r
168 public org.w3c.dom.Node getAdvancedoperandCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
169 return getDomNextChild( Attribute, null, "operand", curNode );
\r
172 public gles_texcombiner_operandAlpha_enums getoperandValueAtCursor( 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 gles_texcombiner_operandAlpha_enums(getDomNodeValue(curNode));
\r
179 public gles_texcombiner_operandAlpha_enums getoperand() throws Exception
\r
181 return getoperandAt(0);
\r
184 public void removeoperandAt(int index) {
\r
185 removeDomChildAt(Attribute, null, "operand", index);
\r
188 public void removeoperand() {
\r
189 removeoperandAt(0);
\r
192 public org.w3c.dom.Node addoperand(gles_texcombiner_operandAlpha_enums value) {
\r
193 if( value.isNull() )
\r
196 return appendDomChild(Attribute, null, "operand", value.toString());
\r
199 public org.w3c.dom.Node addoperand(String value) throws Exception {
\r
200 return addoperand(new gles_texcombiner_operandAlpha_enums(value));
\r
203 public void insertoperandAt(gles_texcombiner_operandAlpha_enums value, int index) {
\r
204 insertDomChildAt(Attribute, null, "operand", index, value.toString());
\r
207 public void insertoperandAt(String value, int index) throws Exception {
\r
208 insertoperandAt(new gles_texcombiner_operandAlpha_enums(value), index);
\r
211 public void replaceoperandAt(gles_texcombiner_operandAlpha_enums value, int index) {
\r
212 replaceDomChildAt(Attribute, null, "operand", index, value.toString());
\r
215 public void replaceoperandAt(String value, int index) throws Exception {
\r
216 replaceoperandAt(new gles_texcombiner_operandAlpha_enums(value), index);
\r
219 public static int getunitMinCount() {
\r
223 public static int getunitMaxCount() {
\r
227 public int getunitCount() {
\r
228 return getDomChildCount(Attribute, null, "unit");
\r
231 public boolean hasunit() {
\r
232 return hasDomChild(Attribute, null, "unit");
\r
235 public SchemaNCName newunit() {
\r
236 return new SchemaNCName();
\r
239 public SchemaNCName getunitAt(int index) throws Exception {
\r
240 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "unit", index)));
\r
243 public org.w3c.dom.Node getStartingunitCursor() throws Exception {
\r
244 return getDomFirstChild(Attribute, null, "unit" );
\r
247 public org.w3c.dom.Node getAdvancedunitCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
248 return getDomNextChild( Attribute, null, "unit", curNode );
\r
251 public SchemaNCName getunitValueAtCursor( 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 SchemaNCName(getDomNodeValue(curNode));
\r
258 public SchemaNCName getunit() throws Exception
\r
260 return getunitAt(0);
\r
263 public void removeunitAt(int index) {
\r
264 removeDomChildAt(Attribute, null, "unit", index);
\r
267 public void removeunit() {
\r
271 public org.w3c.dom.Node addunit(SchemaNCName value) {
\r
272 if( value.isNull() )
\r
275 return appendDomChild(Attribute, null, "unit", value.toString());
\r
278 public org.w3c.dom.Node addunit(String value) throws Exception {
\r
279 return addunit(new SchemaNCName(value));
\r
282 public void insertunitAt(SchemaNCName value, int index) {
\r
283 insertDomChildAt(Attribute, null, "unit", index, value.toString());
\r
286 public void insertunitAt(String value, int index) throws Exception {
\r
287 insertunitAt(new SchemaNCName(value), index);
\r
290 public void replaceunitAt(SchemaNCName value, int index) {
\r
291 replaceDomChildAt(Attribute, null, "unit", index, value.toString());
\r
294 public void replaceunitAt(String value, int index) throws Exception {
\r
295 replaceunitAt(new SchemaNCName(value), index);
\r