OSDN Git Service

3a7e52901bd430f8890b4934d4b59dabd8f338b8
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / fx_surface_init_cube_common.java
1 /**\r
2  * fx_surface_init_cube_common.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 fx_surface_init_cube_common extends com.jmex.xml.xml.Node {\r
18 \r
19         public fx_surface_init_cube_common(fx_surface_init_cube_common node) {\r
20                 super(node);\r
21         }\r
22 \r
23         public fx_surface_init_cube_common(org.w3c.dom.Node node) {\r
24                 super(node);\r
25         }\r
26 \r
27         public fx_surface_init_cube_common(org.w3c.dom.Document doc) {\r
28                 super(doc);\r
29         }\r
30 \r
31         public fx_surface_init_cube_common(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", "all" );\r
37                                 tmpNode != null;\r
38                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "all", tmpNode )\r
39                         ) {\r
40                         internalAdjustPrefix(tmpNode, true);\r
41                         new allType(tmpNode).adjustPrefix();\r
42                 }\r
43                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "primary" );\r
44                                 tmpNode != null;\r
45                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "primary", tmpNode )\r
46                         ) {\r
47                         internalAdjustPrefix(tmpNode, true);\r
48                         new primaryType(tmpNode).adjustPrefix();\r
49                 }\r
50                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "face" );\r
51                                 tmpNode != null;\r
52                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "face", tmpNode )\r
53                         ) {\r
54                         internalAdjustPrefix(tmpNode, true);\r
55                         new faceType(tmpNode).adjustPrefix();\r
56                 }\r
57         }\r
58         public void setXsiType() {\r
59                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;\r
60                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "fx_surface_init_cube_common");\r
61         }\r
62 \r
63         public static int getallMinCount() {\r
64                 return 1;\r
65         }\r
66 \r
67         public static int getallMaxCount() {\r
68                 return 1;\r
69         }\r
70 \r
71         public int getallCount() {\r
72                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "all");\r
73         }\r
74 \r
75         public boolean hasall() {\r
76                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "all");\r
77         }\r
78 \r
79         public allType newall() {\r
80                 return new allType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "all"));\r
81         }\r
82 \r
83         public allType getallAt(int index) throws Exception {\r
84                 return new allType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "all", index));\r
85         }\r
86 \r
87         public org.w3c.dom.Node getStartingallCursor() throws Exception {\r
88                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "all" );\r
89         }\r
90 \r
91         public org.w3c.dom.Node getAdvancedallCursor( org.w3c.dom.Node curNode ) throws Exception {\r
92                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "all", curNode );\r
93         }\r
94 \r
95         public allType getallValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
96                 if( curNode == null )\r
97                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
98                 else\r
99                         return new allType(curNode);\r
100         }\r
101 \r
102         public allType getall() throws Exception \r
103  {\r
104                 return getallAt(0);\r
105         }\r
106 \r
107         public void removeallAt(int index) {\r
108                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "all", index);\r
109         }\r
110 \r
111         public void removeall() {\r
112                 removeallAt(0);\r
113         }\r
114 \r
115         public org.w3c.dom.Node addall(allType value) {\r
116                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "all", value);\r
117         }\r
118 \r
119         public void insertallAt(allType value, int index) {\r
120                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "all", index, value);\r
121         }\r
122 \r
123         public void replaceallAt(allType value, int index) {\r
124                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "all", index, value);\r
125         }\r
126 \r
127         public static int getprimaryMinCount() {\r
128                 return 1;\r
129         }\r
130 \r
131         public static int getprimaryMaxCount() {\r
132                 return 1;\r
133         }\r
134 \r
135         public int getprimaryCount() {\r
136                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "primary");\r
137         }\r
138 \r
139         public boolean hasprimary() {\r
140                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "primary");\r
141         }\r
142 \r
143         public primaryType newprimary() {\r
144                 return new primaryType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "primary"));\r
145         }\r
146 \r
147         public primaryType getprimaryAt(int index) throws Exception {\r
148                 return new primaryType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "primary", index));\r
149         }\r
150 \r
151         public org.w3c.dom.Node getStartingprimaryCursor() throws Exception {\r
152                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "primary" );\r
153         }\r
154 \r
155         public org.w3c.dom.Node getAdvancedprimaryCursor( org.w3c.dom.Node curNode ) throws Exception {\r
156                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "primary", curNode );\r
157         }\r
158 \r
159         public primaryType getprimaryValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
160                 if( curNode == null )\r
161                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
162                 else\r
163                         return new primaryType(curNode);\r
164         }\r
165 \r
166         public primaryType getprimary() throws Exception \r
167  {\r
168                 return getprimaryAt(0);\r
169         }\r
170 \r
171         public void removeprimaryAt(int index) {\r
172                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "primary", index);\r
173         }\r
174 \r
175         public void removeprimary() {\r
176                 removeprimaryAt(0);\r
177         }\r
178 \r
179         public org.w3c.dom.Node addprimary(primaryType value) {\r
180                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "primary", value);\r
181         }\r
182 \r
183         public void insertprimaryAt(primaryType value, int index) {\r
184                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "primary", index, value);\r
185         }\r
186 \r
187         public void replaceprimaryAt(primaryType value, int index) {\r
188                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "primary", index, value);\r
189         }\r
190 \r
191         public static int getfaceMinCount() {\r
192                 return 6;\r
193         }\r
194 \r
195         public static int getfaceMaxCount() {\r
196                 return 6;\r
197         }\r
198 \r
199         public int getfaceCount() {\r
200                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "face");\r
201         }\r
202 \r
203         public boolean hasface() {\r
204                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "face");\r
205         }\r
206 \r
207         public faceType newface() {\r
208                 return new faceType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "face"));\r
209         }\r
210 \r
211         public faceType getfaceAt(int index) throws Exception {\r
212                 return new faceType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "face", index));\r
213         }\r
214 \r
215         public org.w3c.dom.Node getStartingfaceCursor() throws Exception {\r
216                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "face" );\r
217         }\r
218 \r
219         public org.w3c.dom.Node getAdvancedfaceCursor( org.w3c.dom.Node curNode ) throws Exception {\r
220                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "face", curNode );\r
221         }\r
222 \r
223         public faceType getfaceValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
224                 if( curNode == null )\r
225                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
226                 else\r
227                         return new faceType(curNode);\r
228         }\r
229 \r
230         public faceType getface() throws Exception \r
231  {\r
232                 return getfaceAt(0);\r
233         }\r
234 \r
235         public void removefaceAt(int index) {\r
236                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "face", index);\r
237         }\r
238 \r
239         public void removeface() {\r
240                 while (hasface())\r
241                         removefaceAt(0);\r
242         }\r
243 \r
244         public org.w3c.dom.Node addface(faceType value) {\r
245                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "face", value);\r
246         }\r
247 \r
248         public void insertfaceAt(faceType value, int index) {\r
249                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "face", index, value);\r
250         }\r
251 \r
252         public void replacefaceAt(faceType value, int index) {\r
253                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "face", index, value);\r
254         }\r
255 \r
256 }\r