OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / colorType.java
1 /**\r
2  * colorType.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 import com.jmex.xml.types.SchemaType;\r
18 \r
19 public class colorType extends com.jmex.xml.xml.Node {\r
20 \r
21         public colorType(colorType node) {\r
22                 super(node);\r
23         }\r
24 \r
25         public colorType(org.w3c.dom.Node node) {\r
26                 super(node);\r
27         }\r
28 \r
29         public colorType(org.w3c.dom.Document doc) {\r
30                 super(doc);\r
31         }\r
32 \r
33         public colorType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {\r
34                 super(doc, namespaceURI, prefix, name);\r
35         }\r
36         \r
37 \r
38         public fx_color_common getValue() {\r
39                 return new fx_color_common(getDomNodeValue(domNode));\r
40         }\r
41 \r
42         public void setValue(SchemaType value) {\r
43                 setDomNodeValue(domNode, value.toString());\r
44         }\r
45 \r
46         public void assign(SchemaType value) {\r
47                 setValue(value);\r
48         }\r
49 \r
50         public void adjustPrefix() {\r
51                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "sid" );\r
52                                 tmpNode != null;\r
53                                 tmpNode = getDomNextChild( Attribute, null, "sid", tmpNode )\r
54                         ) {\r
55                         internalAdjustPrefix(tmpNode, false);\r
56                 }\r
57         }\r
58         public void setXsiType() {\r
59                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;\r
60                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "color");\r
61         }\r
62 \r
63         public static int getsidMinCount() {\r
64                 return 0;\r
65         }\r
66 \r
67         public static int getsidMaxCount() {\r
68                 return 1;\r
69         }\r
70 \r
71         public int getsidCount() {\r
72                 return getDomChildCount(Attribute, null, "sid");\r
73         }\r
74 \r
75         public boolean hassid() {\r
76                 return hasDomChild(Attribute, null, "sid");\r
77         }\r
78 \r
79         public SchemaNCName newsid() {\r
80                 return new SchemaNCName();\r
81         }\r
82 \r
83         public SchemaNCName getsidAt(int index) throws Exception {\r
84                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "sid", index)));\r
85         }\r
86 \r
87         public org.w3c.dom.Node getStartingsidCursor() throws Exception {\r
88                 return getDomFirstChild(Attribute, null, "sid" );\r
89         }\r
90 \r
91         public org.w3c.dom.Node getAdvancedsidCursor( org.w3c.dom.Node curNode ) throws Exception {\r
92                 return getDomNextChild( Attribute, null, "sid", curNode );\r
93         }\r
94 \r
95         public SchemaNCName getsidValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
96                 if( curNode == null )\r
97                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
98                 else\r
99                         return new SchemaNCName(getDomNodeValue(curNode));\r
100         }\r
101 \r
102         public SchemaNCName getsid() throws Exception \r
103  {\r
104                 return getsidAt(0);\r
105         }\r
106 \r
107         public void removesidAt(int index) {\r
108                 removeDomChildAt(Attribute, null, "sid", index);\r
109         }\r
110 \r
111         public void removesid() {\r
112                 removesidAt(0);\r
113         }\r
114 \r
115         public org.w3c.dom.Node addsid(SchemaNCName value) {\r
116                 if( value.isNull() )\r
117                         return null;\r
118 \r
119                 return  appendDomChild(Attribute, null, "sid", value.toString());\r
120         }\r
121 \r
122         public org.w3c.dom.Node addsid(String value) throws Exception {\r
123                 return addsid(new SchemaNCName(value));\r
124         }\r
125 \r
126         public void insertsidAt(SchemaNCName value, int index) {\r
127                 insertDomChildAt(Attribute, null, "sid", index, value.toString());\r
128         }\r
129 \r
130         public void insertsidAt(String value, int index) throws Exception {\r
131                 insertsidAt(new SchemaNCName(value), index);\r
132         }\r
133 \r
134         public void replacesidAt(SchemaNCName value, int index) {\r
135                 replaceDomChildAt(Attribute, null, "sid", index, value.toString());\r
136         }\r
137 \r
138         public void replacesidAt(String value, int index) throws Exception {\r
139                 replacesidAt(new SchemaNCName(value), index);\r
140         }\r
141 \r
142 }\r