1 /* (c) Copyright 2003 Caleigo AB, All rights reserved.
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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 // Methods -----------------------------------------------------------------
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 }