OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / boxType.java
1 /**
2  * boxType.java
3  *
4  * This file was generated by XMLSpy 2007sp2 Enterprise Edition.
5  *
6  * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
7  * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
8  *
9  * Refer to the XMLSpy Documentation for further details.
10  * http://www.altova.com/xmlspy
11  */
12
13
14 package com.jmex.model.collada.schema;
15
16
17 public class boxType extends com.jmex.xml.xml.Node {
18
19         public boxType(boxType node) {
20                 super(node);
21         }
22
23         public boxType(org.w3c.dom.Node node) {
24                 super(node);
25         }
26
27         public boxType(org.w3c.dom.Document doc) {
28                 super(doc);
29         }
30
31         public boxType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
32                 super(doc, namespaceURI, prefix, name);
33         }
34         
35         public void adjustPrefix() {
36                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents" );
37                                 tmpNode != null;
38                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", tmpNode )
39                         ) {
40                         internalAdjustPrefix(tmpNode, true);
41                 }
42                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
43                                 tmpNode != null;
44                                 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )
45                         ) {
46                         internalAdjustPrefix(tmpNode, true);
47                         new extraType(tmpNode).adjustPrefix();
48                 }
49         }
50         public void setXsiType() {
51                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
52                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "box");
53         }
54
55         public static int gethalf_extentsMinCount() {
56                 return 1;
57         }
58
59         public static int gethalf_extentsMaxCount() {
60                 return 1;
61         }
62
63         public int gethalf_extentsCount() {
64                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents");
65         }
66
67         public boolean hashalf_extents() {
68                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents");
69         }
70
71         public float3 newhalf_extents() {
72                 return new float3();
73         }
74
75         public float3 gethalf_extentsAt(int index) throws Exception {
76                 return new float3(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", index)));
77         }
78
79         public org.w3c.dom.Node getStartinghalf_extentsCursor() throws Exception {
80                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents" );
81         }
82
83         public org.w3c.dom.Node getAdvancedhalf_extentsCursor( org.w3c.dom.Node curNode ) throws Exception {
84                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", curNode );
85         }
86
87         public float3 gethalf_extentsValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
88                 if( curNode == null )
89                         throw new com.jmex.xml.xml.XmlException("Out of range");
90                 else
91                         return new float3(getDomNodeValue(curNode));
92         }
93
94         public float3 gethalf_extents() throws Exception 
95  {
96                 return gethalf_extentsAt(0);
97         }
98
99         public void removehalf_extentsAt(int index) {
100                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", index);
101         }
102
103         public void removehalf_extents() {
104                 removehalf_extentsAt(0);
105         }
106
107         public org.w3c.dom.Node addhalf_extents(float3 value) {
108                 if( value.isNull() )
109                         return null;
110
111                 return  appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", value.toString());
112         }
113
114         public org.w3c.dom.Node addhalf_extents(String value) throws Exception {
115                 return addhalf_extents(new float3(value));
116         }
117
118         public void inserthalf_extentsAt(float3 value, int index) {
119                 insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", index, value.toString());
120         }
121
122         public void inserthalf_extentsAt(String value, int index) throws Exception {
123                 inserthalf_extentsAt(new float3(value), index);
124         }
125
126         public void replacehalf_extentsAt(float3 value, int index) {
127                 replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", index, value.toString());
128         }
129
130         public void replacehalf_extentsAt(String value, int index) throws Exception {
131                 replacehalf_extentsAt(new float3(value), index);
132         }
133
134         public static int getextraMinCount() {
135                 return 0;
136         }
137
138         public static int getextraMaxCount() {
139                 return Integer.MAX_VALUE;
140         }
141
142         public int getextraCount() {
143                 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
144         }
145
146         public boolean hasextra() {
147                 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
148         }
149
150         public extraType newextra() {
151                 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));
152         }
153
154         public extraType getextraAt(int index) throws Exception {
155                 return new extraType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index));
156         }
157
158         public org.w3c.dom.Node getStartingextraCursor() throws Exception {
159                 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
160         }
161
162         public org.w3c.dom.Node getAdvancedextraCursor( org.w3c.dom.Node curNode ) throws Exception {
163                 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", curNode );
164         }
165
166         public extraType getextraValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
167                 if( curNode == null )
168                         throw new com.jmex.xml.xml.XmlException("Out of range");
169                 else
170                         return new extraType(curNode);
171         }
172
173         public extraType getextra() throws Exception 
174  {
175                 return getextraAt(0);
176         }
177
178         public void removeextraAt(int index) {
179                 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);
180         }
181
182         public void removeextra() {
183                 while (hasextra())
184                         removeextraAt(0);
185         }
186
187         public org.w3c.dom.Node addextra(extraType value) {
188                 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);
189         }
190
191         public void insertextraAt(extraType value, int index) {
192                 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
193         }
194
195         public void replaceextraAt(extraType value, int index) {
196                 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
197         }
198
199 }