1   package ixa.kaflib;
2   
3   import java.io.Serializable;
4   
5   
6   public class CLink implements Serializable {
7   
8   	private String id;
9   
10  	private Predicate from;
11  
12  	private Predicate to;
13  
14  	private String relType;
15  
16  
17  	CLink(String id, Predicate from, Predicate to) {
18  		this.id = id;
19  		this.from = from;
20  		this.to = to;
21  	}
22  
23  	public String getId() {
24  		return this.id;
25  	}
26  
27  	public Predicate getFrom() {
28  		return this.from;
29  	}
30  
31  	public void setFrom(Predicate from) {
32  		this.from = from;
33  	}
34  
35  	public Predicate getTo() {
36  		return this.to;
37  	}
38  
39  	public void setTo(Predicate to) {
40  		this.to = to;
41  	}
42  
43  	public boolean hasRelType() {
44  		return this.relType != null;
45  	}
46  
47  	public String getRelType() {
48  		return this.relType;
49  	}
50  
51  	public void setRelType(String relType) {
52  		this.relType = relType;
53  	}
54  }