4 * This file was generated by XMLSpy 2007sp2 Enterprise Edition.
\r
6 * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
\r
7 * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
\r
9 * Refer to the XMLSpy Documentation for further details.
\r
10 * http://www.altova.com/xmlspy
\r
14 package com.jmex.model.collada.schema;
\r
17 public class splineType extends com.jmex.xml.xml.Node {
\r
19 public splineType(splineType node) {
\r
23 public splineType(org.w3c.dom.Node node) {
\r
27 public splineType(org.w3c.dom.Document doc) {
\r
31 public splineType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
\r
32 super(doc, namespaceURI, prefix, name);
\r
35 public void adjustPrefix() {
\r
36 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "closed" );
\r
38 tmpNode = getDomNextChild( Attribute, null, "closed", tmpNode )
\r
40 internalAdjustPrefix(tmpNode, false);
\r
42 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "source" );
\r
44 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "source", tmpNode )
\r
46 internalAdjustPrefix(tmpNode, true);
\r
47 new sourceType(tmpNode).adjustPrefix();
\r
49 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices" );
\r
51 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices", tmpNode )
\r
53 internalAdjustPrefix(tmpNode, true);
\r
54 new control_verticesType(tmpNode).adjustPrefix();
\r
56 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
\r
58 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )
\r
60 internalAdjustPrefix(tmpNode, true);
\r
61 new extraType(tmpNode).adjustPrefix();
\r
64 public void setXsiType() {
\r
65 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
\r
66 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "spline");
\r
69 public static int getclosedMinCount() {
\r
73 public static int getclosedMaxCount() {
\r
77 public int getclosedCount() {
\r
78 return getDomChildCount(Attribute, null, "closed");
\r
81 public boolean hasclosed() {
\r
82 return hasDomChild(Attribute, null, "closed");
\r
85 public bool newclosed() {
\r
89 public bool getclosedAt(int index) throws Exception {
\r
90 return new bool(getDomNodeValue(getDomChildAt(Attribute, null, "closed", index)));
\r
93 public org.w3c.dom.Node getStartingclosedCursor() throws Exception {
\r
94 return getDomFirstChild(Attribute, null, "closed" );
\r
97 public org.w3c.dom.Node getAdvancedclosedCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
98 return getDomNextChild( Attribute, null, "closed", curNode );
\r
101 public bool getclosedValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
102 if( curNode == null )
\r
103 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
105 return new bool(getDomNodeValue(curNode));
\r
108 public bool getclosed() throws Exception
\r
110 return getclosedAt(0);
\r
113 public void removeclosedAt(int index) {
\r
114 removeDomChildAt(Attribute, null, "closed", index);
\r
117 public void removeclosed() {
\r
121 public org.w3c.dom.Node addclosed(bool value) {
\r
122 if( value.isNull() )
\r
125 return appendDomChild(Attribute, null, "closed", value.toString());
\r
128 public org.w3c.dom.Node addclosed(String value) throws Exception {
\r
129 return addclosed(new bool(value));
\r
132 public void insertclosedAt(bool value, int index) {
\r
133 insertDomChildAt(Attribute, null, "closed", index, value.toString());
\r
136 public void insertclosedAt(String value, int index) throws Exception {
\r
137 insertclosedAt(new bool(value), index);
\r
140 public void replaceclosedAt(bool value, int index) {
\r
141 replaceDomChildAt(Attribute, null, "closed", index, value.toString());
\r
144 public void replaceclosedAt(String value, int index) throws Exception {
\r
145 replaceclosedAt(new bool(value), index);
\r
148 public static int getsourceMinCount() {
\r
152 public static int getsourceMaxCount() {
\r
153 return Integer.MAX_VALUE;
\r
156 public int getsourceCount() {
\r
157 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "source");
\r
160 public boolean hassource() {
\r
161 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "source");
\r
164 public sourceType newsource() {
\r
165 return new sourceType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "source"));
\r
168 public sourceType getsourceAt(int index) throws Exception {
\r
169 return new sourceType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "source", index));
\r
172 public org.w3c.dom.Node getStartingsourceCursor() throws Exception {
\r
173 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "source" );
\r
176 public org.w3c.dom.Node getAdvancedsourceCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
177 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "source", curNode );
\r
180 public sourceType getsourceValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
181 if( curNode == null )
\r
182 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
184 return new sourceType(curNode);
\r
187 public sourceType getsource() throws Exception
\r
189 return getsourceAt(0);
\r
192 public void removesourceAt(int index) {
\r
193 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "source", index);
\r
196 public void removesource() {
\r
197 while (hassource())
\r
201 public org.w3c.dom.Node addsource(sourceType value) {
\r
202 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "source", value);
\r
205 public void insertsourceAt(sourceType value, int index) {
\r
206 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "source", index, value);
\r
209 public void replacesourceAt(sourceType value, int index) {
\r
210 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "source", index, value);
\r
213 public static int getcontrol_verticesMinCount() {
\r
217 public static int getcontrol_verticesMaxCount() {
\r
221 public int getcontrol_verticesCount() {
\r
222 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices");
\r
225 public boolean hascontrol_vertices() {
\r
226 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices");
\r
229 public control_verticesType newcontrol_vertices() {
\r
230 return new control_verticesType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "control_vertices"));
\r
233 public control_verticesType getcontrol_verticesAt(int index) throws Exception {
\r
234 return new control_verticesType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices", index));
\r
237 public org.w3c.dom.Node getStartingcontrol_verticesCursor() throws Exception {
\r
238 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices" );
\r
241 public org.w3c.dom.Node getAdvancedcontrol_verticesCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
242 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices", curNode );
\r
245 public control_verticesType getcontrol_verticesValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
246 if( curNode == null )
\r
247 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
249 return new control_verticesType(curNode);
\r
252 public control_verticesType getcontrol_vertices() throws Exception
\r
254 return getcontrol_verticesAt(0);
\r
257 public void removecontrol_verticesAt(int index) {
\r
258 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "control_vertices", index);
\r
261 public void removecontrol_vertices() {
\r
262 removecontrol_verticesAt(0);
\r
265 public org.w3c.dom.Node addcontrol_vertices(control_verticesType value) {
\r
266 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "control_vertices", value);
\r
269 public void insertcontrol_verticesAt(control_verticesType value, int index) {
\r
270 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "control_vertices", index, value);
\r
273 public void replacecontrol_verticesAt(control_verticesType value, int index) {
\r
274 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "control_vertices", index, value);
\r
277 public static int getextraMinCount() {
\r
281 public static int getextraMaxCount() {
\r
282 return Integer.MAX_VALUE;
\r
285 public int getextraCount() {
\r
286 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
\r
289 public boolean hasextra() {
\r
290 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
\r
293 public extraType newextra() {
\r
294 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));
\r
297 public extraType getextraAt(int index) throws Exception {
\r
298 return new extraType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index));
\r
301 public org.w3c.dom.Node getStartingextraCursor() throws Exception {
\r
302 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
\r
305 public org.w3c.dom.Node getAdvancedextraCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
306 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", curNode );
\r
309 public extraType getextraValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
310 if( curNode == null )
\r
311 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
313 return new extraType(curNode);
\r
316 public extraType getextra() throws Exception
\r
318 return getextraAt(0);
\r
321 public void removeextraAt(int index) {
\r
322 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);
\r
325 public void removeextra() {
\r
330 public org.w3c.dom.Node addextra(extraType value) {
\r
331 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);
\r
334 public void insertextraAt(extraType value, int index) {
\r
335 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
\r
338 public void replaceextraAt(extraType value, int index) {
\r
339 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
\r