OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / paramType2.java
1 /**\r
2  * paramType2.java\r
3  *\r
4  * This file was generated by XMLSpy 2007sp2 Enterprise Edition.\r
5  *\r
6  * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE\r
7  * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.\r
8  *\r
9  * Refer to the XMLSpy Documentation for further details.\r
10  * http://www.altova.com/xmlspy\r
11  */\r
12 \r
13 \r
14 package com.jmex.model.collada.schema;\r
15 \r
16 import com.jmex.xml.types.SchemaNCName;\r
17 \r
18 public class paramType2 extends com.jmex.xml.xml.Node {\r
19 \r
20         public paramType2(paramType2 node) {\r
21                 super(node);\r
22         }\r
23 \r
24         public paramType2(org.w3c.dom.Node node) {\r
25                 super(node);\r
26         }\r
27 \r
28         public paramType2(org.w3c.dom.Document doc) {\r
29                 super(doc);\r
30         }\r
31 \r
32         public paramType2(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {\r
33                 super(doc, namespaceURI, prefix, name);\r
34         }\r
35         \r
36         public void adjustPrefix() {\r
37                 for (   org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "ref" );\r
38                                 tmpNode != null;\r
39                                 tmpNode = getDomNextChild( Attribute, null, "ref", tmpNode )\r
40                         ) {\r
41                         internalAdjustPrefix(tmpNode, false);\r
42                 }\r
43         }\r
44         public void setXsiType() {\r
45                 org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;\r
46                 el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "param");\r
47         }\r
48 \r
49         public static int getrefMinCount() {\r
50                 return 1;\r
51         }\r
52 \r
53         public static int getrefMaxCount() {\r
54                 return 1;\r
55         }\r
56 \r
57         public int getrefCount() {\r
58                 return getDomChildCount(Attribute, null, "ref");\r
59         }\r
60 \r
61         public boolean hasref() {\r
62                 return hasDomChild(Attribute, null, "ref");\r
63         }\r
64 \r
65         public SchemaNCName newref() {\r
66                 return new SchemaNCName();\r
67         }\r
68 \r
69         public SchemaNCName getrefAt(int index) throws Exception {\r
70                 return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "ref", index)));\r
71         }\r
72 \r
73         public org.w3c.dom.Node getStartingrefCursor() throws Exception {\r
74                 return getDomFirstChild(Attribute, null, "ref" );\r
75         }\r
76 \r
77         public org.w3c.dom.Node getAdvancedrefCursor( org.w3c.dom.Node curNode ) throws Exception {\r
78                 return getDomNextChild( Attribute, null, "ref", curNode );\r
79         }\r
80 \r
81         public SchemaNCName getrefValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {\r
82                 if( curNode == null )\r
83                         throw new com.jmex.xml.xml.XmlException("Out of range");\r
84                 else\r
85                         return new SchemaNCName(getDomNodeValue(curNode));\r
86         }\r
87 \r
88         public SchemaNCName getref() throws Exception \r
89  {\r
90                 return getrefAt(0);\r
91         }\r
92 \r
93         public void removerefAt(int index) {\r
94                 removeDomChildAt(Attribute, null, "ref", index);\r
95         }\r
96 \r
97         public void removeref() {\r
98                 removerefAt(0);\r
99         }\r
100 \r
101         public org.w3c.dom.Node addref(SchemaNCName value) {\r
102                 if( value.isNull() )\r
103                         return null;\r
104 \r
105                 return  appendDomChild(Attribute, null, "ref", value.toString());\r
106         }\r
107 \r
108         public org.w3c.dom.Node addref(String value) throws Exception {\r
109                 return addref(new SchemaNCName(value));\r
110         }\r
111 \r
112         public void insertrefAt(SchemaNCName value, int index) {\r
113                 insertDomChildAt(Attribute, null, "ref", index, value.toString());\r
114         }\r
115 \r
116         public void insertrefAt(String value, int index) throws Exception {\r
117                 insertrefAt(new SchemaNCName(value), index);\r
118         }\r
119 \r
120         public void replacerefAt(SchemaNCName value, int index) {\r
121                 replaceDomChildAt(Attribute, null, "ref", index, value.toString());\r
122         }\r
123 \r
124         public void replacerefAt(String value, int index) throws Exception {\r
125                 replacerefAt(new SchemaNCName(value), index);\r
126         }\r
127 \r
128 }\r