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.SchemaNCName;
\r
18 public class paramType2 extends com.jmex.xml.xml.Node {
\r
20 public paramType2(paramType2 node) {
\r
24 public paramType2(org.w3c.dom.Node node) {
\r
28 public paramType2(org.w3c.dom.Document doc) {
\r
32 public paramType2(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
\r
33 super(doc, namespaceURI, prefix, name);
\r
36 public void adjustPrefix() {
\r
37 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "ref" );
\r
39 tmpNode = getDomNextChild( Attribute, null, "ref", tmpNode )
\r
41 internalAdjustPrefix(tmpNode, false);
\r
44 public void setXsiType() {
\r
45 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
\r
46 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "param");
\r
49 public static int getrefMinCount() {
\r
53 public static int getrefMaxCount() {
\r
57 public int getrefCount() {
\r
58 return getDomChildCount(Attribute, null, "ref");
\r
61 public boolean hasref() {
\r
62 return hasDomChild(Attribute, null, "ref");
\r
65 public SchemaNCName newref() {
\r
66 return new SchemaNCName();
\r
69 public SchemaNCName getrefAt(int index) throws Exception {
\r
70 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "ref", index)));
\r
73 public org.w3c.dom.Node getStartingrefCursor() throws Exception {
\r
74 return getDomFirstChild(Attribute, null, "ref" );
\r
77 public org.w3c.dom.Node getAdvancedrefCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
78 return getDomNextChild( Attribute, null, "ref", curNode );
\r
81 public SchemaNCName getrefValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
82 if( curNode == null )
\r
83 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
85 return new SchemaNCName(getDomNodeValue(curNode));
\r
88 public SchemaNCName getref() throws Exception
\r
93 public void removerefAt(int index) {
\r
94 removeDomChildAt(Attribute, null, "ref", index);
\r
97 public void removeref() {
\r
101 public org.w3c.dom.Node addref(SchemaNCName value) {
\r
102 if( value.isNull() )
\r
105 return appendDomChild(Attribute, null, "ref", value.toString());
\r
108 public org.w3c.dom.Node addref(String value) throws Exception {
\r
109 return addref(new SchemaNCName(value));
\r
112 public void insertrefAt(SchemaNCName value, int index) {
\r
113 insertDomChildAt(Attribute, null, "ref", index, value.toString());
\r
116 public void insertrefAt(String value, int index) throws Exception {
\r
117 insertrefAt(new SchemaNCName(value), index);
\r
120 public void replacerefAt(SchemaNCName value, int index) {
\r
121 replaceDomChildAt(Attribute, null, "ref", index, value.toString());
\r
124 public void replacerefAt(String value, int index) throws Exception {
\r
125 replacerefAt(new SchemaNCName(value), index);
\r