2 * library_materialsType.java
\r
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
16 import com.jmex.xml.types.SchemaID;
\r
17 import com.jmex.xml.types.SchemaNCName;
\r
19 public class library_materialsType extends com.jmex.xml.xml.Node {
\r
21 public library_materialsType(library_materialsType node) {
\r
25 public library_materialsType(org.w3c.dom.Node node) {
\r
29 public library_materialsType(org.w3c.dom.Document doc) {
\r
33 public library_materialsType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
\r
34 super(doc, namespaceURI, prefix, name);
\r
37 public void adjustPrefix() {
\r
38 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "id" );
\r
40 tmpNode = getDomNextChild( Attribute, null, "id", tmpNode )
\r
42 internalAdjustPrefix(tmpNode, false);
\r
44 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "name" );
\r
46 tmpNode = getDomNextChild( Attribute, null, "name", tmpNode )
\r
48 internalAdjustPrefix(tmpNode, false);
\r
50 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset" );
\r
52 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", tmpNode )
\r
54 internalAdjustPrefix(tmpNode, true);
\r
55 new assetType(tmpNode).adjustPrefix();
\r
57 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "material" );
\r
59 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "material", tmpNode )
\r
61 internalAdjustPrefix(tmpNode, true);
\r
62 new materialType(tmpNode).adjustPrefix();
\r
64 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
\r
66 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )
\r
68 internalAdjustPrefix(tmpNode, true);
\r
69 new extraType(tmpNode).adjustPrefix();
\r
72 public void setXsiType() {
\r
73 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
\r
74 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "library_materials");
\r
77 public static int getidMinCount() {
\r
81 public static int getidMaxCount() {
\r
85 public int getidCount() {
\r
86 return getDomChildCount(Attribute, null, "id");
\r
89 public boolean hasid() {
\r
90 return hasDomChild(Attribute, null, "id");
\r
93 public SchemaID newid() {
\r
94 return new SchemaID();
\r
97 public SchemaID getidAt(int index) throws Exception {
\r
98 return new SchemaID(getDomNodeValue(getDomChildAt(Attribute, null, "id", index)));
\r
101 public org.w3c.dom.Node getStartingidCursor() throws Exception {
\r
102 return getDomFirstChild(Attribute, null, "id" );
\r
105 public org.w3c.dom.Node getAdvancedidCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
106 return getDomNextChild( Attribute, null, "id", curNode );
\r
109 public SchemaID getidValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
110 if( curNode == null )
\r
111 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
113 return new SchemaID(getDomNodeValue(curNode));
\r
116 public SchemaID getid() throws Exception
\r
121 public void removeidAt(int index) {
\r
122 removeDomChildAt(Attribute, null, "id", index);
\r
125 public void removeid() {
\r
129 public org.w3c.dom.Node addid(SchemaID value) {
\r
130 if( value.isNull() )
\r
133 return appendDomChild(Attribute, null, "id", value.toString());
\r
136 public org.w3c.dom.Node addid(String value) throws Exception {
\r
137 return addid(new SchemaID(value));
\r
140 public void insertidAt(SchemaID value, int index) {
\r
141 insertDomChildAt(Attribute, null, "id", index, value.toString());
\r
144 public void insertidAt(String value, int index) throws Exception {
\r
145 insertidAt(new SchemaID(value), index);
\r
148 public void replaceidAt(SchemaID value, int index) {
\r
149 replaceDomChildAt(Attribute, null, "id", index, value.toString());
\r
152 public void replaceidAt(String value, int index) throws Exception {
\r
153 replaceidAt(new SchemaID(value), index);
\r
156 public static int getnameMinCount() {
\r
160 public static int getnameMaxCount() {
\r
164 public int getnameCount() {
\r
165 return getDomChildCount(Attribute, null, "name");
\r
168 public boolean hasname() {
\r
169 return hasDomChild(Attribute, null, "name");
\r
172 public SchemaNCName newname() {
\r
173 return new SchemaNCName();
\r
176 public SchemaNCName getnameAt(int index) throws Exception {
\r
177 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "name", index)));
\r
180 public org.w3c.dom.Node getStartingnameCursor() throws Exception {
\r
181 return getDomFirstChild(Attribute, null, "name" );
\r
184 public org.w3c.dom.Node getAdvancednameCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
185 return getDomNextChild( Attribute, null, "name", curNode );
\r
188 public SchemaNCName getnameValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
189 if( curNode == null )
\r
190 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
192 return new SchemaNCName(getDomNodeValue(curNode));
\r
195 public SchemaNCName getname() throws Exception
\r
197 return getnameAt(0);
\r
200 public void removenameAt(int index) {
\r
201 removeDomChildAt(Attribute, null, "name", index);
\r
204 public void removename() {
\r
208 public org.w3c.dom.Node addname(SchemaNCName value) {
\r
209 if( value.isNull() )
\r
212 return appendDomChild(Attribute, null, "name", value.toString());
\r
215 public org.w3c.dom.Node addname(String value) throws Exception {
\r
216 return addname(new SchemaNCName(value));
\r
219 public void insertnameAt(SchemaNCName value, int index) {
\r
220 insertDomChildAt(Attribute, null, "name", index, value.toString());
\r
223 public void insertnameAt(String value, int index) throws Exception {
\r
224 insertnameAt(new SchemaNCName(value), index);
\r
227 public void replacenameAt(SchemaNCName value, int index) {
\r
228 replaceDomChildAt(Attribute, null, "name", index, value.toString());
\r
231 public void replacenameAt(String value, int index) throws Exception {
\r
232 replacenameAt(new SchemaNCName(value), index);
\r
235 public static int getassetMinCount() {
\r
239 public static int getassetMaxCount() {
\r
243 public int getassetCount() {
\r
244 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset");
\r
247 public boolean hasasset() {
\r
248 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset");
\r
251 public assetType newasset() {
\r
252 return new assetType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "asset"));
\r
255 public assetType getassetAt(int index) throws Exception {
\r
256 return new assetType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", index));
\r
259 public org.w3c.dom.Node getStartingassetCursor() throws Exception {
\r
260 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset" );
\r
263 public org.w3c.dom.Node getAdvancedassetCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
264 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", curNode );
\r
267 public assetType getassetValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
268 if( curNode == null )
\r
269 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
271 return new assetType(curNode);
\r
274 public assetType getasset() throws Exception
\r
276 return getassetAt(0);
\r
279 public void removeassetAt(int index) {
\r
280 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", index);
\r
283 public void removeasset() {
\r
287 public org.w3c.dom.Node addasset(assetType value) {
\r
288 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "asset", value);
\r
291 public void insertassetAt(assetType value, int index) {
\r
292 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "asset", index, value);
\r
295 public void replaceassetAt(assetType value, int index) {
\r
296 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "asset", index, value);
\r
299 public static int getmaterialMinCount() {
\r
303 public static int getmaterialMaxCount() {
\r
304 return Integer.MAX_VALUE;
\r
307 public int getmaterialCount() {
\r
308 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "material");
\r
311 public boolean hasmaterial() {
\r
312 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "material");
\r
315 public materialType newmaterial() {
\r
316 return new materialType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "material"));
\r
319 public materialType getmaterialAt(int index) throws Exception {
\r
320 return new materialType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "material", index));
\r
323 public org.w3c.dom.Node getStartingmaterialCursor() throws Exception {
\r
324 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "material" );
\r
327 public org.w3c.dom.Node getAdvancedmaterialCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
328 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "material", curNode );
\r
331 public materialType getmaterialValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
332 if( curNode == null )
\r
333 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
335 return new materialType(curNode);
\r
338 public materialType getmaterial() throws Exception
\r
340 return getmaterialAt(0);
\r
343 public void removematerialAt(int index) {
\r
344 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "material", index);
\r
347 public void removematerial() {
\r
348 while (hasmaterial())
\r
349 removematerialAt(0);
\r
352 public org.w3c.dom.Node addmaterial(materialType value) {
\r
353 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "material", value);
\r
356 public void insertmaterialAt(materialType value, int index) {
\r
357 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "material", index, value);
\r
360 public void replacematerialAt(materialType value, int index) {
\r
361 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "material", index, value);
\r
364 public static int getextraMinCount() {
\r
368 public static int getextraMaxCount() {
\r
369 return Integer.MAX_VALUE;
\r
372 public int getextraCount() {
\r
373 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
\r
376 public boolean hasextra() {
\r
377 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
\r
380 public extraType newextra() {
\r
381 return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));
\r
384 public extraType getextraAt(int index) throws Exception {
\r
385 return new extraType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index));
\r
388 public org.w3c.dom.Node getStartingextraCursor() throws Exception {
\r
389 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
\r
392 public org.w3c.dom.Node getAdvancedextraCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
393 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", curNode );
\r
396 public extraType getextraValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
397 if( curNode == null )
\r
398 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
400 return new extraType(curNode);
\r
403 public extraType getextra() throws Exception
\r
405 return getextraAt(0);
\r
408 public void removeextraAt(int index) {
\r
409 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);
\r
412 public void removeextra() {
\r
417 public org.w3c.dom.Node addextra(extraType value) {
\r
418 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);
\r
421 public void insertextraAt(extraType value, int index) {
\r
422 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
\r
425 public void replaceextraAt(extraType value, int index) {
\r
426 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
\r