KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > bsf > smartValueObject > mediator > Mediator


1 package org.bsf.smartValueObject.mediator;
2
3 /**
4  * The mediator interface.
5  *
6  */

7 public interface Mediator {
8     String JavaDoc INDEXFIELD = "indexfield";
9
10     /**
11      * Retrieves a graph based on given prototype.
12      *
13      * @param prototype a prototype to obtain a initialized graph.
14      * @return
15      * @throws MediatorException
16      */

17     Object JavaDoc getGraph(Object JavaDoc prototype)
18         throws MediatorException;
19
20     /**
21      * Stores a graph.
22      *
23      * @param graph the root element of the graph.
24      * @throws MediatorException
25      * @returns
26      */

27     ChangeSummary updateGraph(Object JavaDoc graph)
28         throws MediatorException;
29
30     /**
31      * Deletes a graph.
32      * @param graph the root element of the graph.
33      * @throws MediatorException
34      */

35     void deleteGraph(Object JavaDoc graph)
36         throws MediatorException;
37 }
38
Popular Tags