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;
16 import com.jmex.xml.types.SchemaNCName;
17 import com.jmex.xml.types.SchemaToken;
19 public class bindType extends com.jmex.xml.xml.Node {
21 public bindType(bindType node) {
25 public bindType(org.w3c.dom.Node node) {
29 public bindType(org.w3c.dom.Document doc) {
33 public bindType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
34 super(doc, namespaceURI, prefix, name);
37 public void adjustPrefix() {
38 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "semantic" );
40 tmpNode = getDomNextChild( Attribute, null, "semantic", tmpNode )
42 internalAdjustPrefix(tmpNode, false);
44 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "target" );
46 tmpNode = getDomNextChild( Attribute, null, "target", tmpNode )
48 internalAdjustPrefix(tmpNode, false);
51 public void setXsiType() {
52 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
53 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "bind");
56 public static int getsemanticMinCount() {
60 public static int getsemanticMaxCount() {
64 public int getsemanticCount() {
65 return getDomChildCount(Attribute, null, "semantic");
68 public boolean hassemantic() {
69 return hasDomChild(Attribute, null, "semantic");
72 public SchemaNCName newsemantic() {
73 return new SchemaNCName();
76 public SchemaNCName getsemanticAt(int index) throws Exception {
77 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "semantic", index)));
80 public org.w3c.dom.Node getStartingsemanticCursor() throws Exception {
81 return getDomFirstChild(Attribute, null, "semantic" );
84 public org.w3c.dom.Node getAdvancedsemanticCursor( org.w3c.dom.Node curNode ) throws Exception {
85 return getDomNextChild( Attribute, null, "semantic", curNode );
88 public SchemaNCName getsemanticValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
90 throw new com.jmex.xml.xml.XmlException("Out of range");
92 return new SchemaNCName(getDomNodeValue(curNode));
95 public SchemaNCName getsemantic() throws Exception
97 return getsemanticAt(0);
100 public void removesemanticAt(int index) {
101 removeDomChildAt(Attribute, null, "semantic", index);
104 public void removesemantic() {
108 public org.w3c.dom.Node addsemantic(SchemaNCName value) {
112 return appendDomChild(Attribute, null, "semantic", value.toString());
115 public org.w3c.dom.Node addsemantic(String value) throws Exception {
116 return addsemantic(new SchemaNCName(value));
119 public void insertsemanticAt(SchemaNCName value, int index) {
120 insertDomChildAt(Attribute, null, "semantic", index, value.toString());
123 public void insertsemanticAt(String value, int index) throws Exception {
124 insertsemanticAt(new SchemaNCName(value), index);
127 public void replacesemanticAt(SchemaNCName value, int index) {
128 replaceDomChildAt(Attribute, null, "semantic", index, value.toString());
131 public void replacesemanticAt(String value, int index) throws Exception {
132 replacesemanticAt(new SchemaNCName(value), index);
135 public static int gettargetMinCount() {
139 public static int gettargetMaxCount() {
143 public int gettargetCount() {
144 return getDomChildCount(Attribute, null, "target");
147 public boolean hastarget() {
148 return hasDomChild(Attribute, null, "target");
151 public SchemaToken newtarget() {
152 return new SchemaToken();
155 public SchemaToken gettargetAt(int index) throws Exception {
156 return new SchemaToken(getDomNodeValue(getDomChildAt(Attribute, null, "target", index)));
159 public org.w3c.dom.Node getStartingtargetCursor() throws Exception {
160 return getDomFirstChild(Attribute, null, "target" );
163 public org.w3c.dom.Node getAdvancedtargetCursor( org.w3c.dom.Node curNode ) throws Exception {
164 return getDomNextChild( Attribute, null, "target", curNode );
167 public SchemaToken gettargetValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
168 if( curNode == null )
169 throw new com.jmex.xml.xml.XmlException("Out of range");
171 return new SchemaToken(getDomNodeValue(curNode));
174 public SchemaToken gettarget() throws Exception
176 return gettargetAt(0);
179 public void removetargetAt(int index) {
180 removeDomChildAt(Attribute, null, "target", index);
183 public void removetarget() {
187 public org.w3c.dom.Node addtarget(SchemaToken value) {
191 return appendDomChild(Attribute, null, "target", value.toString());
194 public org.w3c.dom.Node addtarget(String value) throws Exception {
195 return addtarget(new SchemaToken(value));
198 public void inserttargetAt(SchemaToken value, int index) {
199 insertDomChildAt(Attribute, null, "target", index, value.toString());
202 public void inserttargetAt(String value, int index) throws Exception {
203 inserttargetAt(new SchemaToken(value), index);
206 public void replacetargetAt(SchemaToken value, int index) {
207 replaceDomChildAt(Attribute, null, "target", index, value.toString());
210 public void replacetargetAt(String value, int index) throws Exception {
211 replacetargetAt(new SchemaToken(value), index);