4 * This file was generated by XMLSpy 2007sp2 Enterprise Edition.
6 * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
7 * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
9 * Refer to the XMLSpy Documentation for further details.
10 * http://www.altova.com/xmlspy
14 package com.jmex.model.collada.schema;
17 public class boxType extends com.jmex.xml.xml.Node {
19 public boxType(boxType node) {
23 public boxType(org.w3c.dom.Node node) {
27 public boxType(org.w3c.dom.Document doc) {
31 public boxType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
32 super(doc, namespaceURI, prefix, name);
35 public void adjustPrefix() {
36 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents" );
38 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", tmpNode )
40 internalAdjustPrefix(tmpNode, true);
42 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
44 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )
46 internalAdjustPrefix(tmpNode, true);
47 new extraType(tmpNode).adjustPrefix();
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");
55 public static int gethalf_extentsMinCount() {
59 public static int gethalf_extentsMaxCount() {
63 public int gethalf_extentsCount() {
64 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents");
67 public boolean hashalf_extents() {
68 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents");
71 public float3 newhalf_extents() {
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)));
79 public org.w3c.dom.Node getStartinghalf_extentsCursor() throws Exception {
80 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents" );
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 );
87 public float3 gethalf_extentsValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
89 throw new com.jmex.xml.xml.XmlException("Out of range");
91 return new float3(getDomNodeValue(curNode));
94 public float3 gethalf_extents() throws Exception
96 return gethalf_extentsAt(0);
99 public void removehalf_extentsAt(int index) {
100 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", index);
103 public void removehalf_extents() {
104 removehalf_extentsAt(0);
107 public org.w3c.dom.Node addhalf_extents(float3 value) {
111 return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", value.toString());
114 public org.w3c.dom.Node addhalf_extents(String value) throws Exception {
115 return addhalf_extents(new float3(value));
118 public void inserthalf_extentsAt(float3 value, int index) {
119 insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", index, value.toString());
122 public void inserthalf_extentsAt(String value, int index) throws Exception {
123 inserthalf_extentsAt(new float3(value), index);
126 public void replacehalf_extentsAt(float3 value, int index) {
127 replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", index, value.toString());
130 public void replacehalf_extentsAt(String value, int index) throws Exception {
131 replacehalf_extentsAt(new float3(value), index);
134 public static int getextraMinCount() {
138 public static int getextraMaxCount() {
139 return Integer.MAX_VALUE;
142 public int getextraCount() {
143 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
146 public boolean hasextra() {
147 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
150 public extraType newextra() {
151 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));
154 public extraType getextraAt(int index) throws Exception {
155 return new extraType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index));
158 public org.w3c.dom.Node getStartingextraCursor() throws Exception {
159 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
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 );
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");
170 return new extraType(curNode);
173 public extraType getextra() throws Exception
175 return getextraAt(0);
178 public void removeextraAt(int index) {
179 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);
182 public void removeextra() {
187 public org.w3c.dom.Node addextra(extraType value) {
188 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);
191 public void insertextraAt(extraType value, int index) {
192 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
195 public void replaceextraAt(extraType value, int index) {
196 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);