OSDN Git Service

94a71d4f98293b15d426bb535c7196e75acb4364
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / blend_colorType.java
1 /**
2  * blend_colorType.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
18 public class blend_colorType extends com.jmex.xml.xml.Node {
19
20         public blend_colorType(blend_colorType node) {
21                 super(node);
22         }
23
24         public blend_colorType(org.w3c.dom.Node node) {
25                 super(node);
26         }
27
28         public blend_colorType(org.w3c.dom.Document doc) {
29                 super(doc);
30         }
31
32         public blend_colorType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
33                 super(doc, namespaceURI, prefix, name);
34         }
35         
36         public void adjustPrefix() {
37                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "value" );
38                                 tmpNode != null;
39                                 tmpNode = getDomNextChild( Attribute, null, "value", tmpNode )
40                         ) {
41                         internalAdjustPrefix(tmpNode, false);
42                 }
43                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "param" );
44                                 tmpNode != null;
45                                 tmpNode = getDomNextChild( Attribute, null, "param", tmpNode )
46                         ) {
47                         internalAdjustPrefix(tmpNode, false);
48                 }
49         }
50         public void setXsiType() {
51                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
52                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "blend_color");
53         }
54
55         public static int getvalue2MinCount() {
56                 return 0;
57         }
58
59         public static int getvalue2MaxCount() {
60                 return 1;
61         }
62
63         public int getvalue2Count() {
64                 return getDomChildCount(Attribute, null, "value");
65         }
66
67         public boolean hasvalue2() {
68                 return hasDomChild(Attribute, null, "value");
69         }
70
71         public float4 newvalue2() {
72                 return new float4();
73         }
74
75         public float4 getvalue2At(int index) throws Exception {
76                 return new float4(getDomNodeValue(getDomChildAt(Attribute, null, "value", index)));
77         }
78
79         public org.w3c.dom.Node getStartingvalue2Cursor() throws Exception {
80                 return getDomFirstChild(Attribute, null, "value" );
81         }
82
83         public org.w3c.dom.Node getAdvancedvalue2Cursor( org.w3c.dom.Node curNode ) throws Exception {
84                 return getDomNextChild( Attribute, null, "value", curNode );
85         }
86
87         public float4 getvalue2ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
88                 if( curNode == null )
89                         throw new com.jmex.xml.xml.XmlException("Out of range");
90                 else
91                         return new float4(getDomNodeValue(curNode));
92         }
93
94         public float4 getvalue2() throws Exception 
95  {
96                 return getvalue2At(0);
97         }
98
99         public void removevalue2At(int index) {
100                 removeDomChildAt(Attribute, null, "value", index);
101         }
102
103         public void removevalue2() {
104                 removevalue2At(0);
105         }
106
107         public org.w3c.dom.Node addvalue2(float4 value) {
108                 if( value.isNull() )
109                         return null;
110
111                 return  appendDomChild(Attribute, null, "value", value.toString());
112         }
113
114         public org.w3c.dom.Node addvalue2(String value) throws Exception {
115                 return addvalue2(new float4(value));
116         }
117
118         public void insertvalue2At(float4 value, int index) {
119                 insertDomChildAt(Attribute, null, "value", index, value.toString());
120         }
121
122         public void insertvalue2At(String value, int index) throws Exception {
123                 insertvalue2At(new float4(value), index);
124         }
125
126         public void replacevalue2At(float4 value, int index) {
127                 replaceDomChildAt(Attribute, null, "value", index, value.toString());
128         }
129
130         public void replacevalue2At(String value, int index) throws Exception {
131                 replacevalue2At(new float4(value), index);
132         }
133
134         public static int getparamMinCount() {
135                 return 0;
136         }
137
138         public static int getparamMaxCount() {
139                 return 1;
140         }
141
142         public int getparamCount() {
143                 return getDomChildCount(Attribute, null, "param");
144         }
145
146         public boolean hasparam() {
147                 return hasDomChild(Attribute, null, "param");
148         }
149
150         public SchemaNCName newparam() {
151                 return new SchemaNCName();
152         }
153
154         public SchemaNCName getparamAt(int index) throws Exception {
155                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "param", index)));
156         }
157
158         public org.w3c.dom.Node getStartingparamCursor() throws Exception {
159                 return getDomFirstChild(Attribute, null, "param" );
160         }
161
162         public org.w3c.dom.Node getAdvancedparamCursor( org.w3c.dom.Node curNode ) throws Exception {
163                 return getDomNextChild( Attribute, null, "param", curNode );
164         }
165
166         public SchemaNCName getparamValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
167                 if( curNode == null )
168                         throw new com.jmex.xml.xml.XmlException("Out of range");
169                 else
170                         return new SchemaNCName(getDomNodeValue(curNode));
171         }
172
173         public SchemaNCName getparam() throws Exception 
174  {
175                 return getparamAt(0);
176         }
177
178         public void removeparamAt(int index) {
179                 removeDomChildAt(Attribute, null, "param", index);
180         }
181
182         public void removeparam() {
183                 removeparamAt(0);
184         }
185
186         public org.w3c.dom.Node addparam(SchemaNCName value) {
187                 if( value.isNull() )
188                         return null;
189
190                 return  appendDomChild(Attribute, null, "param", value.toString());
191         }
192
193         public org.w3c.dom.Node addparam(String value) throws Exception {
194                 return addparam(new SchemaNCName(value));
195         }
196
197         public void insertparamAt(SchemaNCName value, int index) {
198                 insertDomChildAt(Attribute, null, "param", index, value.toString());
199         }
200
201         public void insertparamAt(String value, int index) throws Exception {
202                 insertparamAt(new SchemaNCName(value), index);
203         }
204
205         public void replaceparamAt(SchemaNCName value, int index) {
206                 replaceDomChildAt(Attribute, null, "param", index, value.toString());
207         }
208
209         public void replaceparamAt(String value, int index) throws Exception {
210                 replaceparamAt(new SchemaNCName(value), index);
211         }
212
213 }