2 * technique_commonType4.java
\r
4 * This file was generated by XMLSpy 2007sp2 Enterprise Edition.
\r
6 * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
\r
7 * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
\r
9 * Refer to the XMLSpy Documentation for further details.
\r
10 * http://www.altova.com/xmlspy
\r
14 package com.jmex.model.collada.schema;
\r
17 public class technique_commonType4 extends com.jmex.xml.xml.Node {
\r
19 public technique_commonType4(technique_commonType4 node) {
\r
23 public technique_commonType4(org.w3c.dom.Node node) {
\r
27 public technique_commonType4(org.w3c.dom.Document doc) {
\r
31 public technique_commonType4(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
\r
32 super(doc, namespaceURI, prefix, name);
\r
35 public void adjustPrefix() {
\r
36 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient" );
\r
38 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient", tmpNode )
\r
40 internalAdjustPrefix(tmpNode, true);
\r
41 new ambientType(tmpNode).adjustPrefix();
\r
43 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "directional" );
\r
45 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "directional", tmpNode )
\r
47 internalAdjustPrefix(tmpNode, true);
\r
48 new directionalType(tmpNode).adjustPrefix();
\r
50 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "point" );
\r
52 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "point", tmpNode )
\r
54 internalAdjustPrefix(tmpNode, true);
\r
55 new pointType(tmpNode).adjustPrefix();
\r
57 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "spot" );
\r
59 tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "spot", tmpNode )
\r
61 internalAdjustPrefix(tmpNode, true);
\r
62 new spotType(tmpNode).adjustPrefix();
\r
65 public void setXsiType() {
\r
66 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
\r
67 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "technique_common");
\r
70 public static int getambientMinCount() {
\r
74 public static int getambientMaxCount() {
\r
78 public int getambientCount() {
\r
79 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient");
\r
82 public boolean hasambient() {
\r
83 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient");
\r
86 public ambientType newambient() {
\r
87 return new ambientType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "ambient"));
\r
90 public ambientType getambientAt(int index) throws Exception {
\r
91 return new ambientType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient", index));
\r
94 public org.w3c.dom.Node getStartingambientCursor() throws Exception {
\r
95 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient" );
\r
98 public org.w3c.dom.Node getAdvancedambientCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
99 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient", curNode );
\r
102 public ambientType getambientValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
103 if( curNode == null )
\r
104 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
106 return new ambientType(curNode);
\r
109 public ambientType getambient() throws Exception
\r
111 return getambientAt(0);
\r
114 public void removeambientAt(int index) {
\r
115 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "ambient", index);
\r
118 public void removeambient() {
\r
119 removeambientAt(0);
\r
122 public org.w3c.dom.Node addambient(ambientType value) {
\r
123 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "ambient", value);
\r
126 public void insertambientAt(ambientType value, int index) {
\r
127 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "ambient", index, value);
\r
130 public void replaceambientAt(ambientType value, int index) {
\r
131 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "ambient", index, value);
\r
134 public static int getdirectionalMinCount() {
\r
138 public static int getdirectionalMaxCount() {
\r
142 public int getdirectionalCount() {
\r
143 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "directional");
\r
146 public boolean hasdirectional() {
\r
147 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "directional");
\r
150 public directionalType newdirectional() {
\r
151 return new directionalType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "directional"));
\r
154 public directionalType getdirectionalAt(int index) throws Exception {
\r
155 return new directionalType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "directional", index));
\r
158 public org.w3c.dom.Node getStartingdirectionalCursor() throws Exception {
\r
159 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "directional" );
\r
162 public org.w3c.dom.Node getAdvanceddirectionalCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
163 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "directional", curNode );
\r
166 public directionalType getdirectionalValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
167 if( curNode == null )
\r
168 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
170 return new directionalType(curNode);
\r
173 public directionalType getdirectional() throws Exception
\r
175 return getdirectionalAt(0);
\r
178 public void removedirectionalAt(int index) {
\r
179 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "directional", index);
\r
182 public void removedirectional() {
\r
183 removedirectionalAt(0);
\r
186 public org.w3c.dom.Node adddirectional(directionalType value) {
\r
187 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "directional", value);
\r
190 public void insertdirectionalAt(directionalType value, int index) {
\r
191 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "directional", index, value);
\r
194 public void replacedirectionalAt(directionalType value, int index) {
\r
195 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "directional", index, value);
\r
198 public static int getpointMinCount() {
\r
202 public static int getpointMaxCount() {
\r
206 public int getpointCount() {
\r
207 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "point");
\r
210 public boolean haspoint() {
\r
211 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "point");
\r
214 public pointType newpoint() {
\r
215 return new pointType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "point"));
\r
218 public pointType getpointAt(int index) throws Exception {
\r
219 return new pointType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "point", index));
\r
222 public org.w3c.dom.Node getStartingpointCursor() throws Exception {
\r
223 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "point" );
\r
226 public org.w3c.dom.Node getAdvancedpointCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
227 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "point", curNode );
\r
230 public pointType getpointValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
231 if( curNode == null )
\r
232 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
234 return new pointType(curNode);
\r
237 public pointType getpoint() throws Exception
\r
239 return getpointAt(0);
\r
242 public void removepointAt(int index) {
\r
243 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "point", index);
\r
246 public void removepoint() {
\r
250 public org.w3c.dom.Node addpoint(pointType value) {
\r
251 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "point", value);
\r
254 public void insertpointAt(pointType value, int index) {
\r
255 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "point", index, value);
\r
258 public void replacepointAt(pointType value, int index) {
\r
259 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "point", index, value);
\r
262 public static int getspotMinCount() {
\r
266 public static int getspotMaxCount() {
\r
270 public int getspotCount() {
\r
271 return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "spot");
\r
274 public boolean hasspot() {
\r
275 return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "spot");
\r
278 public spotType newspot() {
\r
279 return new spotType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "spot"));
\r
282 public spotType getspotAt(int index) throws Exception {
\r
283 return new spotType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "spot", index));
\r
286 public org.w3c.dom.Node getStartingspotCursor() throws Exception {
\r
287 return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "spot" );
\r
290 public org.w3c.dom.Node getAdvancedspotCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
291 return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "spot", curNode );
\r
294 public spotType getspotValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
\r
295 if( curNode == null )
\r
296 throw new com.jmex.xml.xml.XmlException("Out of range");
\r
298 return new spotType(curNode);
\r
301 public spotType getspot() throws Exception
\r
303 return getspotAt(0);
\r
306 public void removespotAt(int index) {
\r
307 removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "spot", index);
\r
310 public void removespot() {
\r
314 public org.w3c.dom.Node addspot(spotType value) {
\r
315 return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "spot", value);
\r
318 public void insertspotAt(spotType value, int index) {
\r
319 insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "spot", index, value);
\r
322 public void replacespotAt(spotType value, int index) {
\r
323 replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "spot", index, value);
\r