OSDN Git Service

aaf663798cb0726d70a7f2d02b8317e5822753b6
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / technique_commonType4.java
1 /**\r
2  * technique_commonType4.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 \r
17 public class technique_commonType4 extends com.jmex.xml.xml.Node {\r
18 \r
19         public technique_commonType4(technique_commonType4 node) {\r
20                 super(node);\r
21         }\r
22 \r
23         public technique_commonType4(org.w3c.dom.Node node) {\r
24                 super(node);\r
25         }\r
26 \r
27         public technique_commonType4(org.w3c.dom.Document doc) {\r
28                 super(doc);\r
29         }\r
30 \r
31         public technique_commonType4(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {\r
32                 super(doc, namespaceURI, prefix, name);\r
33         }\r
34         \r
35         public void adjustPrefix() {\r
36                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient" );\r
37                                 tmpNode != null;\r
38                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient", tmpNode )\r
39                         ) {\r
40                         internalAdjustPrefix(tmpNode, true);\r
41                         new ambientType(tmpNode).adjustPrefix();\r
42                 }\r
43                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "directional" );\r
44                                 tmpNode != null;\r
45                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "directional", tmpNode )\r
46                         ) {\r
47                         internalAdjustPrefix(tmpNode, true);\r
48                         new directionalType(tmpNode).adjustPrefix();\r
49                 }\r
50                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "point" );\r
51                                 tmpNode != null;\r
52                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "point", tmpNode )\r
53                         ) {\r
54                         internalAdjustPrefix(tmpNode, true);\r
55                         new pointType(tmpNode).adjustPrefix();\r
56                 }\r
57                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "spot" );\r
58                                 tmpNode != null;\r
59                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "spot", tmpNode )\r
60                         ) {\r
61                         internalAdjustPrefix(tmpNode, true);\r
62                         new spotType(tmpNode).adjustPrefix();\r
63                 }\r
64         }\r
65         public void setXsiType() {\r
66                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;\r
67                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "technique_common");\r
68         }\r
69 \r
70         public static int getambientMinCount() {\r
71                 return 1;\r
72         }\r
73 \r
74         public static int getambientMaxCount() {\r
75                 return 1;\r
76         }\r
77 \r
78         public int getambientCount() {\r
79                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient");\r
80         }\r
81 \r
82         public boolean hasambient() {\r
83                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient");\r
84         }\r
85 \r
86         public ambientType newambient() {\r
87                 return new ambientType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "ambient"));\r
88         }\r
89 \r
90         public ambientType getambientAt(int index) throws Exception {\r
91                 return new ambientType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient", index));\r
92         }\r
93 \r
94         public org.w3c.dom.Node getStartingambientCursor() throws Exception {\r
95                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient" );\r
96         }\r
97 \r
98         public org.w3c.dom.Node getAdvancedambientCursor( org.w3c.dom.Node curNode ) throws Exception {\r
99                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient", curNode );\r
100         }\r
101 \r
102         public ambientType getambientValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
103                 if( curNode == null )\r
104                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
105                 else\r
106                         return new ambientType(curNode);\r
107         }\r
108 \r
109         public ambientType getambient() throws Exception \r
110  {\r
111                 return getambientAt(0);\r
112         }\r
113 \r
114         public void removeambientAt(int index) {\r
115                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient", index);\r
116         }\r
117 \r
118         public void removeambient() {\r
119                 removeambientAt(0);\r
120         }\r
121 \r
122         public org.w3c.dom.Node addambient(ambientType value) {\r
123                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "ambient", value);\r
124         }\r
125 \r
126         public void insertambientAt(ambientType value, int index) {\r
127                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "ambient", index, value);\r
128         }\r
129 \r
130         public void replaceambientAt(ambientType value, int index) {\r
131                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "ambient", index, value);\r
132         }\r
133 \r
134         public static int getdirectionalMinCount() {\r
135                 return 1;\r
136         }\r
137 \r
138         public static int getdirectionalMaxCount() {\r
139                 return 1;\r
140         }\r
141 \r
142         public int getdirectionalCount() {\r
143                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "directional");\r
144         }\r
145 \r
146         public boolean hasdirectional() {\r
147                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "directional");\r
148         }\r
149 \r
150         public directionalType newdirectional() {\r
151                 return new directionalType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "directional"));\r
152         }\r
153 \r
154         public directionalType getdirectionalAt(int index) throws Exception {\r
155                 return new directionalType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "directional", index));\r
156         }\r
157 \r
158         public org.w3c.dom.Node getStartingdirectionalCursor() throws Exception {\r
159                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "directional" );\r
160         }\r
161 \r
162         public org.w3c.dom.Node getAdvanceddirectionalCursor( org.w3c.dom.Node curNode ) throws Exception {\r
163                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "directional", curNode );\r
164         }\r
165 \r
166         public directionalType getdirectionalValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
167                 if( curNode == null )\r
168                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
169                 else\r
170                         return new directionalType(curNode);\r
171         }\r
172 \r
173         public directionalType getdirectional() throws Exception \r
174  {\r
175                 return getdirectionalAt(0);\r
176         }\r
177 \r
178         public void removedirectionalAt(int index) {\r
179                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "directional", index);\r
180         }\r
181 \r
182         public void removedirectional() {\r
183                 removedirectionalAt(0);\r
184         }\r
185 \r
186         public org.w3c.dom.Node adddirectional(directionalType value) {\r
187                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "directional", value);\r
188         }\r
189 \r
190         public void insertdirectionalAt(directionalType value, int index) {\r
191                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "directional", index, value);\r
192         }\r
193 \r
194         public void replacedirectionalAt(directionalType value, int index) {\r
195                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "directional", index, value);\r
196         }\r
197 \r
198         public static int getpointMinCount() {\r
199                 return 1;\r
200         }\r
201 \r
202         public static int getpointMaxCount() {\r
203                 return 1;\r
204         }\r
205 \r
206         public int getpointCount() {\r
207                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "point");\r
208         }\r
209 \r
210         public boolean haspoint() {\r
211                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "point");\r
212         }\r
213 \r
214         public pointType newpoint() {\r
215                 return new pointType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "point"));\r
216         }\r
217 \r
218         public pointType getpointAt(int index) throws Exception {\r
219                 return new pointType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "point", index));\r
220         }\r
221 \r
222         public org.w3c.dom.Node getStartingpointCursor() throws Exception {\r
223                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "point" );\r
224         }\r
225 \r
226         public org.w3c.dom.Node getAdvancedpointCursor( org.w3c.dom.Node curNode ) throws Exception {\r
227                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "point", curNode );\r
228         }\r
229 \r
230         public pointType getpointValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
231                 if( curNode == null )\r
232                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
233                 else\r
234                         return new pointType(curNode);\r
235         }\r
236 \r
237         public pointType getpoint() throws Exception \r
238  {\r
239                 return getpointAt(0);\r
240         }\r
241 \r
242         public void removepointAt(int index) {\r
243                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "point", index);\r
244         }\r
245 \r
246         public void removepoint() {\r
247                 removepointAt(0);\r
248         }\r
249 \r
250         public org.w3c.dom.Node addpoint(pointType value) {\r
251                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "point", value);\r
252         }\r
253 \r
254         public void insertpointAt(pointType value, int index) {\r
255                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "point", index, value);\r
256         }\r
257 \r
258         public void replacepointAt(pointType value, int index) {\r
259                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "point", index, value);\r
260         }\r
261 \r
262         public static int getspotMinCount() {\r
263                 return 1;\r
264         }\r
265 \r
266         public static int getspotMaxCount() {\r
267                 return 1;\r
268         }\r
269 \r
270         public int getspotCount() {\r
271                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "spot");\r
272         }\r
273 \r
274         public boolean hasspot() {\r
275                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "spot");\r
276         }\r
277 \r
278         public spotType newspot() {\r
279                 return new spotType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "spot"));\r
280         }\r
281 \r
282         public spotType getspotAt(int index) throws Exception {\r
283                 return new spotType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "spot", index));\r
284         }\r
285 \r
286         public org.w3c.dom.Node getStartingspotCursor() throws Exception {\r
287                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "spot" );\r
288         }\r
289 \r
290         public org.w3c.dom.Node getAdvancedspotCursor( org.w3c.dom.Node curNode ) throws Exception {\r
291                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "spot", curNode );\r
292         }\r
293 \r
294         public spotType getspotValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
295                 if( curNode == null )\r
296                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
297                 else\r
298                         return new spotType(curNode);\r
299         }\r
300 \r
301         public spotType getspot() throws Exception \r
302  {\r
303                 return getspotAt(0);\r
304         }\r
305 \r
306         public void removespotAt(int index) {\r
307                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "spot", index);\r
308         }\r
309 \r
310         public void removespot() {\r
311                 removespotAt(0);\r
312         }\r
313 \r
314         public org.w3c.dom.Node addspot(spotType value) {\r
315                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "spot", value);\r
316         }\r
317 \r
318         public void insertspotAt(spotType value, int index) {\r
319                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "spot", index, value);\r
320         }\r
321 \r
322         public void replacespotAt(spotType value, int index) {\r
323                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "spot", index, value);\r
324         }\r
325 \r
326 }\r