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.Client;
019: import com.terracottatech.config.DsoClientData;
020: import com.terracottatech.config.Modules;
021: import com.terracottatech.config.Path;
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 Client}, for use in tests.
034: */
035: public class MockClient implements Client {
036:
037: public MockClient() {
038: super ();
039: }
040:
041: public String getLogs() {
042: throw new ImplementMe();
043: }
044:
045: public Path xgetLogs() {
046: throw new ImplementMe();
047: }
048:
049: public boolean isSetLogs() {
050: throw new ImplementMe();
051: }
052:
053: public void setLogs(String arg0) {
054: throw new ImplementMe();
055: }
056:
057: public void xsetLogs(Path arg0) {
058: throw new ImplementMe();
059: }
060:
061: public void unsetLogs() {
062: throw new ImplementMe();
063: }
064:
065: public DsoClientData getDso() {
066: throw new ImplementMe();
067: }
068:
069: public boolean isSetDso() {
070: throw new ImplementMe();
071: }
072:
073: public void setDso(DsoClientData arg0) {
074: throw new ImplementMe();
075:
076: }
077:
078: public DsoClientData addNewDso() {
079: throw new ImplementMe();
080: }
081:
082: public void unsetDso() {
083: throw new ImplementMe();
084:
085: }
086:
087: public SchemaType schemaType() {
088: throw new ImplementMe();
089: }
090:
091: public boolean validate() {
092: throw new ImplementMe();
093: }
094:
095: public boolean validate(XmlOptions arg0) {
096: throw new ImplementMe();
097: }
098:
099: public XmlObject[] selectPath(String arg0) {
100: throw new ImplementMe();
101: }
102:
103: public XmlObject[] selectPath(String arg0, XmlOptions arg1) {
104: throw new ImplementMe();
105: }
106:
107: public XmlObject[] execQuery(String arg0) {
108: throw new ImplementMe();
109: }
110:
111: public XmlObject[] execQuery(String arg0, XmlOptions arg1) {
112: throw new ImplementMe();
113: }
114:
115: public XmlObject changeType(SchemaType arg0) {
116: throw new ImplementMe();
117: }
118:
119: public XmlObject substitute(QName arg0, SchemaType arg1) {
120: throw new ImplementMe();
121: }
122:
123: public boolean isNil() {
124: throw new ImplementMe();
125: }
126:
127: public void setNil() {
128: throw new ImplementMe();
129:
130: }
131:
132: public boolean isImmutable() {
133: throw new ImplementMe();
134: }
135:
136: public XmlObject set(XmlObject arg0) {
137: throw new ImplementMe();
138: }
139:
140: public XmlObject copy() {
141: throw new ImplementMe();
142: }
143:
144: public boolean valueEquals(XmlObject arg0) {
145: throw new ImplementMe();
146: }
147:
148: public int valueHashCode() {
149: throw new ImplementMe();
150: }
151:
152: public int compareTo(Object arg0) {
153: throw new ImplementMe();
154: }
155:
156: public int compareValue(XmlObject arg0) {
157: throw new ImplementMe();
158: }
159:
160: public XmlObject[] selectChildren(QName arg0) {
161: throw new ImplementMe();
162: }
163:
164: public XmlObject[] selectChildren(String arg0, String arg1) {
165: throw new ImplementMe();
166: }
167:
168: public XmlObject[] selectChildren(QNameSet arg0) {
169: throw new ImplementMe();
170: }
171:
172: public XmlObject selectAttribute(QName arg0) {
173: throw new ImplementMe();
174: }
175:
176: public XmlObject selectAttribute(String arg0, String arg1) {
177: throw new ImplementMe();
178: }
179:
180: public XmlObject[] selectAttributes(QNameSet arg0) {
181: throw new ImplementMe();
182: }
183:
184: public Object monitor() {
185: throw new ImplementMe();
186: }
187:
188: public XmlDocumentProperties documentProperties() {
189: throw new ImplementMe();
190: }
191:
192: public XmlCursor newCursor() {
193: throw new ImplementMe();
194: }
195:
196: public XMLInputStream newXMLInputStream() {
197: throw new ImplementMe();
198: }
199:
200: public XMLStreamReader newXMLStreamReader() {
201: throw new ImplementMe();
202: }
203:
204: public String xmlText() {
205: throw new ImplementMe();
206: }
207:
208: public InputStream newInputStream() {
209: throw new ImplementMe();
210: }
211:
212: public Reader newReader() {
213: throw new ImplementMe();
214: }
215:
216: public Node newDomNode() {
217: throw new ImplementMe();
218: }
219:
220: public Node getDomNode() {
221: throw new ImplementMe();
222: }
223:
224: public void save(ContentHandler arg0, LexicalHandler arg1) {
225: throw new ImplementMe();
226: }
227:
228: public void save(File arg0) {
229: throw new ImplementMe();
230: }
231:
232: public void save(OutputStream arg0) {
233: throw new ImplementMe();
234: }
235:
236: public void save(Writer arg0) {
237: throw new ImplementMe();
238: }
239:
240: public XMLInputStream newXMLInputStream(XmlOptions arg0) {
241: throw new ImplementMe();
242: }
243:
244: public XMLStreamReader newXMLStreamReader(XmlOptions arg0) {
245: throw new ImplementMe();
246: }
247:
248: public String xmlText(XmlOptions arg0) {
249: throw new ImplementMe();
250: }
251:
252: public InputStream newInputStream(XmlOptions arg0) {
253: throw new ImplementMe();
254: }
255:
256: public Reader newReader(XmlOptions arg0) {
257: throw new ImplementMe();
258: }
259:
260: public Node newDomNode(XmlOptions arg0) {
261: throw new ImplementMe();
262: }
263:
264: public void save(ContentHandler arg0, LexicalHandler arg1,
265: XmlOptions arg2) {
266: throw new ImplementMe();
267: }
268:
269: public void save(File arg0, XmlOptions arg1) {
270: throw new ImplementMe();
271: }
272:
273: public void save(OutputStream arg0, XmlOptions arg1) {
274: throw new ImplementMe();
275: }
276:
277: public void save(Writer arg0, XmlOptions arg1) {
278: throw new ImplementMe();
279: }
280:
281: public void dump() {
282: throw new ImplementMe();
283: }
284:
285: public Modules addNewModules() {
286: throw new ImplementMe();
287: }
288:
289: public Modules getModules() {
290: throw new ImplementMe();
291: }
292:
293: public boolean isSetModules() {
294: throw new ImplementMe();
295: }
296:
297: public void setModules(Modules modules) {
298: throw new ImplementMe();
299:
300: }
301:
302: public void unsetModules() {
303: throw new ImplementMe();
304: }
305:
306: }
|