OSDN Git Service

dc8aac2217d5fa3b505830dfb23f0b5064ab6576
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / textureRECT_enableType.java
1 /**\r
2  * textureRECT_enableType.java\r
3  *\r
4  * This file was generated by XMLSpy 2007sp2 Enterprise Edition.\r
5  *\r
6  * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE\r
7  * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.\r
8  *\r
9  * Refer to the XMLSpy Documentation for further details.\r
10  * http://www.altova.com/xmlspy\r
11  */\r
12 \r
13 \r
14 package com.jmex.model.collada.schema;\r
15 \r
16 import com.jmex.xml.types.SchemaNCName;\r
17 \r
18 public class textureRECT_enableType extends com.jmex.xml.xml.Node {\r
19 \r
20         public textureRECT_enableType(textureRECT_enableType node) {\r
21                 super(node);\r
22         }\r
23 \r
24         public textureRECT_enableType(org.w3c.dom.Node node) {\r
25                 super(node);\r
26         }\r
27 \r
28         public textureRECT_enableType(org.w3c.dom.Document doc) {\r
29                 super(doc);\r
30         }\r
31 \r
32         public textureRECT_enableType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {\r
33                 super(doc, namespaceURI, prefix, name);\r
34         }\r
35         \r
36         public void adjustPrefix() {\r
37                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "value" );\r
38                                 tmpNode != null;\r
39                                 tmpNode = getDomNextChild( Attribute, null, "value", tmpNode )\r
40                         ) {\r
41                         internalAdjustPrefix(tmpNode, false);\r
42                 }\r
43                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "param" );\r
44                                 tmpNode != null;\r
45                                 tmpNode = getDomNextChild( Attribute, null, "param", tmpNode )\r
46                         ) {\r
47                         internalAdjustPrefix(tmpNode, false);\r
48                 }\r
49                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "index" );\r
50                                 tmpNode != null;\r
51                                 tmpNode = getDomNextChild( Attribute, null, "index", tmpNode )\r
52                         ) {\r
53                         internalAdjustPrefix(tmpNode, false);\r
54                 }\r
55         }\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", "textureRECT_enable");\r
59         }\r
60 \r
61         public static int getvalue2MinCount() {\r
62                 return 0;\r
63         }\r
64 \r
65         public static int getvalue2MaxCount() {\r
66                 return 1;\r
67         }\r
68 \r
69         public int getvalue2Count() {\r
70                 return getDomChildCount(Attribute, null, "value");\r
71         }\r
72 \r
73         public boolean hasvalue2() {\r
74                 return hasDomChild(Attribute, null, "value");\r
75         }\r
76 \r
77         public bool newvalue2() {\r
78                 return new bool();\r
79         }\r
80 \r
81         public bool getvalue2At(int index) throws Exception {\r
82                 return new bool(getDomNodeValue(getDomChildAt(Attribute, null, "value", index)));\r
83         }\r
84 \r
85         public org.w3c.dom.Node getStartingvalue2Cursor() throws Exception {\r
86                 return getDomFirstChild(Attribute, null, "value" );\r
87         }\r
88 \r
89         public org.w3c.dom.Node getAdvancedvalue2Cursor( org.w3c.dom.Node curNode ) throws Exception {\r
90                 return getDomNextChild( Attribute, null, "value", curNode );\r
91         }\r
92 \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
96                 else\r
97                         return new bool(getDomNodeValue(curNode));\r
98         }\r
99 \r
100         public bool getvalue2() throws Exception \r
101  {\r
102                 return getvalue2At(0);\r
103         }\r
104 \r
105         public void removevalue2At(int index) {\r
106                 removeDomChildAt(Attribute, null, "value", index);\r
107         }\r
108 \r
109         public void removevalue2() {\r
110                 removevalue2At(0);\r
111         }\r
112 \r
113         public org.w3c.dom.Node addvalue2(bool value) {\r
114                 if( value.isNull() )\r
115                         return null;\r
116 \r
117                 return  appendDomChild(Attribute, null, "value", value.toString());\r
118         }\r
119 \r
120         public org.w3c.dom.Node addvalue2(String value) throws Exception {\r
121                 return addvalue2(new bool(value));\r
122         }\r
123 \r
124         public void insertvalue2At(bool value, int index) {\r
125                 insertDomChildAt(Attribute, null, "value", index, value.toString());\r
126         }\r
127 \r
128         public void insertvalue2At(String value, int index) throws Exception {\r
129                 insertvalue2At(new bool(value), index);\r
130         }\r
131 \r
132         public void replacevalue2At(bool value, int index) {\r
133                 replaceDomChildAt(Attribute, null, "value", index, value.toString());\r
134         }\r
135 \r
136         public void replacevalue2At(String value, int index) throws Exception {\r
137                 replacevalue2At(new bool(value), index);\r
138         }\r
139 \r
140         public static int getparamMinCount() {\r
141                 return 0;\r
142         }\r
143 \r
144         public static int getparamMaxCount() {\r
145                 return 1;\r
146         }\r
147 \r
148         public int getparamCount() {\r
149                 return getDomChildCount(Attribute, null, "param");\r
150         }\r
151 \r
152         public boolean hasparam() {\r
153                 return hasDomChild(Attribute, null, "param");\r
154         }\r
155 \r
156         public SchemaNCName newparam() {\r
157                 return new SchemaNCName();\r
158         }\r
159 \r
160         public SchemaNCName getparamAt(int index) throws Exception {\r
161                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "param", index)));\r
162         }\r
163 \r
164         public org.w3c.dom.Node getStartingparamCursor() throws Exception {\r
165                 return getDomFirstChild(Attribute, null, "param" );\r
166         }\r
167 \r
168         public org.w3c.dom.Node getAdvancedparamCursor( org.w3c.dom.Node curNode ) throws Exception {\r
169                 return getDomNextChild( Attribute, null, "param", curNode );\r
170         }\r
171 \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
175                 else\r
176                         return new SchemaNCName(getDomNodeValue(curNode));\r
177         }\r
178 \r
179         public SchemaNCName getparam() throws Exception \r
180  {\r
181                 return getparamAt(0);\r
182         }\r
183 \r
184         public void removeparamAt(int index) {\r
185                 removeDomChildAt(Attribute, null, "param", index);\r
186         }\r
187 \r
188         public void removeparam() {\r
189                 removeparamAt(0);\r
190         }\r
191 \r
192         public org.w3c.dom.Node addparam(SchemaNCName value) {\r
193                 if( value.isNull() )\r
194                         return null;\r
195 \r
196                 return  appendDomChild(Attribute, null, "param", value.toString());\r
197         }\r
198 \r
199         public org.w3c.dom.Node addparam(String value) throws Exception {\r
200                 return addparam(new SchemaNCName(value));\r
201         }\r
202 \r
203         public void insertparamAt(SchemaNCName value, int index) {\r
204                 insertDomChildAt(Attribute, null, "param", index, value.toString());\r
205         }\r
206 \r
207         public void insertparamAt(String value, int index) throws Exception {\r
208                 insertparamAt(new SchemaNCName(value), index);\r
209         }\r
210 \r
211         public void replaceparamAt(SchemaNCName value, int index) {\r
212                 replaceDomChildAt(Attribute, null, "param", index, value.toString());\r
213         }\r
214 \r
215         public void replaceparamAt(String value, int index) throws Exception {\r
216                 replaceparamAt(new SchemaNCName(value), index);\r
217         }\r
218 \r
219         public static int getindexMinCount() {\r
220                 return 0;\r
221         }\r
222 \r
223         public static int getindexMaxCount() {\r
224                 return 1;\r
225         }\r
226 \r
227         public int getindexCount() {\r
228                 return getDomChildCount(Attribute, null, "index");\r
229         }\r
230 \r
231         public boolean hasindex() {\r
232                 return hasDomChild(Attribute, null, "index");\r
233         }\r
234 \r
235         public GL_MAX_TEXTURE_IMAGE_UNITS_index newindex() {\r
236                 return new GL_MAX_TEXTURE_IMAGE_UNITS_index();\r
237         }\r
238 \r
239         public GL_MAX_TEXTURE_IMAGE_UNITS_index getindexAt(int index) throws Exception {\r
240                 return new GL_MAX_TEXTURE_IMAGE_UNITS_index(getDomNodeValue(getDomChildAt(Attribute, null, "index", index)));\r
241         }\r
242 \r
243         public org.w3c.dom.Node getStartingindexCursor() throws Exception {\r
244                 return getDomFirstChild(Attribute, null, "index" );\r
245         }\r
246 \r
247         public org.w3c.dom.Node getAdvancedindexCursor( org.w3c.dom.Node curNode ) throws Exception {\r
248                 return getDomNextChild( Attribute, null, "index", curNode );\r
249         }\r
250 \r
251         public GL_MAX_TEXTURE_IMAGE_UNITS_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
254                 else\r
255                         return new GL_MAX_TEXTURE_IMAGE_UNITS_index(getDomNodeValue(curNode));\r
256         }\r
257 \r
258         public GL_MAX_TEXTURE_IMAGE_UNITS_index getindex() throws Exception \r
259  {\r
260                 return getindexAt(0);\r
261         }\r
262 \r
263         public void removeindexAt(int index) {\r
264                 removeDomChildAt(Attribute, null, "index", index);\r
265         }\r
266 \r
267         public void removeindex() {\r
268                 removeindexAt(0);\r
269         }\r
270 \r
271         public org.w3c.dom.Node addindex(GL_MAX_TEXTURE_IMAGE_UNITS_index value) {\r
272                 if( value.isNull() )\r
273                         return null;\r
274 \r
275                 return  appendDomChild(Attribute, null, "index", value.toString());\r
276         }\r
277 \r
278         public org.w3c.dom.Node addindex(String value) throws Exception {\r
279                 return addindex(new GL_MAX_TEXTURE_IMAGE_UNITS_index(value));\r
280         }\r
281 \r
282         public void insertindexAt(GL_MAX_TEXTURE_IMAGE_UNITS_index value, int index) {\r
283                 insertDomChildAt(Attribute, null, "index", index, value.toString());\r
284         }\r
285 \r
286         public void insertindexAt(String value, int index) throws Exception {\r
287                 insertindexAt(new GL_MAX_TEXTURE_IMAGE_UNITS_index(value), index);\r
288         }\r
289 \r
290         public void replaceindexAt(GL_MAX_TEXTURE_IMAGE_UNITS_index value, int index) {\r
291                 replaceDomChildAt(Attribute, null, "index", index, value.toString());\r
292         }\r
293 \r
294         public void replaceindexAt(String value, int index) throws Exception {\r
295                 replaceindexAt(new GL_MAX_TEXTURE_IMAGE_UNITS_index(value), index);\r
296         }\r
297 \r
298 }\r