View Javadoc

1   package org.catacomb.druid.xtext.data;
2   
3   
4   public class XRelation {
5   
6   
7       XRelationType type;
8   
9       String aText;
10      String bText;
11  
12      public XRelation(XRelationType xrt) {
13          type = xrt;
14      }
15      public void setA(String atxt, Object asrc) {
16          aText = atxt;
17  
18      }
19      public void setB(String btxt, Object bsrc) {
20          bText = btxt;
21      }
22  
23      public XRelationType getRelationType() {
24          return type;
25      }
26  
27  
28      public String getAText() {
29          return aText;
30      }
31  
32      public String getBText() {
33          return bText;
34      }
35  
36      public String getTypeID() {
37          return type.getID();
38      }
39  
40  }