1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.caleigo.core;
20
21 /*** The IDataConsumer interface provides two simple methods imput identifiable
22 * data int an object.
23 *
24 * Note that interface is type-inspecific but that implemnting consumer object
25 * may wery well be. Te consumer object may rejct the data provided to it.
26 *
27 *
28 * @author Dennis Zikovic
29 * @version 1.00
30 *
31 *//*
32 *
33 * WHEN WHO WHY & WHAT
34 * ------------------------------------------------------------------------------
35 * 2002-09-10 Dennis Zikovic Creation
36 */
37 public interface IDataConsumer
38 {
39
40
41 /*** Sets the data identified by the provided code name.
42 */
43 public void setData(String codeName, Object value);
44
45 /*** This method implies to the called object to fetch all data it can
46 * consume from the provided IDataProvider object.
47 */
48 public void setData(IDataProvider dataProvider);
49
50 }