OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / texcoordType.java
1 /**\r
2  * texcoordType.java\r
3  *\r
4  * This file was generated by XMLSpy 2007sp2 Enterprise Edition.\r
5  *\r
6  * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE\r
7  * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.\r
8  *\r
9  * Refer to the XMLSpy Documentation for further details.\r
10  * http://www.altova.com/xmlspy\r
11  */\r
12 \r
13 \r
14 package com.jmex.model.collada.schema;\r
15 \r
16 import com.jmex.xml.types.SchemaNCName;\r
17 \r
18 public class texcoordType extends com.jmex.xml.xml.Node {\r
19 \r
20         public texcoordType(texcoordType node) {\r
21                 super(node);\r
22         }\r
23 \r
24         public texcoordType(org.w3c.dom.Node node) {\r
25                 super(node);\r
26         }\r
27 \r
28         public texcoordType(org.w3c.dom.Document doc) {\r
29                 super(doc);\r
30         }\r
31 \r
32         public texcoordType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {\r
33                 super(doc, namespaceURI, prefix, name);\r
34         }\r
35         \r
36         public void adjustPrefix() {\r
37                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "semantic" );\r
38                                 tmpNode != null;\r
39                                 tmpNode = getDomNextChild( Attribute, null, "semantic", tmpNode )\r
40                         ) {\r
41                         internalAdjustPrefix(tmpNode, false);\r
42                 }\r
43         }\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", "texcoord");\r
47         }\r
48 \r
49         public static int getsemanticMinCount() {\r
50                 return 0;\r
51         }\r
52 \r
53         public static int getsemanticMaxCount() {\r
54                 return 1;\r
55         }\r
56 \r
57         public int getsemanticCount() {\r
58                 return getDomChildCount(Attribute, null, "semantic");\r
59         }\r
60 \r
61         public boolean hassemantic() {\r
62                 return hasDomChild(Attribute, null, "semantic");\r
63         }\r
64 \r
65         public SchemaNCName newsemantic() {\r
66                 return new SchemaNCName();\r
67         }\r
68 \r
69         public SchemaNCName getsemanticAt(int index) throws Exception {\r
70                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "semantic", index)));\r
71         }\r
72 \r
73         public org.w3c.dom.Node getStartingsemanticCursor() throws Exception {\r
74                 return getDomFirstChild(Attribute, null, "semantic" );\r
75         }\r
76 \r
77         public org.w3c.dom.Node getAdvancedsemanticCursor( org.w3c.dom.Node curNode ) throws Exception {\r
78                 return getDomNextChild( Attribute, null, "semantic", curNode );\r
79         }\r
80 \r
81         public SchemaNCName getsemanticValueAtCursor( 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
84                 else\r
85                         return new SchemaNCName(getDomNodeValue(curNode));\r
86         }\r
87 \r
88         public SchemaNCName getsemantic() throws Exception \r
89  {\r
90                 return getsemanticAt(0);\r
91         }\r
92 \r
93         public void removesemanticAt(int index) {\r
94                 removeDomChildAt(Attribute, null, "semantic", index);\r
95         }\r
96 \r
97         public void removesemantic() {\r
98                 removesemanticAt(0);\r
99         }\r
100 \r
101         public org.w3c.dom.Node addsemantic(SchemaNCName value) {\r
102                 if( value.isNull() )\r
103                         return null;\r
104 \r
105                 return  appendDomChild(Attribute, null, "semantic", value.toString());\r
106         }\r
107 \r
108         public org.w3c.dom.Node addsemantic(String value) throws Exception {\r
109                 return addsemantic(new SchemaNCName(value));\r
110         }\r
111 \r
112         public void insertsemanticAt(SchemaNCName value, int index) {\r
113                 insertDomChildAt(Attribute, null, "semantic", index, value.toString());\r
114         }\r
115 \r
116         public void insertsemanticAt(String value, int index) throws Exception {\r
117                 insertsemanticAt(new SchemaNCName(value), index);\r
118         }\r
119 \r
120         public void replacesemanticAt(SchemaNCName value, int index) {\r
121                 replaceDomChildAt(Attribute, null, "semantic", index, value.toString());\r
122         }\r
123 \r
124         public void replacesemanticAt(String value, int index) throws Exception {\r
125                 replacesemanticAt(new SchemaNCName(value), index);\r
126         }\r
127 \r
128 }\r