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;
18 public class blend_colorType extends com.jmex.xml.xml.Node {
20 public blend_colorType(blend_colorType node) {
24 public blend_colorType(org.w3c.dom.Node node) {
28 public blend_colorType(org.w3c.dom.Document doc) {
32 public blend_colorType(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
33 super(doc, namespaceURI, prefix, name);
36 public void adjustPrefix() {
37 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "value" );
39 tmpNode = getDomNextChild( Attribute, null, "value", tmpNode )
41 internalAdjustPrefix(tmpNode, false);
43 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "param" );
45 tmpNode = getDomNextChild( Attribute, null, "param", tmpNode )
47 internalAdjustPrefix(tmpNode, false);
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");
55 public static int getvalue2MinCount() {
59 public static int getvalue2MaxCount() {
63 public int getvalue2Count() {
64 return getDomChildCount(Attribute, null, "value");
67 public boolean hasvalue2() {
68 return hasDomChild(Attribute, null, "value");
71 public float4 newvalue2() {
75 public float4 getvalue2At(int index) throws Exception {
76 return new float4(getDomNodeValue(getDomChildAt(Attribute, null, "value", index)));
79 public org.w3c.dom.Node getStartingvalue2Cursor() throws Exception {
80 return getDomFirstChild(Attribute, null, "value" );
83 public org.w3c.dom.Node getAdvancedvalue2Cursor( org.w3c.dom.Node curNode ) throws Exception {
84 return getDomNextChild( Attribute, null, "value", curNode );
87 public float4 getvalue2ValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
89 throw new com.jmex.xml.xml.XmlException("Out of range");
91 return new float4(getDomNodeValue(curNode));
94 public float4 getvalue2() throws Exception
96 return getvalue2At(0);
99 public void removevalue2At(int index) {
100 removeDomChildAt(Attribute, null, "value", index);
103 public void removevalue2() {
107 public org.w3c.dom.Node addvalue2(float4 value) {
111 return appendDomChild(Attribute, null, "value", value.toString());
114 public org.w3c.dom.Node addvalue2(String value) throws Exception {
115 return addvalue2(new float4(value));
118 public void insertvalue2At(float4 value, int index) {
119 insertDomChildAt(Attribute, null, "value", index, value.toString());
122 public void insertvalue2At(String value, int index) throws Exception {
123 insertvalue2At(new float4(value), index);
126 public void replacevalue2At(float4 value, int index) {
127 replaceDomChildAt(Attribute, null, "value", index, value.toString());
130 public void replacevalue2At(String value, int index) throws Exception {
131 replacevalue2At(new float4(value), index);
134 public static int getparamMinCount() {
138 public static int getparamMaxCount() {
142 public int getparamCount() {
143 return getDomChildCount(Attribute, null, "param");
146 public boolean hasparam() {
147 return hasDomChild(Attribute, null, "param");
150 public SchemaNCName newparam() {
151 return new SchemaNCName();
154 public SchemaNCName getparamAt(int index) throws Exception {
155 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "param", index)));
158 public org.w3c.dom.Node getStartingparamCursor() throws Exception {
159 return getDomFirstChild(Attribute, null, "param" );
162 public org.w3c.dom.Node getAdvancedparamCursor( org.w3c.dom.Node curNode ) throws Exception {
163 return getDomNextChild( Attribute, null, "param", curNode );
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");
170 return new SchemaNCName(getDomNodeValue(curNode));
173 public SchemaNCName getparam() throws Exception
175 return getparamAt(0);
178 public void removeparamAt(int index) {
179 removeDomChildAt(Attribute, null, "param", index);
182 public void removeparam() {
186 public org.w3c.dom.Node addparam(SchemaNCName value) {
190 return appendDomChild(Attribute, null, "param", value.toString());
193 public org.w3c.dom.Node addparam(String value) throws Exception {
194 return addparam(new SchemaNCName(value));
197 public void insertparamAt(SchemaNCName value, int index) {
198 insertDomChildAt(Attribute, null, "param", index, value.toString());
201 public void insertparamAt(String value, int index) throws Exception {
202 insertparamAt(new SchemaNCName(value), index);
205 public void replaceparamAt(SchemaNCName value, int index) {
206 replaceDomChildAt(Attribute, null, "param", index, value.toString());
209 public void replaceparamAt(String value, int index) throws Exception {
210 replaceparamAt(new SchemaNCName(value), index);