OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / planeType.java
1 /**\r
2  * planeType.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 planeType extends com.jmex.xml.xml.Node {\r
18 \r
19         public planeType(planeType node) {\r
20                 super(node);\r
21         }\r
22 \r
23         public planeType(org.w3c.dom.Node node) {\r
24                 super(node);\r
25         }\r
26 \r
27         public planeType(org.w3c.dom.Document doc) {\r
28                 super(doc);\r
29         }\r
30 \r
31         public planeType(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", "equation" );\r
37                                 tmpNode != null;\r
38                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "equation", tmpNode )\r
39                         ) {\r
40                         internalAdjustPrefix(tmpNode, true);\r
41                 }\r
42                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );\r
43                                 tmpNode != null;\r
44                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )\r
45                         ) {\r
46                         internalAdjustPrefix(tmpNode, true);\r
47                         new extraType(tmpNode).adjustPrefix();\r
48                 }\r
49         }\r
50         public void setXsiType() {\r
51                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;\r
52                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "plane");\r
53         }\r
54 \r
55         public static int getequationMinCount() {\r
56                 return 1;\r
57         }\r
58 \r
59         public static int getequationMaxCount() {\r
60                 return 1;\r
61         }\r
62 \r
63         public int getequationCount() {\r
64                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "equation");\r
65         }\r
66 \r
67         public boolean hasequation() {\r
68                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "equation");\r
69         }\r
70 \r
71         public float4 newequation() {\r
72                 return new float4();\r
73         }\r
74 \r
75         public float4 getequationAt(int index) throws Exception {\r
76                 return new float4(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "equation", index)));\r
77         }\r
78 \r
79         public org.w3c.dom.Node getStartingequationCursor() throws Exception {\r
80                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "equation" );\r
81         }\r
82 \r
83         public org.w3c.dom.Node getAdvancedequationCursor( org.w3c.dom.Node curNode ) throws Exception {\r
84                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "equation", curNode );\r
85         }\r
86 \r
87         public float4 getequationValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
88                 if( curNode == null )\r
89                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
90                 else\r
91                         return new float4(getDomNodeValue(curNode));\r
92         }\r
93 \r
94         public float4 getequation() throws Exception \r
95  {\r
96                 return getequationAt(0);\r
97         }\r
98 \r
99         public void removeequationAt(int index) {\r
100                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "equation", index);\r
101         }\r
102 \r
103         public void removeequation() {\r
104                 removeequationAt(0);\r
105         }\r
106 \r
107         public org.w3c.dom.Node addequation(float4 value) {\r
108                 if( value.isNull() )\r
109                         return null;\r
110 \r
111                 return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "equation", value.toString());\r
112         }\r
113 \r
114         public org.w3c.dom.Node addequation(String value) throws Exception {\r
115                 return addequation(new float4(value));\r
116         }\r
117 \r
118         public void insertequationAt(float4 value, int index) {\r
119                 insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "equation", index, value.toString());\r
120         }\r
121 \r
122         public void insertequationAt(String value, int index) throws Exception {\r
123                 insertequationAt(new float4(value), index);\r
124         }\r
125 \r
126         public void replaceequationAt(float4 value, int index) {\r
127                 replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "equation", index, value.toString());\r
128         }\r
129 \r
130         public void replaceequationAt(String value, int index) throws Exception {\r
131                 replaceequationAt(new float4(value), index);\r
132         }\r
133 \r
134         public static int getextraMinCount() {\r
135                 return 0;\r
136         }\r
137 \r
138         public static int getextraMaxCount() {\r
139                 return Integer.MAX_VALUE;\r
140         }\r
141 \r
142         public int getextraCount() {\r
143                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");\r
144         }\r
145 \r
146         public boolean hasextra() {\r
147                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");\r
148         }\r
149 \r
150         public extraType newextra() {\r
151                 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));\r
152         }\r
153 \r
154         public extraType getextraAt(int index) throws Exception {\r
155                 return new extraType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index));\r
156         }\r
157 \r
158         public org.w3c.dom.Node getStartingextraCursor() throws Exception {\r
159                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );\r
160         }\r
161 \r
162         public org.w3c.dom.Node getAdvancedextraCursor( org.w3c.dom.Node curNode ) throws Exception {\r
163                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", curNode );\r
164         }\r
165 \r
166         public extraType getextraValueAtCursor( 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 extraType(curNode);\r
171         }\r
172 \r
173         public extraType getextra() throws Exception \r
174  {\r
175                 return getextraAt(0);\r
176         }\r
177 \r
178         public void removeextraAt(int index) {\r
179                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);\r
180         }\r
181 \r
182         public void removeextra() {\r
183                 while (hasextra())\r
184                         removeextraAt(0);\r
185         }\r
186 \r
187         public org.w3c.dom.Node addextra(extraType value) {\r
188                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);\r
189         }\r
190 \r
191         public void insertextraAt(extraType value, int index) {\r
192                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);\r
193         }\r
194 \r
195         public void replaceextraAt(extraType value, int index) {\r
196                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);\r
197         }\r
198 \r
199 }\r