2 * cg_connect_param.java
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;
17 public class cg_connect_param extends com.jmex.xml.xml.Node {
19 public cg_connect_param(cg_connect_param node) {
23 public cg_connect_param(org.w3c.dom.Node node) {
27 public cg_connect_param(org.w3c.dom.Document doc) {
31 public cg_connect_param(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
32 super(doc, namespaceURI, prefix, name);
35 public void adjustPrefix() {
36 for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "ref" );
38 tmpNode = getDomNextChild( Attribute, null, "ref", tmpNode )
40 internalAdjustPrefix(tmpNode, false);
43 public void setXsiType() {
44 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
45 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "cg_connect_param");
48 public static int getrefMinCount() {
52 public static int getrefMaxCount() {
56 public int getrefCount() {
57 return getDomChildCount(Attribute, null, "ref");
60 public boolean hasref() {
61 return hasDomChild(Attribute, null, "ref");
64 public cg_identifier newref() {
65 return new cg_identifier();
68 public cg_identifier getrefAt(int index) throws Exception {
69 return new cg_identifier(getDomNodeValue(getDomChildAt(Attribute, null, "ref", index)));
72 public org.w3c.dom.Node getStartingrefCursor() throws Exception {
73 return getDomFirstChild(Attribute, null, "ref" );
76 public org.w3c.dom.Node getAdvancedrefCursor( org.w3c.dom.Node curNode ) throws Exception {
77 return getDomNextChild( Attribute, null, "ref", curNode );
80 public cg_identifier getrefValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
82 throw new com.jmex.xml.xml.XmlException("Out of range");
84 return new cg_identifier(getDomNodeValue(curNode));
87 public cg_identifier getref() throws Exception
92 public void removerefAt(int index) {
93 removeDomChildAt(Attribute, null, "ref", index);
96 public void removeref() {
100 public org.w3c.dom.Node addref(cg_identifier value) {
104 return appendDomChild(Attribute, null, "ref", value.toString());
107 public org.w3c.dom.Node addref(String value) throws Exception {
108 return addref(new cg_identifier(value));
111 public void insertrefAt(cg_identifier value, int index) {
112 insertDomChildAt(Attribute, null, "ref", index, value.toString());
115 public void insertrefAt(String value, int index) throws Exception {
116 insertrefAt(new cg_identifier(value), index);
119 public void replacerefAt(cg_identifier value, int index) {
120 replaceDomChildAt(Attribute, null, "ref", index, value.toString());
123 public void replacerefAt(String value, int index) throws Exception {
124 replacerefAt(new cg_identifier(value), index);