OSDN Git Service

944c35f829139f931f1301ffe294ebe252e4a0a9
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / contributorType.java
1 /**\r
2  * contributorType.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.SchemaString;\r
17 \r
18 public class contributorType extends com.jmex.xml.xml.Node {\r
19 \r
20         public contributorType(contributorType node) {\r
21                 super(node);\r
22         }\r
23 \r
24         public contributorType(org.w3c.dom.Node node) {\r
25                 super(node);\r
26         }\r
27 \r
28         public contributorType(org.w3c.dom.Document doc) {\r
29                 super(doc);\r
30         }\r
31 \r
32         public contributorType(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( Element, "http://www.collada.org/2005/11/COLLADASchema", "author" );\r
38                                 tmpNode != null;\r
39                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "author", tmpNode )\r
40                         ) {\r
41                         internalAdjustPrefix(tmpNode, true);\r
42                 }\r
43                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "authoring_tool" );\r
44                                 tmpNode != null;\r
45                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "authoring_tool", tmpNode )\r
46                         ) {\r
47                         internalAdjustPrefix(tmpNode, true);\r
48                 }\r
49                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "comments" );\r
50                                 tmpNode != null;\r
51                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "comments", tmpNode )\r
52                         ) {\r
53                         internalAdjustPrefix(tmpNode, true);\r
54                 }\r
55                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "copyright" );\r
56                                 tmpNode != null;\r
57                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "copyright", tmpNode )\r
58                         ) {\r
59                         internalAdjustPrefix(tmpNode, true);\r
60                 }\r
61                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "source_data" );\r
62                                 tmpNode != null;\r
63                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "source_data", tmpNode )\r
64                         ) {\r
65                         internalAdjustPrefix(tmpNode, true);\r
66                 }\r
67         }\r
68         public void setXsiType() {\r
69                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;\r
70                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "contributor");\r
71         }\r
72 \r
73         public static int getauthorMinCount() {\r
74                 return 0;\r
75         }\r
76 \r
77         public static int getauthorMaxCount() {\r
78                 return 1;\r
79         }\r
80 \r
81         public int getauthorCount() {\r
82                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "author");\r
83         }\r
84 \r
85         public boolean hasauthor() {\r
86                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "author");\r
87         }\r
88 \r
89         public SchemaString newauthor() {\r
90                 return new SchemaString();\r
91         }\r
92 \r
93         public SchemaString getauthorAt(int index) throws Exception {\r
94                 return new SchemaString(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "author", index)));\r
95         }\r
96 \r
97         public org.w3c.dom.Node getStartingauthorCursor() throws Exception {\r
98                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "author" );\r
99         }\r
100 \r
101         public org.w3c.dom.Node getAdvancedauthorCursor( org.w3c.dom.Node curNode ) throws Exception {\r
102                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "author", curNode );\r
103         }\r
104 \r
105         public SchemaString getauthorValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
106                 if( curNode == null )\r
107                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
108                 else\r
109                         return new SchemaString(getDomNodeValue(curNode));\r
110         }\r
111 \r
112         public SchemaString getauthor() throws Exception \r
113  {\r
114                 return getauthorAt(0);\r
115         }\r
116 \r
117         public void removeauthorAt(int index) {\r
118                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "author", index);\r
119         }\r
120 \r
121         public void removeauthor() {\r
122                 removeauthorAt(0);\r
123         }\r
124 \r
125         public org.w3c.dom.Node addauthor(SchemaString value) {\r
126                 if( value.isNull() )\r
127                         return null;\r
128 \r
129                 return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "author", value.toString());\r
130         }\r
131 \r
132         public org.w3c.dom.Node addauthor(String value) throws Exception {\r
133                 return addauthor(new SchemaString(value));\r
134         }\r
135 \r
136         public void insertauthorAt(SchemaString value, int index) {\r
137                 insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "author", index, value.toString());\r
138         }\r
139 \r
140         public void insertauthorAt(String value, int index) throws Exception {\r
141                 insertauthorAt(new SchemaString(value), index);\r
142         }\r
143 \r
144         public void replaceauthorAt(SchemaString value, int index) {\r
145                 replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "author", index, value.toString());\r
146         }\r
147 \r
148         public void replaceauthorAt(String value, int index) throws Exception {\r
149                 replaceauthorAt(new SchemaString(value), index);\r
150         }\r
151 \r
152         public static int getauthoring_toolMinCount() {\r
153                 return 0;\r
154         }\r
155 \r
156         public static int getauthoring_toolMaxCount() {\r
157                 return 1;\r
158         }\r
159 \r
160         public int getauthoring_toolCount() {\r
161                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "authoring_tool");\r
162         }\r
163 \r
164         public boolean hasauthoring_tool() {\r
165                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "authoring_tool");\r
166         }\r
167 \r
168         public SchemaString newauthoring_tool() {\r
169                 return new SchemaString();\r
170         }\r
171 \r
172         public SchemaString getauthoring_toolAt(int index) throws Exception {\r
173                 return new SchemaString(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "authoring_tool", index)));\r
174         }\r
175 \r
176         public org.w3c.dom.Node getStartingauthoring_toolCursor() throws Exception {\r
177                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "authoring_tool" );\r
178         }\r
179 \r
180         public org.w3c.dom.Node getAdvancedauthoring_toolCursor( org.w3c.dom.Node curNode ) throws Exception {\r
181                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "authoring_tool", curNode );\r
182         }\r
183 \r
184         public SchemaString getauthoring_toolValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
185                 if( curNode == null )\r
186                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
187                 else\r
188                         return new SchemaString(getDomNodeValue(curNode));\r
189         }\r
190 \r
191         public SchemaString getauthoring_tool() throws Exception \r
192  {\r
193                 return getauthoring_toolAt(0);\r
194         }\r
195 \r
196         public void removeauthoring_toolAt(int index) {\r
197                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "authoring_tool", index);\r
198         }\r
199 \r
200         public void removeauthoring_tool() {\r
201                 removeauthoring_toolAt(0);\r
202         }\r
203 \r
204         public org.w3c.dom.Node addauthoring_tool(SchemaString value) {\r
205                 if( value.isNull() )\r
206                         return null;\r
207 \r
208                 return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "authoring_tool", value.toString());\r
209         }\r
210 \r
211         public org.w3c.dom.Node addauthoring_tool(String value) throws Exception {\r
212                 return addauthoring_tool(new SchemaString(value));\r
213         }\r
214 \r
215         public void insertauthoring_toolAt(SchemaString value, int index) {\r
216                 insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "authoring_tool", index, value.toString());\r
217         }\r
218 \r
219         public void insertauthoring_toolAt(String value, int index) throws Exception {\r
220                 insertauthoring_toolAt(new SchemaString(value), index);\r
221         }\r
222 \r
223         public void replaceauthoring_toolAt(SchemaString value, int index) {\r
224                 replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "authoring_tool", index, value.toString());\r
225         }\r
226 \r
227         public void replaceauthoring_toolAt(String value, int index) throws Exception {\r
228                 replaceauthoring_toolAt(new SchemaString(value), index);\r
229         }\r
230 \r
231         public static int getcommentsMinCount() {\r
232                 return 0;\r
233         }\r
234 \r
235         public static int getcommentsMaxCount() {\r
236                 return 1;\r
237         }\r
238 \r
239         public int getcommentsCount() {\r
240                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "comments");\r
241         }\r
242 \r
243         public boolean hascomments() {\r
244                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "comments");\r
245         }\r
246 \r
247         public SchemaString newcomments() {\r
248                 return new SchemaString();\r
249         }\r
250 \r
251         public SchemaString getcommentsAt(int index) throws Exception {\r
252                 return new SchemaString(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "comments", index)));\r
253         }\r
254 \r
255         public org.w3c.dom.Node getStartingcommentsCursor() throws Exception {\r
256                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "comments" );\r
257         }\r
258 \r
259         public org.w3c.dom.Node getAdvancedcommentsCursor( org.w3c.dom.Node curNode ) throws Exception {\r
260                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "comments", curNode );\r
261         }\r
262 \r
263         public SchemaString getcommentsValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
264                 if( curNode == null )\r
265                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
266                 else\r
267                         return new SchemaString(getDomNodeValue(curNode));\r
268         }\r
269 \r
270         public SchemaString getcomments() throws Exception \r
271  {\r
272                 return getcommentsAt(0);\r
273         }\r
274 \r
275         public void removecommentsAt(int index) {\r
276                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "comments", index);\r
277         }\r
278 \r
279         public void removecomments() {\r
280                 removecommentsAt(0);\r
281         }\r
282 \r
283         public org.w3c.dom.Node addcomments(SchemaString value) {\r
284                 if( value.isNull() )\r
285                         return null;\r
286 \r
287                 return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "comments", value.toString());\r
288         }\r
289 \r
290         public org.w3c.dom.Node addcomments(String value) throws Exception {\r
291                 return addcomments(new SchemaString(value));\r
292         }\r
293 \r
294         public void insertcommentsAt(SchemaString value, int index) {\r
295                 insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "comments", index, value.toString());\r
296         }\r
297 \r
298         public void insertcommentsAt(String value, int index) throws Exception {\r
299                 insertcommentsAt(new SchemaString(value), index);\r
300         }\r
301 \r
302         public void replacecommentsAt(SchemaString value, int index) {\r
303                 replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "comments", index, value.toString());\r
304         }\r
305 \r
306         public void replacecommentsAt(String value, int index) throws Exception {\r
307                 replacecommentsAt(new SchemaString(value), index);\r
308         }\r
309 \r
310         public static int getcopyrightMinCount() {\r
311                 return 0;\r
312         }\r
313 \r
314         public static int getcopyrightMaxCount() {\r
315                 return 1;\r
316         }\r
317 \r
318         public int getcopyrightCount() {\r
319                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "copyright");\r
320         }\r
321 \r
322         public boolean hascopyright() {\r
323                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "copyright");\r
324         }\r
325 \r
326         public SchemaString newcopyright() {\r
327                 return new SchemaString();\r
328         }\r
329 \r
330         public SchemaString getcopyrightAt(int index) throws Exception {\r
331                 return new SchemaString(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "copyright", index)));\r
332         }\r
333 \r
334         public org.w3c.dom.Node getStartingcopyrightCursor() throws Exception {\r
335                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "copyright" );\r
336         }\r
337 \r
338         public org.w3c.dom.Node getAdvancedcopyrightCursor( org.w3c.dom.Node curNode ) throws Exception {\r
339                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "copyright", curNode );\r
340         }\r
341 \r
342         public SchemaString getcopyrightValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
343                 if( curNode == null )\r
344                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
345                 else\r
346                         return new SchemaString(getDomNodeValue(curNode));\r
347         }\r
348 \r
349         public SchemaString getcopyright() throws Exception \r
350  {\r
351                 return getcopyrightAt(0);\r
352         }\r
353 \r
354         public void removecopyrightAt(int index) {\r
355                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "copyright", index);\r
356         }\r
357 \r
358         public void removecopyright() {\r
359                 removecopyrightAt(0);\r
360         }\r
361 \r
362         public org.w3c.dom.Node addcopyright(SchemaString value) {\r
363                 if( value.isNull() )\r
364                         return null;\r
365 \r
366                 return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "copyright", value.toString());\r
367         }\r
368 \r
369         public org.w3c.dom.Node addcopyright(String value) throws Exception {\r
370                 return addcopyright(new SchemaString(value));\r
371         }\r
372 \r
373         public void insertcopyrightAt(SchemaString value, int index) {\r
374                 insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "copyright", index, value.toString());\r
375         }\r
376 \r
377         public void insertcopyrightAt(String value, int index) throws Exception {\r
378                 insertcopyrightAt(new SchemaString(value), index);\r
379         }\r
380 \r
381         public void replacecopyrightAt(SchemaString value, int index) {\r
382                 replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "copyright", index, value.toString());\r
383         }\r
384 \r
385         public void replacecopyrightAt(String value, int index) throws Exception {\r
386                 replacecopyrightAt(new SchemaString(value), index);\r
387         }\r
388 \r
389         public static int getsource_dataMinCount() {\r
390                 return 0;\r
391         }\r
392 \r
393         public static int getsource_dataMaxCount() {\r
394                 return 1;\r
395         }\r
396 \r
397         public int getsource_dataCount() {\r
398                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "source_data");\r
399         }\r
400 \r
401         public boolean hassource_data() {\r
402                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "source_data");\r
403         }\r
404 \r
405         public SchemaString newsource_data() {\r
406                 return new SchemaString();\r
407         }\r
408 \r
409         public SchemaString getsource_dataAt(int index) throws Exception {\r
410                 return new SchemaString(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "source_data", index)));\r
411         }\r
412 \r
413         public org.w3c.dom.Node getStartingsource_dataCursor() throws Exception {\r
414                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "source_data" );\r
415         }\r
416 \r
417         public org.w3c.dom.Node getAdvancedsource_dataCursor( org.w3c.dom.Node curNode ) throws Exception {\r
418                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "source_data", curNode );\r
419         }\r
420 \r
421         public SchemaString getsource_dataValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
422                 if( curNode == null )\r
423                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
424                 else\r
425                         return new SchemaString(getDomNodeValue(curNode));\r
426         }\r
427 \r
428         public SchemaString getsource_data() throws Exception \r
429  {\r
430                 return getsource_dataAt(0);\r
431         }\r
432 \r
433         public void removesource_dataAt(int index) {\r
434                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "source_data", index);\r
435         }\r
436 \r
437         public void removesource_data() {\r
438                 removesource_dataAt(0);\r
439         }\r
440 \r
441         public org.w3c.dom.Node addsource_data(SchemaString value) {\r
442                 if( value.isNull() )\r
443                         return null;\r
444 \r
445                 return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "source_data", value.toString());\r
446         }\r
447 \r
448         public org.w3c.dom.Node addsource_data(String value) throws Exception {\r
449                 return addsource_data(new SchemaString(value));\r
450         }\r
451 \r
452         public void insertsource_dataAt(SchemaString value, int index) {\r
453                 insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "source_data", index, value.toString());\r
454         }\r
455 \r
456         public void insertsource_dataAt(String value, int index) throws Exception {\r
457                 insertsource_dataAt(new SchemaString(value), index);\r
458         }\r
459 \r
460         public void replacesource_dataAt(SchemaString value, int index) {\r
461                 replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "source_data", index, value.toString());\r
462         }\r
463 \r
464         public void replacesource_dataAt(String value, int index) throws Exception {\r
465                 replacesource_dataAt(new SchemaString(value), index);\r
466         }\r
467 \r
468 }\r