OSDN Git Service

b0b66c01b63ae48831c78592b1e353858cd4b190
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / texture1DType.java
1 /**\r
2  * texture1DType.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 texture1DType extends com.jmex.xml.xml.Node {\r
19 \r
20         public texture1DType(texture1DType node) {\r
21                 super(node);\r
22         }\r
23 \r
24         public texture1DType(org.w3c.dom.Node node) {\r
25                 super(node);\r
26         }\r
27 \r
28         public texture1DType(org.w3c.dom.Document doc) {\r
29                 super(doc);\r
30         }\r
31 \r
32         public texture1DType(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, "index" );\r
38                                 tmpNode != null;\r
39                                 tmpNode = getDomNextChild( Attribute, null, "index", tmpNode )\r
40                         ) {\r
41                         internalAdjustPrefix(tmpNode, false);\r
42                 }\r
43                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "value" );\r
44                                 tmpNode != null;\r
45                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "value", tmpNode )\r
46                         ) {\r
47                         internalAdjustPrefix(tmpNode, true);\r
48                         new gl_sampler1D(tmpNode).adjustPrefix();\r
49                 }\r
50                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "param" );\r
51                                 tmpNode != null;\r
52                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "param", tmpNode )\r
53                         ) {\r
54                         internalAdjustPrefix(tmpNode, true);\r
55                 }\r
56         }\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
60         }\r
61 \r
62         public static int getindexMinCount() {\r
63                 return 1;\r
64         }\r
65 \r
66         public static int getindexMaxCount() {\r
67                 return 1;\r
68         }\r
69 \r
70         public int getindexCount() {\r
71                 return getDomChildCount(Attribute, null, "index");\r
72         }\r
73 \r
74         public boolean hasindex() {\r
75                 return hasDomChild(Attribute, null, "index");\r
76         }\r
77 \r
78         public GL_MAX_TEXTURE_IMAGE_UNITS_index newindex() {\r
79                 return new GL_MAX_TEXTURE_IMAGE_UNITS_index();\r
80         }\r
81 \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
84         }\r
85 \r
86         public org.w3c.dom.Node getStartingindexCursor() throws Exception {\r
87                 return getDomFirstChild(Attribute, null, "index" );\r
88         }\r
89 \r
90         public org.w3c.dom.Node getAdvancedindexCursor( org.w3c.dom.Node curNode ) throws Exception {\r
91                 return getDomNextChild( Attribute, null, "index", curNode );\r
92         }\r
93 \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
97                 else\r
98                         return new GL_MAX_TEXTURE_IMAGE_UNITS_index(getDomNodeValue(curNode));\r
99         }\r
100 \r
101         public GL_MAX_TEXTURE_IMAGE_UNITS_index getindex() throws Exception \r
102  {\r
103                 return getindexAt(0);\r
104         }\r
105 \r
106         public void removeindexAt(int index) {\r
107                 removeDomChildAt(Attribute, null, "index", index);\r
108         }\r
109 \r
110         public void removeindex() {\r
111                 removeindexAt(0);\r
112         }\r
113 \r
114         public org.w3c.dom.Node addindex(GL_MAX_TEXTURE_IMAGE_UNITS_index value) {\r
115                 if( value.isNull() )\r
116                         return null;\r
117 \r
118                 return  appendDomChild(Attribute, null, "index", value.toString());\r
119         }\r
120 \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
123         }\r
124 \r
125         public void insertindexAt(GL_MAX_TEXTURE_IMAGE_UNITS_index value, int index) {\r
126                 insertDomChildAt(Attribute, null, "index", index, value.toString());\r
127         }\r
128 \r
129         public void insertindexAt(String value, int index) throws Exception {\r
130                 insertindexAt(new GL_MAX_TEXTURE_IMAGE_UNITS_index(value), index);\r
131         }\r
132 \r
133         public void replaceindexAt(GL_MAX_TEXTURE_IMAGE_UNITS_index value, int index) {\r
134                 replaceDomChildAt(Attribute, null, "index", index, value.toString());\r
135         }\r
136 \r
137         public void replaceindexAt(String value, int index) throws Exception {\r
138                 replaceindexAt(new GL_MAX_TEXTURE_IMAGE_UNITS_index(value), index);\r
139         }\r
140 \r
141         public static int getvalue2MinCount() {\r
142                 return 1;\r
143         }\r
144 \r
145         public static int getvalue2MaxCount() {\r
146                 return 1;\r
147         }\r
148 \r
149         public int getvalue2Count() {\r
150                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "value");\r
151         }\r
152 \r
153         public boolean hasvalue2() {\r
154                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "value");\r
155         }\r
156 \r
157         public gl_sampler1D newvalue2() {\r
158                 return new gl_sampler1D(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "value"));\r
159         }\r
160 \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
163         }\r
164 \r
165         public org.w3c.dom.Node getStartingvalue2Cursor() throws Exception {\r
166                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "value" );\r
167         }\r
168 \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
171         }\r
172 \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
176                 else\r
177                         return new gl_sampler1D(curNode);\r
178         }\r
179 \r
180         public gl_sampler1D getvalue2() throws Exception \r
181  {\r
182                 return getvalue2At(0);\r
183         }\r
184 \r
185         public void removevalue2At(int index) {\r
186                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "value", index);\r
187         }\r
188 \r
189         public void removevalue2() {\r
190                 removevalue2At(0);\r
191         }\r
192 \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
195         }\r
196 \r
197         public void insertvalue2At(gl_sampler1D value, int index) {\r
198                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "value", index, value);\r
199         }\r
200 \r
201         public void replacevalue2At(gl_sampler1D value, int index) {\r
202                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "value", index, value);\r
203         }\r
204 \r
205         public static int getparamMinCount() {\r
206                 return 1;\r
207         }\r
208 \r
209         public static int getparamMaxCount() {\r
210                 return 1;\r
211         }\r
212 \r
213         public int getparamCount() {\r
214                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "param");\r
215         }\r
216 \r
217         public boolean hasparam() {\r
218                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "param");\r
219         }\r
220 \r
221         public SchemaNCName newparam() {\r
222                 return new SchemaNCName();\r
223         }\r
224 \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
227         }\r
228 \r
229         public org.w3c.dom.Node getStartingparamCursor() throws Exception {\r
230                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "param" );\r
231         }\r
232 \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
235         }\r
236 \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
240                 else\r
241                         return new SchemaNCName(getDomNodeValue(curNode));\r
242         }\r
243 \r
244         public SchemaNCName getparam() throws Exception \r
245  {\r
246                 return getparamAt(0);\r
247         }\r
248 \r
249         public void removeparamAt(int index) {\r
250                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "param", index);\r
251         }\r
252 \r
253         public void removeparam() {\r
254                 removeparamAt(0);\r
255         }\r
256 \r
257         public org.w3c.dom.Node addparam(SchemaNCName value) {\r
258                 if( value.isNull() )\r
259                         return null;\r
260 \r
261                 return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "param", value.toString());\r
262         }\r
263 \r
264         public org.w3c.dom.Node addparam(String value) throws Exception {\r
265                 return addparam(new SchemaNCName(value));\r
266         }\r
267 \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
270         }\r
271 \r
272         public void insertparamAt(String value, int index) throws Exception {\r
273                 insertparamAt(new SchemaNCName(value), index);\r
274         }\r
275 \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
278         }\r
279 \r
280         public void replaceparamAt(String value, int index) throws Exception {\r
281                 replaceparamAt(new SchemaNCName(value), index);\r
282         }\r
283 \r
284 }\r