OSDN Git Service

cd13c9c3c607505d666166e0a5f51a9c72fad39c
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / projection_matrixType2.java
1 /**\r
2  * projection_matrixType2.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.SchemaNCName;\r
17 \r
18 public class projection_matrixType2 extends com.jmex.xml.xml.Node {\r
19 \r
20         public projection_matrixType2(projection_matrixType2 node) {\r
21                 super(node);\r
22         }\r
23 \r
24         public projection_matrixType2(org.w3c.dom.Node node) {\r
25                 super(node);\r
26         }\r
27 \r
28         public projection_matrixType2(org.w3c.dom.Document doc) {\r
29                 super(doc);\r
30         }\r
31 \r
32         public projection_matrixType2(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( Attribute, null, "value" );\r
38                                 tmpNode != null;\r
39                                 tmpNode = getDomNextChild( Attribute, null, "value", tmpNode )\r
40                         ) {\r
41                         internalAdjustPrefix(tmpNode, false);\r
42                 }\r
43                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "param" );\r
44                                 tmpNode != null;\r
45                                 tmpNode = getDomNextChild( Attribute, null, "param", tmpNode )\r
46                         ) {\r
47                         internalAdjustPrefix(tmpNode, false);\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", "projection_matrix");\r
53         }\r
54 \r
55         public static int getvalue2MinCount() {\r
56                 return 0;\r
57         }\r
58 \r
59         public static int getvalue2MaxCount() {\r
60                 return 1;\r
61         }\r
62 \r
63         public int getvalue2Count() {\r
64                 return getDomChildCount(Attribute, null, "value");\r
65         }\r
66 \r
67         public boolean hasvalue2() {\r
68                 return hasDomChild(Attribute, null, "value");\r
69         }\r
70 \r
71         public float4x4 newvalue2() {\r
72                 return new float4x4();\r
73         }\r
74 \r
75         public float4x4 getvalue2At(int index) throws Exception {\r
76                 return new float4x4(getDomNodeValue(getDomChildAt(Attribute, null, "value", index)));\r
77         }\r
78 \r
79         public org.w3c.dom.Node getStartingvalue2Cursor() throws Exception {\r
80                 return getDomFirstChild(Attribute, null, "value" );\r
81         }\r
82 \r
83         public org.w3c.dom.Node getAdvancedvalue2Cursor( org.w3c.dom.Node curNode ) throws Exception {\r
84                 return getDomNextChild( Attribute, null, "value", curNode );\r
85         }\r
86 \r
87         public float4x4 getvalue2ValueAtCursor( 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 float4x4(getDomNodeValue(curNode));\r
92         }\r
93 \r
94         public float4x4 getvalue2() throws Exception \r
95  {\r
96                 return getvalue2At(0);\r
97         }\r
98 \r
99         public void removevalue2At(int index) {\r
100                 removeDomChildAt(Attribute, null, "value", index);\r
101         }\r
102 \r
103         public void removevalue2() {\r
104                 removevalue2At(0);\r
105         }\r
106 \r
107         public org.w3c.dom.Node addvalue2(float4x4 value) {\r
108                 if( value.isNull() )\r
109                         return null;\r
110 \r
111                 return  appendDomChild(Attribute, null, "value", value.toString());\r
112         }\r
113 \r
114         public org.w3c.dom.Node addvalue2(String value) throws Exception {\r
115                 return addvalue2(new float4x4(value));\r
116         }\r
117 \r
118         public void insertvalue2At(float4x4 value, int index) {\r
119                 insertDomChildAt(Attribute, null, "value", index, value.toString());\r
120         }\r
121 \r
122         public void insertvalue2At(String value, int index) throws Exception {\r
123                 insertvalue2At(new float4x4(value), index);\r
124         }\r
125 \r
126         public void replacevalue2At(float4x4 value, int index) {\r
127                 replaceDomChildAt(Attribute, null, "value", index, value.toString());\r
128         }\r
129 \r
130         public void replacevalue2At(String value, int index) throws Exception {\r
131                 replacevalue2At(new float4x4(value), index);\r
132         }\r
133 \r
134         public static int getparamMinCount() {\r
135                 return 0;\r
136         }\r
137 \r
138         public static int getparamMaxCount() {\r
139                 return 1;\r
140         }\r
141 \r
142         public int getparamCount() {\r
143                 return getDomChildCount(Attribute, null, "param");\r
144         }\r
145 \r
146         public boolean hasparam() {\r
147                 return hasDomChild(Attribute, null, "param");\r
148         }\r
149 \r
150         public SchemaNCName newparam() {\r
151                 return new SchemaNCName();\r
152         }\r
153 \r
154         public SchemaNCName getparamAt(int index) throws Exception {\r
155                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "param", index)));\r
156         }\r
157 \r
158         public org.w3c.dom.Node getStartingparamCursor() throws Exception {\r
159                 return getDomFirstChild(Attribute, null, "param" );\r
160         }\r
161 \r
162         public org.w3c.dom.Node getAdvancedparamCursor( org.w3c.dom.Node curNode ) throws Exception {\r
163                 return getDomNextChild( Attribute, null, "param", curNode );\r
164         }\r
165 \r
166         public SchemaNCName getparamValueAtCursor( 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 SchemaNCName(getDomNodeValue(curNode));\r
171         }\r
172 \r
173         public SchemaNCName getparam() throws Exception \r
174  {\r
175                 return getparamAt(0);\r
176         }\r
177 \r
178         public void removeparamAt(int index) {\r
179                 removeDomChildAt(Attribute, null, "param", index);\r
180         }\r
181 \r
182         public void removeparam() {\r
183                 removeparamAt(0);\r
184         }\r
185 \r
186         public org.w3c.dom.Node addparam(SchemaNCName value) {\r
187                 if( value.isNull() )\r
188                         return null;\r
189 \r
190                 return  appendDomChild(Attribute, null, "param", value.toString());\r
191         }\r
192 \r
193         public org.w3c.dom.Node addparam(String value) throws Exception {\r
194                 return addparam(new SchemaNCName(value));\r
195         }\r
196 \r
197         public void insertparamAt(SchemaNCName value, int index) {\r
198                 insertDomChildAt(Attribute, null, "param", index, value.toString());\r
199         }\r
200 \r
201         public void insertparamAt(String value, int index) throws Exception {\r
202                 insertparamAt(new SchemaNCName(value), index);\r
203         }\r
204 \r
205         public void replaceparamAt(SchemaNCName value, int index) {\r
206                 replaceDomChildAt(Attribute, null, "param", index, value.toString());\r
207         }\r
208 \r
209         public void replaceparamAt(String value, int index) throws Exception {\r
210                 replaceparamAt(new SchemaNCName(value), index);\r
211         }\r
212 \r
213 }\r