OSDN Git Service

4ae396442f0e62133ac574f4fd8821dfc497f08f
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / splineType.java
1 /**\r
2  * splineType.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 splineType extends com.jmex.xml.xml.Node {\r
18 \r
19         public splineType(splineType node) {\r
20                 super(node);\r
21         }\r
22 \r
23         public splineType(org.w3c.dom.Node node) {\r
24                 super(node);\r
25         }\r
26 \r
27         public splineType(org.w3c.dom.Document doc) {\r
28                 super(doc);\r
29         }\r
30 \r
31         public splineType(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( Attribute, null, "closed" );\r
37                                 tmpNode != null;\r
38                                 tmpNode = getDomNextChild( Attribute, null, "closed", tmpNode )\r
39                         ) {\r
40                         internalAdjustPrefix(tmpNode, false);\r
41                 }\r
42                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "source" );\r
43                                 tmpNode != null;\r
44                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "source", tmpNode )\r
45                         ) {\r
46                         internalAdjustPrefix(tmpNode, true);\r
47                         new sourceType(tmpNode).adjustPrefix();\r
48                 }\r
49                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices" );\r
50                                 tmpNode != null;\r
51                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices", tmpNode )\r
52                         ) {\r
53                         internalAdjustPrefix(tmpNode, true);\r
54                         new control_verticesType(tmpNode).adjustPrefix();\r
55                 }\r
56                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );\r
57                                 tmpNode != null;\r
58                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )\r
59                         ) {\r
60                         internalAdjustPrefix(tmpNode, true);\r
61                         new extraType(tmpNode).adjustPrefix();\r
62                 }\r
63         }\r
64         public void setXsiType() {\r
65                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;\r
66                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "spline");\r
67         }\r
68 \r
69         public static int getclosedMinCount() {\r
70                 return 0;\r
71         }\r
72 \r
73         public static int getclosedMaxCount() {\r
74                 return 1;\r
75         }\r
76 \r
77         public int getclosedCount() {\r
78                 return getDomChildCount(Attribute, null, "closed");\r
79         }\r
80 \r
81         public boolean hasclosed() {\r
82                 return hasDomChild(Attribute, null, "closed");\r
83         }\r
84 \r
85         public bool newclosed() {\r
86                 return new bool();\r
87         }\r
88 \r
89         public bool getclosedAt(int index) throws Exception {\r
90                 return new bool(getDomNodeValue(getDomChildAt(Attribute, null, "closed", index)));\r
91         }\r
92 \r
93         public org.w3c.dom.Node getStartingclosedCursor() throws Exception {\r
94                 return getDomFirstChild(Attribute, null, "closed" );\r
95         }\r
96 \r
97         public org.w3c.dom.Node getAdvancedclosedCursor( org.w3c.dom.Node curNode ) throws Exception {\r
98                 return getDomNextChild( Attribute, null, "closed", curNode );\r
99         }\r
100 \r
101         public bool getclosedValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
102                 if( curNode == null )\r
103                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
104                 else\r
105                         return new bool(getDomNodeValue(curNode));\r
106         }\r
107 \r
108         public bool getclosed() throws Exception \r
109  {\r
110                 return getclosedAt(0);\r
111         }\r
112 \r
113         public void removeclosedAt(int index) {\r
114                 removeDomChildAt(Attribute, null, "closed", index);\r
115         }\r
116 \r
117         public void removeclosed() {\r
118                 removeclosedAt(0);\r
119         }\r
120 \r
121         public org.w3c.dom.Node addclosed(bool value) {\r
122                 if( value.isNull() )\r
123                         return null;\r
124 \r
125                 return  appendDomChild(Attribute, null, "closed", value.toString());\r
126         }\r
127 \r
128         public org.w3c.dom.Node addclosed(String value) throws Exception {\r
129                 return addclosed(new bool(value));\r
130         }\r
131 \r
132         public void insertclosedAt(bool value, int index) {\r
133                 insertDomChildAt(Attribute, null, "closed", index, value.toString());\r
134         }\r
135 \r
136         public void insertclosedAt(String value, int index) throws Exception {\r
137                 insertclosedAt(new bool(value), index);\r
138         }\r
139 \r
140         public void replaceclosedAt(bool value, int index) {\r
141                 replaceDomChildAt(Attribute, null, "closed", index, value.toString());\r
142         }\r
143 \r
144         public void replaceclosedAt(String value, int index) throws Exception {\r
145                 replaceclosedAt(new bool(value), index);\r
146         }\r
147 \r
148         public static int getsourceMinCount() {\r
149                 return 1;\r
150         }\r
151 \r
152         public static int getsourceMaxCount() {\r
153                 return Integer.MAX_VALUE;\r
154         }\r
155 \r
156         public int getsourceCount() {\r
157                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "source");\r
158         }\r
159 \r
160         public boolean hassource() {\r
161                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "source");\r
162         }\r
163 \r
164         public sourceType newsource() {\r
165                 return new sourceType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "source"));\r
166         }\r
167 \r
168         public sourceType getsourceAt(int index) throws Exception {\r
169                 return new sourceType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "source", index));\r
170         }\r
171 \r
172         public org.w3c.dom.Node getStartingsourceCursor() throws Exception {\r
173                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "source" );\r
174         }\r
175 \r
176         public org.w3c.dom.Node getAdvancedsourceCursor( org.w3c.dom.Node curNode ) throws Exception {\r
177                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "source", curNode );\r
178         }\r
179 \r
180         public sourceType getsourceValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
181                 if( curNode == null )\r
182                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
183                 else\r
184                         return new sourceType(curNode);\r
185         }\r
186 \r
187         public sourceType getsource() throws Exception \r
188  {\r
189                 return getsourceAt(0);\r
190         }\r
191 \r
192         public void removesourceAt(int index) {\r
193                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "source", index);\r
194         }\r
195 \r
196         public void removesource() {\r
197                 while (hassource())\r
198                         removesourceAt(0);\r
199         }\r
200 \r
201         public org.w3c.dom.Node addsource(sourceType value) {\r
202                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "source", value);\r
203         }\r
204 \r
205         public void insertsourceAt(sourceType value, int index) {\r
206                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "source", index, value);\r
207         }\r
208 \r
209         public void replacesourceAt(sourceType value, int index) {\r
210                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "source", index, value);\r
211         }\r
212 \r
213         public static int getcontrol_verticesMinCount() {\r
214                 return 1;\r
215         }\r
216 \r
217         public static int getcontrol_verticesMaxCount() {\r
218                 return 1;\r
219         }\r
220 \r
221         public int getcontrol_verticesCount() {\r
222                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices");\r
223         }\r
224 \r
225         public boolean hascontrol_vertices() {\r
226                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices");\r
227         }\r
228 \r
229         public control_verticesType newcontrol_vertices() {\r
230                 return new control_verticesType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "control_vertices"));\r
231         }\r
232 \r
233         public control_verticesType getcontrol_verticesAt(int index) throws Exception {\r
234                 return new control_verticesType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices", index));\r
235         }\r
236 \r
237         public org.w3c.dom.Node getStartingcontrol_verticesCursor() throws Exception {\r
238                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices" );\r
239         }\r
240 \r
241         public org.w3c.dom.Node getAdvancedcontrol_verticesCursor( org.w3c.dom.Node curNode ) throws Exception {\r
242                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices", curNode );\r
243         }\r
244 \r
245         public control_verticesType getcontrol_verticesValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
246                 if( curNode == null )\r
247                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
248                 else\r
249                         return new control_verticesType(curNode);\r
250         }\r
251 \r
252         public control_verticesType getcontrol_vertices() throws Exception \r
253  {\r
254                 return getcontrol_verticesAt(0);\r
255         }\r
256 \r
257         public void removecontrol_verticesAt(int index) {\r
258                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices", index);\r
259         }\r
260 \r
261         public void removecontrol_vertices() {\r
262                 removecontrol_verticesAt(0);\r
263         }\r
264 \r
265         public org.w3c.dom.Node addcontrol_vertices(control_verticesType value) {\r
266                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "control_vertices", value);\r
267         }\r
268 \r
269         public void insertcontrol_verticesAt(control_verticesType value, int index) {\r
270                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "control_vertices", index, value);\r
271         }\r
272 \r
273         public void replacecontrol_verticesAt(control_verticesType value, int index) {\r
274                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "control_vertices", index, value);\r
275         }\r
276 \r
277         public static int getextraMinCount() {\r
278                 return 0;\r
279         }\r
280 \r
281         public static int getextraMaxCount() {\r
282                 return Integer.MAX_VALUE;\r
283         }\r
284 \r
285         public int getextraCount() {\r
286                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");\r
287         }\r
288 \r
289         public boolean hasextra() {\r
290                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");\r
291         }\r
292 \r
293         public extraType newextra() {\r
294                 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));\r
295         }\r
296 \r
297         public extraType getextraAt(int index) throws Exception {\r
298                 return new extraType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index));\r
299         }\r
300 \r
301         public org.w3c.dom.Node getStartingextraCursor() throws Exception {\r
302                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );\r
303         }\r
304 \r
305         public org.w3c.dom.Node getAdvancedextraCursor( org.w3c.dom.Node curNode ) throws Exception {\r
306                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", curNode );\r
307         }\r
308 \r
309         public extraType getextraValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
310                 if( curNode == null )\r
311                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
312                 else\r
313                         return new extraType(curNode);\r
314         }\r
315 \r
316         public extraType getextra() throws Exception \r
317  {\r
318                 return getextraAt(0);\r
319         }\r
320 \r
321         public void removeextraAt(int index) {\r
322                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);\r
323         }\r
324 \r
325         public void removeextra() {\r
326                 while (hasextra())\r
327                         removeextraAt(0);\r
328         }\r
329 \r
330         public org.w3c.dom.Node addextra(extraType value) {\r
331                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);\r
332         }\r
333 \r
334         public void insertextraAt(extraType value, int index) {\r
335                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);\r
336         }\r
337 \r
338         public void replaceextraAt(extraType value, int index) {\r
339                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);\r
340         }\r
341 \r
342 }\r