1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package de.bea.domingo.mock;
24
25 import java.io.InputStream;
26 import java.io.Reader;
27 import java.util.Calendar;
28 import java.util.List;
29 import java.util.TimeZone;
30
31 import de.bea.domingo.DDateRange;
32 import de.bea.domingo.DDocument;
33 import de.bea.domingo.DItem;
34
35 /***
36 * Transient mock implementation of interface DItem.
37 *
38 * @author <a href=mailto:christian.wied@bea.de>Christian Wied</a>
39 * @author <a href=mailto:kriede@users.sourceforge.net>Kurt Riede</a>
40 */
41 public final class MockItem implements DItem {
42
43 /*** serial version ID for serialization. */
44 private static final long serialVersionUID = 3257572823290622007L;
45
46 /***
47 * {@inheritDoc}
48 *
49 * @see de.bea.domingo.DItem#getValues()
50 */
51 public List getValues() {
52 throw new UnsupportedOperationException("getValues() not supported in MockItem");
53 }
54
55 /***
56 * {@inheritDoc}
57 *
58 * @see de.bea.domingo.DItem#setValues(java.util.List)
59 */
60 public void setValues(final List values) {
61 throw new UnsupportedOperationException("setValues() not supported in MockItem");
62 }
63
64 /***
65 * {@inheritDoc}
66 *
67 * @see de.bea.domingo.DItem#getValueString()
68 */
69 public String getValueString() {
70 throw new UnsupportedOperationException("getValueString() not supported in MockItem");
71 }
72
73 /***
74 * {@inheritDoc}
75 *
76 * @see de.bea.domingo.DItem#getValueInteger()
77 */
78 public Integer getValueInteger() {
79 throw new UnsupportedOperationException("getInteger() not supported in MockItem");
80 }
81
82 /***
83 * {@inheritDoc}
84 *
85 * @see de.bea.domingo.DItem#getValueDouble()
86 */
87 public Double getValueDouble() {
88 throw new UnsupportedOperationException("getValueDouble() not supported in MockItem");
89 }
90
91 /***
92 * {@inheritDoc}
93 *
94 * @see de.bea.domingo.DItem#getValueDateTime()
95 */
96 public Calendar getValueDateTime() {
97 throw new UnsupportedOperationException("getValueDateTime() not supported in MockItem");
98 }
99
100 /***
101 * {@inheritDoc}
102 *
103 * @see de.bea.domingo.DItem#setValueString(java.lang.String)
104 */
105 public void setValueString(final String value) {
106 throw new UnsupportedOperationException("setValueString() not supported in MockItem");
107 }
108
109 /***
110 * {@inheritDoc}
111 *
112 * @see de.bea.domingo.DItem#setValueInteger(int)
113 */
114 public void setValueInteger(final int i) {
115 throw new UnsupportedOperationException("setValueInteger() not supported in MockItem");
116 }
117
118 /***
119 * {@inheritDoc}
120 *
121 * @see de.bea.domingo.DItem#setValueInteger(java.lang.Integer)
122 */
123 public void setValueInteger(final Integer i) {
124 throw new UnsupportedOperationException("setValueInteger() not supported in MockItem");
125 }
126
127 /***
128 * {@inheritDoc}
129 *
130 * @see de.bea.domingo.DItem#setValueDouble(double)
131 */
132 public void setValueDouble(final double d) {
133 throw new UnsupportedOperationException("setValueDouble() not supported in MockItem");
134 }
135
136 /***
137 * {@inheritDoc}
138 *
139 * @see de.bea.domingo.DItem#setValueDouble(java.lang.Double)
140 */
141 public void setValueDouble(final Double d) {
142 throw new UnsupportedOperationException("setValueDouble() not supported in MockItem");
143 }
144
145 /***
146 * {@inheritDoc}
147 *
148 * @see de.bea.domingo.DItem#setValueDateTime(java.util.Calendar)
149 */
150 public void setValueDateTime(final Calendar calendar) {
151 throw new UnsupportedOperationException("setValueDateTime() not supported in MockItem");
152 }
153
154 /***
155 * {@inheritDoc}
156 *
157 * @see de.bea.domingo.DItem#appendToTextList(java.lang.String)
158 */
159 public void appendToTextList(final String value) {
160 throw new UnsupportedOperationException("appendToTextList() not supported in MockItem");
161 }
162
163 /***
164 * {@inheritDoc}
165 *
166 * @see de.bea.domingo.DItem#isSummary()
167 */
168 public boolean isSummary() {
169 throw new UnsupportedOperationException("isSummary() not supported in MockItem");
170 }
171
172 /***
173 * {@inheritDoc}
174 *
175 * @see de.bea.domingo.DItem#setSummary(boolean)
176 */
177 public void setSummary(final boolean flag) {
178 throw new UnsupportedOperationException("setSummary() not supported in MockItem");
179 }
180
181 /***
182 * {@inheritDoc}
183 *
184 * @see de.bea.domingo.DItem#isNames()
185 */
186 public boolean isNames() {
187 throw new UnsupportedOperationException("isNames() not supported in MockItem");
188 }
189
190 /***
191 * {@inheritDoc}
192 *
193 * @see de.bea.domingo.DItem#setNames(boolean)
194 */
195 public void setNames(final boolean flag) {
196 throw new UnsupportedOperationException("isNames() not supported in MockItem");
197 }
198
199 /***
200 * {@inheritDoc}
201 *
202 * @see de.bea.domingo.DItem#isReaders()
203 */
204 public boolean isReaders() {
205 throw new UnsupportedOperationException("isReaders() not supported in MockItem");
206 }
207
208 /***
209 * {@inheritDoc}
210 *
211 * @see de.bea.domingo.DItem#setReaders(boolean)
212 */
213 public void setReaders(final boolean flag) {
214 throw new UnsupportedOperationException("setReaders() not supported in MockItem");
215 }
216
217 /***
218 * {@inheritDoc}
219 *
220 * @see de.bea.domingo.DItem#isAuthors()
221 */
222 public boolean isAuthors() {
223 throw new UnsupportedOperationException("isAuthors() not supported in MockItem");
224 }
225
226 /***
227 * {@inheritDoc}
228 *
229 * @see de.bea.domingo.DItem#setAuthors(boolean)
230 */
231 public void setAuthors(final boolean flag) {
232 throw new UnsupportedOperationException("setAuthors() not supported in MockItem");
233 }
234
235 /***
236 * {@inheritDoc}
237 *
238 * @see de.bea.domingo.DItem#getSize()
239 */
240 public int getSize() {
241 throw new UnsupportedOperationException("getSize() not supported in MockItem");
242 }
243
244 /***
245 * {@inheritDoc}
246 *
247 * @see de.bea.domingo.DBaseItem#getName()
248 */
249 public String getName() {
250 throw new UnsupportedOperationException("getName() not supported in MockItem");
251 }
252
253 /***
254 * {@inheritDoc}
255 *
256 * @see de.bea.domingo.DBaseItem#remove()
257 */
258 public void remove() {
259 throw new UnsupportedOperationException("remove() not supported in MockItem");
260 }
261
262 /***
263 * {@inheritDoc}
264 *
265 * @see de.bea.domingo.DItem#getValueDateRange()
266 */
267 public DDateRange getValueDateRange() {
268 throw new UnsupportedOperationException("getValueDateRange() not supported in MockItem");
269 }
270
271 /***
272 * {@inheritDoc}
273 *
274 * @see de.bea.domingo.DItem#setValueDateRange(de.bea.domingo.DDateRange)
275 */
276 public void setValueDateRange(final DDateRange dateRange) {
277 throw new UnsupportedOperationException("setValueDateRange() not supported in MockItem");
278 }
279
280 /***
281 * {@inheritDoc}
282 *
283 * @see de.bea.domingo.DItem#setValueDateRange(java.util.Calendar,
284 * java.util.Calendar)
285 */
286 public void setValueDateRange(final Calendar calendar1, final Calendar calendar2) {
287 throw new UnsupportedOperationException("setValueDateRange() not supported in MockItem");
288 }
289
290 /***
291 * {@inheritDoc}
292 *
293 * @see de.bea.domingo.DItem#appendToTextList(java.util.List)
294 */
295 public void appendToTextList(final List values) {
296 throw new UnsupportedOperationException("appendToTextList() not supported in MockItem");
297 }
298
299 /***
300 * {@inheritDoc}
301 *
302 * @see de.bea.domingo.DItem#containsValue(java.lang.String)
303 */
304 public boolean containsValue(final String value) {
305 throw new UnsupportedOperationException("containsValue() not supported in MockItem");
306 }
307
308 /***
309 * {@inheritDoc}
310 *
311 * @see de.bea.domingo.DItem#containsValue(java.lang.Integer)
312 */
313 public boolean containsValue(final Integer value) {
314 throw new UnsupportedOperationException("containsValue() not supported in MockItem");
315 }
316
317 /***
318 * {@inheritDoc}
319 *
320 * @see de.bea.domingo.DItem#containsValue(int)
321 */
322 public boolean containsValue(final int value) {
323 throw new UnsupportedOperationException("containsValue() not supported in MockItem");
324 }
325
326 /***
327 * {@inheritDoc}
328 *
329 * @see de.bea.domingo.DItem#containsValue(java.lang.Double)
330 */
331 public boolean containsValue(final Double value) {
332 throw new UnsupportedOperationException("containsValue() not supported in MockItem");
333 }
334
335 /***
336 * {@inheritDoc}
337 *
338 * @see de.bea.domingo.DItem#containsValue(double)
339 */
340 public boolean containsValue(final double value) {
341 throw new UnsupportedOperationException("containsValue() not supported in MockItem");
342 }
343
344 /***
345 * {@inheritDoc}
346 *
347 * @see de.bea.domingo.DItem#containsValue(java.util.Calendar)
348 */
349 public boolean containsValue(final Calendar value) {
350 throw new UnsupportedOperationException("containsValue() not supported in MockItem");
351 }
352
353 /***
354 * {@inheritDoc}
355 *
356 * @see de.bea.domingo.DItem#isProtected()
357 */
358 public boolean isProtected() {
359 throw new UnsupportedOperationException("isProtected() not supported in MockItem");
360 }
361
362 /***
363 * {@inheritDoc}
364 *
365 * @see de.bea.domingo.DItem#setProtected(boolean)
366 */
367 public void setProtected(final boolean flag) {
368 throw new UnsupportedOperationException("setProtected() not supported in MockItem");
369 }
370
371 /***
372 * {@inheritDoc}
373 * @see de.bea.domingo.DItem#abstractText(int, boolean, boolean)
374 */
375 public String abstractText(final int maxlen, final boolean dropVowels, final boolean userDict) {
376 throw new UnsupportedOperationException("not supported in MockItem");
377 }
378
379 /***
380 * {@inheritDoc}
381 * @see de.bea.domingo.DItem#copyItemToDocument(de.bea.domingo.DDocument)
382 */
383 public DItem copyItemToDocument(final DDocument document) {
384 throw new UnsupportedOperationException("not supported in MockItem");
385 }
386
387 /***
388 * {@inheritDoc}
389 * @see de.bea.domingo.DItem#copyItemToDocument(de.bea.domingo.DDocument, java.lang.String)
390 */
391 public DItem copyItemToDocument(final DDocument document, final String newName) {
392 throw new UnsupportedOperationException("not supported in MockItem");
393 }
394
395 /***
396 * {@inheritDoc}
397 * @see de.bea.domingo.DItem#getLastModified()
398 */
399 public Calendar getLastModified() {
400 throw new UnsupportedOperationException("not supported in MockItem");
401 }
402
403 /***
404 * {@inheritDoc}
405 * @see de.bea.domingo.DItem#getText()
406 */
407 public String getText() {
408 throw new UnsupportedOperationException("not supported in MockItem");
409 }
410
411 /***
412 * {@inheritDoc}
413 * @see de.bea.domingo.DItem#getText(int)
414 */
415 public String getText(final int maxLen) {
416 throw new UnsupportedOperationException("not supported in MockItem");
417 }
418
419 /***
420 * {@inheritDoc}
421 * @see de.bea.domingo.DItem#getType()
422 */
423 public int getType() {
424 throw new UnsupportedOperationException("not supported in MockItem");
425 }
426
427 /***
428 * {@inheritDoc}
429 * @see de.bea.domingo.DItem#getValueLength()
430 */
431 public int getValueLength() {
432 throw new UnsupportedOperationException("not supported in MockItem");
433 }
434
435 /***
436 * {@inheritDoc}
437 * @see de.bea.domingo.DItem#setValueCustomData(java.lang.String, java.lang.Object)
438 */
439 public void setValueCustomData(final String type, final Object obj) {
440 throw new UnsupportedOperationException("not supported in MockItem");
441 }
442
443 /***
444 * {@inheritDoc}
445 * @see de.bea.domingo.DItem#setValueCustomData(java.lang.Object)
446 */
447 public void setValueCustomData(final Object obj) {
448 throw new UnsupportedOperationException("not supported in MockItem");
449 }
450
451 /***
452 * {@inheritDoc}
453 * @see de.bea.domingo.DItem#setValueCustomDataBytes(java.lang.String, byte[])
454 */
455 public void setValueCustomDataBytes(final String type, final byte[] bytes) {
456 throw new UnsupportedOperationException("not supported in MockItem");
457 }
458
459 /***
460 * {@inheritDoc}
461 * @see de.bea.domingo.DItem#getValueCustomData(java.lang.String)
462 */
463 public Object getValueCustomData(final String type) {
464 throw new UnsupportedOperationException("not supported in MockItem");
465 }
466
467 /***
468 * {@inheritDoc}
469 * @see de.bea.domingo.DItem#getValueCustomData()
470 */
471 public Object getValueCustomData() {
472 throw new UnsupportedOperationException("not supported in MockItem");
473 }
474
475 /***
476 * {@inheritDoc}
477 * @see de.bea.domingo.DItem#getValueCustomDataBytes(java.lang.String)
478 */
479 public byte[] getValueCustomDataBytes(final String type) {
480 throw new UnsupportedOperationException("not supported in MockItem");
481 }
482
483 /***
484 * {@inheritDoc}
485 * @see de.bea.domingo.DItem#isEncrypted()
486 */
487 public boolean isEncrypted() {
488 throw new UnsupportedOperationException("not supported in MockItem");
489 }
490
491 /***
492 * {@inheritDoc}
493 * @see de.bea.domingo.DItem#setEncrypted(boolean)
494 */
495 public void setEncrypted(final boolean flag) {
496 throw new UnsupportedOperationException("not supported in MockItem");
497 }
498
499 /***
500 * {@inheritDoc}
501 * @see de.bea.domingo.DItem#isSaveToDisk()
502 */
503 public boolean isSaveToDisk() {
504 throw new UnsupportedOperationException("not supported in MockItem");
505 }
506
507 /***
508 * {@inheritDoc}
509 * @see de.bea.domingo.DItem#setSaveToDisk(boolean)
510 */
511 public void setSaveToDisk(final boolean flag) {
512 throw new UnsupportedOperationException("not supported in MockItem");
513 }
514
515 /***
516 * {@inheritDoc}
517 * @see de.bea.domingo.DItem#isSigned()
518 */
519 public boolean isSigned() {
520 throw new UnsupportedOperationException("not supported in MockItem");
521 }
522
523 /***
524 * {@inheritDoc}
525 * @see de.bea.domingo.DItem#setSigned(boolean)
526 */
527 public void setSigned(final boolean flag) {
528 throw new UnsupportedOperationException("not supported in MockItem");
529 }
530
531 /***
532 * {@inheritDoc}
533 * @see de.bea.domingo.DItem#getReader()
534 */
535 public Reader getReader() {
536 throw new UnsupportedOperationException("not supported in MockItem");
537 }
538
539 /***
540 * {@inheritDoc}
541 * @see de.bea.domingo.DItem#getInputStream()
542 */
543 public InputStream getInputStream() {
544 throw new UnsupportedOperationException("not supported in MockItem");
545 }
546
547 /***
548 * {@inheritDoc}
549 * @see de.bea.domingo.DItem#setValueDateTime(java.util.TimeZone)
550 */
551 public void setValueDateTime(final TimeZone timezone) {
552 throw new UnsupportedOperationException("not supported in MockItem");
553 }
554 }