KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > config > schema > MockServers


1 /**
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.config.schema;
5
6 import org.apache.xmlbeans.QNameSet;
7 import org.apache.xmlbeans.SchemaType;
8 import org.apache.xmlbeans.XmlCursor;
9 import org.apache.xmlbeans.XmlDocumentProperties;
10 import org.apache.xmlbeans.XmlObject;
11 import org.apache.xmlbeans.XmlOptions;
12 import org.apache.xmlbeans.xml.stream.XMLInputStream;
13 import org.w3c.dom.Node JavaDoc;
14 import org.xml.sax.ContentHandler JavaDoc;
15 import org.xml.sax.ext.LexicalHandler JavaDoc;
16
17 import com.tc.exception.ImplementMe;
18 import com.terracottatech.config.Server;
19 import com.terracottatech.config.Servers;
20
21 import java.io.File JavaDoc;
22 import java.io.InputStream JavaDoc;
23 import java.io.OutputStream JavaDoc;
24 import java.io.Reader JavaDoc;
25 import java.io.Writer JavaDoc;
26
27 import javax.xml.namespace.QName JavaDoc;
28 import javax.xml.stream.XMLStreamReader;
29
30 /**
31  * A mock {@link Servers}, for use in tests.
32  */

33 public class MockServers implements Servers {
34
35   public MockServers() {
36     super();
37   }
38
39   public Server[] getServerArray() {
40     throw new ImplementMe();
41   }
42
43   public Server getServerArray(int arg0) {
44     throw new ImplementMe();
45   }
46
47   public int sizeOfServerArray() {
48     return 1;
49   }
50
51   public void setServerArray(Server[] arg0) {
52     throw new ImplementMe();
53   }
54
55   public void setServerArray(int arg0, Server arg1) {
56     throw new ImplementMe();
57   }
58
59   public Server insertNewServer(int arg0) {
60     throw new ImplementMe();
61   }
62
63   public Server addNewServer() {
64     throw new ImplementMe();
65   }
66
67   public void removeServer(int arg0) {
68     throw new ImplementMe();
69   }
70
71   public SchemaType schemaType() {
72     throw new ImplementMe();
73   }
74
75   public boolean validate() {
76     throw new ImplementMe();
77   }
78
79   public boolean validate(XmlOptions arg0) {
80     throw new ImplementMe();
81   }
82
83   public XmlObject[] selectPath(String JavaDoc arg0) {
84     throw new ImplementMe();
85   }
86
87   public XmlObject[] selectPath(String JavaDoc arg0, XmlOptions arg1) {
88     throw new ImplementMe();
89   }
90
91   public XmlObject[] execQuery(String JavaDoc arg0) {
92     throw new ImplementMe();
93   }
94
95   public XmlObject[] execQuery(String JavaDoc arg0, XmlOptions arg1) {
96     throw new ImplementMe();
97   }
98
99   public XmlObject changeType(SchemaType arg0) {
100     throw new ImplementMe();
101   }
102
103   public XmlObject substitute(QName JavaDoc arg0, SchemaType arg1) {
104     throw new ImplementMe();
105   }
106
107   public boolean isNil() {
108     throw new ImplementMe();
109   }
110
111   public void setNil() {
112     throw new ImplementMe();
113   }
114
115   public boolean isImmutable() {
116     throw new ImplementMe();
117   }
118
119   public XmlObject set(XmlObject arg0) {
120     throw new ImplementMe();
121   }
122
123   public XmlObject copy() {
124     throw new ImplementMe();
125   }
126
127   public boolean valueEquals(XmlObject arg0) {
128     throw new ImplementMe();
129   }
130
131   public int valueHashCode() {
132     throw new ImplementMe();
133   }
134
135   public int compareTo(Object JavaDoc arg0) {
136     throw new ImplementMe();
137   }
138
139   public int compareValue(XmlObject arg0) {
140     throw new ImplementMe();
141   }
142
143   public XmlObject[] selectChildren(QName JavaDoc arg0) {
144     throw new ImplementMe();
145   }
146
147   public XmlObject[] selectChildren(String JavaDoc arg0, String JavaDoc arg1) {
148     throw new ImplementMe();
149   }
150
151   public XmlObject[] selectChildren(QNameSet arg0) {
152     throw new ImplementMe();
153   }
154
155   public XmlObject selectAttribute(QName JavaDoc arg0) {
156     throw new ImplementMe();
157   }
158
159   public XmlObject selectAttribute(String JavaDoc arg0, String JavaDoc arg1) {
160     throw new ImplementMe();
161   }
162
163   public XmlObject[] selectAttributes(QNameSet arg0) {
164     throw new ImplementMe();
165   }
166
167   public Object JavaDoc monitor() {
168     throw new ImplementMe();
169   }
170
171   public XmlDocumentProperties documentProperties() {
172     throw new ImplementMe();
173   }
174
175   public XmlCursor newCursor() {
176     throw new ImplementMe();
177   }
178
179   public XMLInputStream newXMLInputStream() {
180     throw new ImplementMe();
181   }
182
183   public XMLStreamReader newXMLStreamReader() {
184     throw new ImplementMe();
185   }
186
187   public String JavaDoc xmlText() {
188     throw new ImplementMe();
189   }
190
191   public InputStream newInputStream() {
192     throw new ImplementMe();
193   }
194
195   public Reader JavaDoc newReader() {
196     throw new ImplementMe();
197   }
198
199   public Node JavaDoc newDomNode() {
200     throw new ImplementMe();
201   }
202
203   public Node JavaDoc getDomNode() {
204     throw new ImplementMe();
205   }
206
207   public void save(ContentHandler JavaDoc arg0, LexicalHandler JavaDoc arg1) {
208     throw new ImplementMe();
209   }
210
211   public void save(File JavaDoc arg0) {
212     throw new ImplementMe();
213   }
214
215   public void save(OutputStream JavaDoc arg0) {
216     throw new ImplementMe();
217   }
218
219   public void save(Writer JavaDoc arg0) {
220     throw new ImplementMe();
221   }
222
223   public XMLInputStream newXMLInputStream(XmlOptions arg0) {
224     throw new ImplementMe();
225   }
226
227   public XMLStreamReader newXMLStreamReader(XmlOptions arg0) {
228     throw new ImplementMe();
229   }
230
231   public String JavaDoc xmlText(XmlOptions arg0) {
232     throw new ImplementMe();
233   }
234
235   public InputStream newInputStream(XmlOptions arg0) {
236     throw new ImplementMe();
237   }
238
239   public Reader JavaDoc newReader(XmlOptions arg0) {
240     throw new ImplementMe();
241   }
242
243   public Node JavaDoc newDomNode(XmlOptions arg0) {
244     throw new ImplementMe();
245   }
246
247   public void save(ContentHandler JavaDoc arg0, LexicalHandler JavaDoc arg1, XmlOptions arg2) {
248     throw new ImplementMe();
249   }
250
251   public void save(File JavaDoc arg0, XmlOptions arg1) {
252     throw new ImplementMe();
253   }
254
255   public void save(OutputStream JavaDoc arg0, XmlOptions arg1) {
256     throw new ImplementMe();
257   }
258
259   public void save(Writer JavaDoc arg0, XmlOptions arg1) {
260     throw new ImplementMe();
261   }
262
263   public void dump() {
264     throw new ImplementMe();
265   }
266 }
267
Popular Tags