View Javadoc

1   package net.sf.mmapps.modules.config.implementation;
2   
3   import net.sf.mmapps.modules.config.RelationManagerConfiguration;
4   
5   /***
6    *
7    * @author Kees Jongenburger
8    * @version $Id: BasicRelationManagerConfiguration.java,v 1.2 2004/05/18 13:53:51 keesj Exp $
9    */
10  public class BasicRelationManagerConfiguration  implements RelationManagerConfiguration{
11      String name;
12      String sourceNodeManagerName;
13      String destinationNodeManagerName;
14      String relationTypeName;
15      
16      /*** Creates a new instance of BasicRelationManagerConfiguration */
17      protected BasicRelationManagerConfiguration() {};
18      
19      public String getName() {
20          return sourceNodeManagerName +"/" + relationTypeName +"/" + destinationNodeManagerName;
21      }
22      
23      public void setDestinationNodeManagerName(String destinationNodeManagerName){
24          this.destinationNodeManagerName = destinationNodeManagerName;
25      }
26      
27      public String getDestinationNodeManagerName() {
28          if (destinationNodeManagerName == null){
29              System.err.println("destination node manager name for relation manager configuration of relation " + getName() + " is null");
30          }
31          
32          return destinationNodeManagerName;
33      }
34      
35      public void setSourceNodeManagerName(String sourceNodeManagerName){
36          this.sourceNodeManagerName = sourceNodeManagerName;
37      }
38      
39      
40      public String getSourceNodeManagerName() {
41          if (sourceNodeManagerName == null){
42              System.err.println("source node manager name for relation manager configuration of relation " + getName() + " is null");
43          }
44          return sourceNodeManagerName;
45      }
46      
47      public void setRelationTypeName(String relationTypeName){
48          this.relationTypeName = relationTypeName;
49      }
50      
51      public String getRelationTypeName() {
52          return relationTypeName;
53      }
54      
55  }