OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / cg_connect_param.java
1 /**
2  * cg_connect_param.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
17 public class cg_connect_param extends com.jmex.xml.xml.Node {
18
19         public cg_connect_param(cg_connect_param node) {
20                 super(node);
21         }
22
23         public cg_connect_param(org.w3c.dom.Node node) {
24                 super(node);
25         }
26
27         public cg_connect_param(org.w3c.dom.Document doc) {
28                 super(doc);
29         }
30
31         public cg_connect_param(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
32                 super(doc, namespaceURI, prefix, name);
33         }
34         
35         public void adjustPrefix() {
36                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "ref" );
37                                 tmpNode != null;
38                                 tmpNode = getDomNextChild( Attribute, null, "ref", tmpNode )
39                         ) {
40                         internalAdjustPrefix(tmpNode, false);
41                 }
42         }
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");
46         }
47
48         public static int getrefMinCount() {
49                 return 1;
50         }
51
52         public static int getrefMaxCount() {
53                 return 1;
54         }
55
56         public int getrefCount() {
57                 return getDomChildCount(Attribute, null, "ref");
58         }
59
60         public boolean hasref() {
61                 return hasDomChild(Attribute, null, "ref");
62         }
63
64         public cg_identifier newref() {
65                 return new cg_identifier();
66         }
67
68         public cg_identifier getrefAt(int index) throws Exception {
69                 return new cg_identifier(getDomNodeValue(getDomChildAt(Attribute, null, "ref", index)));
70         }
71
72         public org.w3c.dom.Node getStartingrefCursor() throws Exception {
73                 return getDomFirstChild(Attribute, null, "ref" );
74         }
75
76         public org.w3c.dom.Node getAdvancedrefCursor( org.w3c.dom.Node curNode ) throws Exception {
77                 return getDomNextChild( Attribute, null, "ref", curNode );
78         }
79
80         public cg_identifier getrefValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
81                 if( curNode == null )
82                         throw new com.jmex.xml.xml.XmlException("Out of range");
83                 else
84                         return new cg_identifier(getDomNodeValue(curNode));
85         }
86
87         public cg_identifier getref() throws Exception 
88  {
89                 return getrefAt(0);
90         }
91
92         public void removerefAt(int index) {
93                 removeDomChildAt(Attribute, null, "ref", index);
94         }
95
96         public void removeref() {
97                 removerefAt(0);
98         }
99
100         public org.w3c.dom.Node addref(cg_identifier value) {
101                 if( value.isNull() )
102                         return null;
103
104                 return  appendDomChild(Attribute, null, "ref", value.toString());
105         }
106
107         public org.w3c.dom.Node addref(String value) throws Exception {
108                 return addref(new cg_identifier(value));
109         }
110
111         public void insertrefAt(cg_identifier value, int index) {
112                 insertDomChildAt(Attribute, null, "ref", index, value.toString());
113         }
114
115         public void insertrefAt(String value, int index) throws Exception {
116                 insertrefAt(new cg_identifier(value), index);
117         }
118
119         public void replacerefAt(cg_identifier value, int index) {
120                 replaceDomChildAt(Attribute, null, "ref", index, value.toString());
121         }
122
123         public void replacerefAt(String value, int index) throws Exception {
124                 replacerefAt(new cg_identifier(value), index);
125         }
126
127 }