OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / bindType.java
1 /**
2  * bindType.java
3  *
4  * This file was generated by XMLSpy 2007sp2 Enterprise Edition.
5  *
6  * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
7  * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
8  *
9  * Refer to the XMLSpy Documentation for further details.
10  * http://www.altova.com/xmlspy
11  */
12
13
14 package com.jmex.model.collada.schema;
15
16 import com.jmex.xml.types.SchemaNCName;
17 import com.jmex.xml.types.SchemaToken;
18
19 public class bindType extends com.jmex.xml.xml.Node {
20
21         public bindType(bindType node) {
22                 super(node);
23         }
24
25         public bindType(org.w3c.dom.Node node) {
26                 super(node);
27         }
28
29         public bindType(org.w3c.dom.Document doc) {
30                 super(doc);
31         }
32
33         public bindType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
34                 super(doc, namespaceURI, prefix, name);
35         }
36         
37         public void adjustPrefix() {
38                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "semantic" );
39                                 tmpNode != null;
40                                 tmpNode = getDomNextChild( Attribute, null, "semantic", tmpNode )
41                         ) {
42                         internalAdjustPrefix(tmpNode, false);
43                 }
44                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "target" );
45                                 tmpNode != null;
46                                 tmpNode = getDomNextChild( Attribute, null, "target", tmpNode )
47                         ) {
48                         internalAdjustPrefix(tmpNode, false);
49                 }
50         }
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");
54         }
55
56         public static int getsemanticMinCount() {
57                 return 1;
58         }
59
60         public static int getsemanticMaxCount() {
61                 return 1;
62         }
63
64         public int getsemanticCount() {
65                 return getDomChildCount(Attribute, null, "semantic");
66         }
67
68         public boolean hassemantic() {
69                 return hasDomChild(Attribute, null, "semantic");
70         }
71
72         public SchemaNCName newsemantic() {
73                 return new SchemaNCName();
74         }
75
76         public SchemaNCName getsemanticAt(int index) throws Exception {
77                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "semantic", index)));
78         }
79
80         public org.w3c.dom.Node getStartingsemanticCursor() throws Exception {
81                 return getDomFirstChild(Attribute, null, "semantic" );
82         }
83
84         public org.w3c.dom.Node getAdvancedsemanticCursor( org.w3c.dom.Node curNode ) throws Exception {
85                 return getDomNextChild( Attribute, null, "semantic", curNode );
86         }
87
88         public SchemaNCName getsemanticValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
89                 if( curNode == null )
90                         throw new com.jmex.xml.xml.XmlException("Out of range");
91                 else
92                         return new SchemaNCName(getDomNodeValue(curNode));
93         }
94
95         public SchemaNCName getsemantic() throws Exception 
96  {
97                 return getsemanticAt(0);
98         }
99
100         public void removesemanticAt(int index) {
101                 removeDomChildAt(Attribute, null, "semantic", index);
102         }
103
104         public void removesemantic() {
105                 removesemanticAt(0);
106         }
107
108         public org.w3c.dom.Node addsemantic(SchemaNCName value) {
109                 if( value.isNull() )
110                         return null;
111
112                 return  appendDomChild(Attribute, null, "semantic", value.toString());
113         }
114
115         public org.w3c.dom.Node addsemantic(String value) throws Exception {
116                 return addsemantic(new SchemaNCName(value));
117         }
118
119         public void insertsemanticAt(SchemaNCName value, int index) {
120                 insertDomChildAt(Attribute, null, "semantic", index, value.toString());
121         }
122
123         public void insertsemanticAt(String value, int index) throws Exception {
124                 insertsemanticAt(new SchemaNCName(value), index);
125         }
126
127         public void replacesemanticAt(SchemaNCName value, int index) {
128                 replaceDomChildAt(Attribute, null, "semantic", index, value.toString());
129         }
130
131         public void replacesemanticAt(String value, int index) throws Exception {
132                 replacesemanticAt(new SchemaNCName(value), index);
133         }
134
135         public static int gettargetMinCount() {
136                 return 1;
137         }
138
139         public static int gettargetMaxCount() {
140                 return 1;
141         }
142
143         public int gettargetCount() {
144                 return getDomChildCount(Attribute, null, "target");
145         }
146
147         public boolean hastarget() {
148                 return hasDomChild(Attribute, null, "target");
149         }
150
151         public SchemaToken newtarget() {
152                 return new SchemaToken();
153         }
154
155         public SchemaToken gettargetAt(int index) throws Exception {
156                 return new SchemaToken(getDomNodeValue(getDomChildAt(Attribute, null, "target", index)));
157         }
158
159         public org.w3c.dom.Node getStartingtargetCursor() throws Exception {
160                 return getDomFirstChild(Attribute, null, "target" );
161         }
162
163         public org.w3c.dom.Node getAdvancedtargetCursor( org.w3c.dom.Node curNode ) throws Exception {
164                 return getDomNextChild( Attribute, null, "target", curNode );
165         }
166
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");
170                 else
171                         return new SchemaToken(getDomNodeValue(curNode));
172         }
173
174         public SchemaToken gettarget() throws Exception 
175  {
176                 return gettargetAt(0);
177         }
178
179         public void removetargetAt(int index) {
180                 removeDomChildAt(Attribute, null, "target", index);
181         }
182
183         public void removetarget() {
184                 removetargetAt(0);
185         }
186
187         public org.w3c.dom.Node addtarget(SchemaToken value) {
188                 if( value.isNull() )
189                         return null;
190
191                 return  appendDomChild(Attribute, null, "target", value.toString());
192         }
193
194         public org.w3c.dom.Node addtarget(String value) throws Exception {
195                 return addtarget(new SchemaToken(value));
196         }
197
198         public void inserttargetAt(SchemaToken value, int index) {
199                 insertDomChildAt(Attribute, null, "target", index, value.toString());
200         }
201
202         public void inserttargetAt(String value, int index) throws Exception {
203                 inserttargetAt(new SchemaToken(value), index);
204         }
205
206         public void replacetargetAt(SchemaToken value, int index) {
207                 replaceDomChildAt(Attribute, null, "target", index, value.toString());
208         }
209
210         public void replacetargetAt(String value, int index) throws Exception {
211                 replacetargetAt(new SchemaToken(value), index);
212         }
213
214 }