View Javadoc

1   package net.sf.mmapps.modules.config;
2   
3   /***
4    *
5    * @author Kees Jongenburger
6    * @version $Id: RelationType.java,v 1.1.1.1 2004/02/06 08:44:05 keesj Exp $
7    */
8   public class RelationType {
9       String name;
10      String sourceName;
11      String destinationName;
12      String nodeManagerName ="insrel";
13      String directionality ="BIDIRECTIONAL";
14  
15      public RelationType(){
16      }
17  
18      public RelationType(String name , String sourceName,String destinationName,String nodeManagerName,String directionality) {
19  
20          this.name = name;
21          
22          if (sourceName != null) this.sourceName = sourceName;
23          if (destinationName != null) this.destinationName = destinationName;
24          if (nodeManagerName != null) this.nodeManagerName = nodeManagerName;
25          if (directionality != null) this.directionality = directionality;
26      }
27      
28      public void setName(String name ){
29  	    this.name = name;
30      }
31  
32      public String getName(){return name;};
33  
34      public String getSourceName(){ return (sourceName != null)?sourceName : name;};
35  
36      public String getDestinationName(){return (destinationName != null)?destinationName : name ;};
37  
38      public void setNodeManagerName(String nodeManagerName){this.nodeManagerName = nodeManagerName;};
39      public String getNodeManagerName(){return nodeManagerName;};
40  
41      public void setDirectionality(String directionality) {this.directionality = directionality;}
42      public String getDirectionality() {return directionality;}
43  }