001: /**
002: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
003: * notice. All rights reserved.
004: */package com.tc.config.schema;
005:
006: import org.apache.xmlbeans.QNameSet;
007: import org.apache.xmlbeans.SchemaType;
008: import org.apache.xmlbeans.XmlCursor;
009: import org.apache.xmlbeans.XmlDocumentProperties;
010: import org.apache.xmlbeans.XmlObject;
011: import org.apache.xmlbeans.XmlOptions;
012: import org.apache.xmlbeans.xml.stream.XMLInputStream;
013: import org.w3c.dom.Node;
014: import org.xml.sax.ContentHandler;
015: import org.xml.sax.ext.LexicalHandler;
016:
017: import com.tc.exception.ImplementMe;
018: import com.terracottatech.config.Ha;
019: import com.terracottatech.config.Server;
020: import com.terracottatech.config.Servers;
021: import com.terracottatech.config.UpdateCheck;
022:
023: import java.io.File;
024: import java.io.InputStream;
025: import java.io.OutputStream;
026: import java.io.Reader;
027: import java.io.Writer;
028:
029: import javax.xml.namespace.QName;
030: import javax.xml.stream.XMLStreamReader;
031:
032: /**
033: * A mock {@link Servers}, for use in tests.
034: */
035: public class MockServers implements Servers {
036:
037: public MockServers() {
038: super ();
039: }
040:
041: public Server[] getServerArray() {
042: throw new ImplementMe();
043: }
044:
045: public Server getServerArray(int arg0) {
046: throw new ImplementMe();
047: }
048:
049: public int sizeOfServerArray() {
050: return 1;
051: }
052:
053: public void setServerArray(Server[] arg0) {
054: throw new ImplementMe();
055: }
056:
057: public void setServerArray(int arg0, Server arg1) {
058: throw new ImplementMe();
059: }
060:
061: public Server insertNewServer(int arg0) {
062: throw new ImplementMe();
063: }
064:
065: public Server addNewServer() {
066: throw new ImplementMe();
067: }
068:
069: public void removeServer(int arg0) {
070: throw new ImplementMe();
071: }
072:
073: public SchemaType schemaType() {
074: throw new ImplementMe();
075: }
076:
077: public boolean validate() {
078: throw new ImplementMe();
079: }
080:
081: public boolean validate(XmlOptions arg0) {
082: throw new ImplementMe();
083: }
084:
085: public XmlObject[] selectPath(String arg0) {
086: throw new ImplementMe();
087: }
088:
089: public XmlObject[] selectPath(String arg0, XmlOptions arg1) {
090: throw new ImplementMe();
091: }
092:
093: public XmlObject[] execQuery(String arg0) {
094: throw new ImplementMe();
095: }
096:
097: public XmlObject[] execQuery(String arg0, XmlOptions arg1) {
098: throw new ImplementMe();
099: }
100:
101: public XmlObject changeType(SchemaType arg0) {
102: throw new ImplementMe();
103: }
104:
105: public XmlObject substitute(QName arg0, SchemaType arg1) {
106: throw new ImplementMe();
107: }
108:
109: public boolean isNil() {
110: throw new ImplementMe();
111: }
112:
113: public void setNil() {
114: throw new ImplementMe();
115: }
116:
117: public boolean isImmutable() {
118: throw new ImplementMe();
119: }
120:
121: public XmlObject set(XmlObject arg0) {
122: throw new ImplementMe();
123: }
124:
125: public XmlObject copy() {
126: throw new ImplementMe();
127: }
128:
129: public boolean valueEquals(XmlObject arg0) {
130: throw new ImplementMe();
131: }
132:
133: public int valueHashCode() {
134: throw new ImplementMe();
135: }
136:
137: public int compareTo(Object arg0) {
138: throw new ImplementMe();
139: }
140:
141: public int compareValue(XmlObject arg0) {
142: throw new ImplementMe();
143: }
144:
145: public XmlObject[] selectChildren(QName arg0) {
146: throw new ImplementMe();
147: }
148:
149: public XmlObject[] selectChildren(String arg0, String arg1) {
150: throw new ImplementMe();
151: }
152:
153: public XmlObject[] selectChildren(QNameSet arg0) {
154: throw new ImplementMe();
155: }
156:
157: public XmlObject selectAttribute(QName arg0) {
158: throw new ImplementMe();
159: }
160:
161: public XmlObject selectAttribute(String arg0, String arg1) {
162: throw new ImplementMe();
163: }
164:
165: public XmlObject[] selectAttributes(QNameSet arg0) {
166: throw new ImplementMe();
167: }
168:
169: public Object monitor() {
170: throw new ImplementMe();
171: }
172:
173: public XmlDocumentProperties documentProperties() {
174: throw new ImplementMe();
175: }
176:
177: public XmlCursor newCursor() {
178: throw new ImplementMe();
179: }
180:
181: public XMLInputStream newXMLInputStream() {
182: throw new ImplementMe();
183: }
184:
185: public XMLStreamReader newXMLStreamReader() {
186: throw new ImplementMe();
187: }
188:
189: public String xmlText() {
190: throw new ImplementMe();
191: }
192:
193: public InputStream newInputStream() {
194: throw new ImplementMe();
195: }
196:
197: public Reader newReader() {
198: throw new ImplementMe();
199: }
200:
201: public Node newDomNode() {
202: throw new ImplementMe();
203: }
204:
205: public Node getDomNode() {
206: throw new ImplementMe();
207: }
208:
209: public void save(ContentHandler arg0, LexicalHandler arg1) {
210: throw new ImplementMe();
211: }
212:
213: public void save(File arg0) {
214: throw new ImplementMe();
215: }
216:
217: public void save(OutputStream arg0) {
218: throw new ImplementMe();
219: }
220:
221: public void save(Writer arg0) {
222: throw new ImplementMe();
223: }
224:
225: public XMLInputStream newXMLInputStream(XmlOptions arg0) {
226: throw new ImplementMe();
227: }
228:
229: public XMLStreamReader newXMLStreamReader(XmlOptions arg0) {
230: throw new ImplementMe();
231: }
232:
233: public String xmlText(XmlOptions arg0) {
234: throw new ImplementMe();
235: }
236:
237: public InputStream newInputStream(XmlOptions arg0) {
238: throw new ImplementMe();
239: }
240:
241: public Reader newReader(XmlOptions arg0) {
242: throw new ImplementMe();
243: }
244:
245: public Node newDomNode(XmlOptions arg0) {
246: throw new ImplementMe();
247: }
248:
249: public void save(ContentHandler arg0, LexicalHandler arg1,
250: XmlOptions arg2) {
251: throw new ImplementMe();
252: }
253:
254: public void save(File arg0, XmlOptions arg1) {
255: throw new ImplementMe();
256: }
257:
258: public void save(OutputStream arg0, XmlOptions arg1) {
259: throw new ImplementMe();
260: }
261:
262: public void save(Writer arg0, XmlOptions arg1) {
263: throw new ImplementMe();
264: }
265:
266: public void dump() {
267: throw new ImplementMe();
268: }
269:
270: public Ha addNewHa() {
271: throw new ImplementMe();
272: }
273:
274: public Ha getHa() {
275: throw new ImplementMe();
276: }
277:
278: public boolean isSetHa() {
279: throw new ImplementMe();
280: }
281:
282: public void setHa(Ha arg0) {
283: throw new ImplementMe();
284: }
285:
286: public void unsetHa() {
287: throw new ImplementMe();
288: }
289:
290: public UpdateCheck addNewUpdateCheck() {
291: throw new ImplementMe();
292: }
293:
294: public UpdateCheck getUpdateCheck() {
295: throw new ImplementMe();
296: }
297:
298: public boolean isSetUpdateCheck() {
299: throw new ImplementMe();
300: }
301:
302: public void setUpdateCheck(UpdateCheck arg0) {
303: throw new ImplementMe();
304: }
305:
306: public void unsetUpdateCheck() {
307: throw new ImplementMe();
308: }
309: }
|