KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > Relation


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10
11 package org.mmbase.bridge;
12
13 /**
14  * A relation within the cloud.
15  *
16  * @author Rob Vermeulen
17  * @author Pierre van Rooden
18  * @version $Id: Relation.java,v 1.4 2004/06/08 08:45:17 michiel Exp $
19  */

20 public interface Relation extends Node {
21
22     /**
23      * Retrieves the source of the relation
24      * @return the source node
25      */

26     public Node getSource();
27
28     /**
29      * Retrieves the destination of the relation
30      * @return the destination node
31      */

32     public Node getDestination();
33
34     /**
35      * set the source of the relation
36      * @param node the source node
37      */

38     public void setSource(Node node);
39
40     /**
41      * set the destination of the relation
42      * @param node the destination node
43      */

44     public void setDestination(Node node);
45
46     /**
47      * Retrieves the RelationManager used
48      * @return the RelationManager
49      */

50     public RelationManager getRelationManager();
51 }
52
Popular Tags