1 package ixa.kaflib;
2
3 import java.io.Serializable;
4
5
6 public class Target implements Serializable {
7 private Term term;
8 private boolean head;
9
10 Target(Term term, boolean head) {
11 this.term = term;
12 this.head = head;
13 }
14
15 public Term getTerm() {
16 return this.term;
17 }
18
19 public boolean isHead() {
20 return head;
21 }
22
23 public void setTerm(Term term) {
24 this.term = term;
25 this.head = false;
26 }
27
28 public void setTerm(Term term, boolean head) {
29 this.term = term;
30 this.head = head;
31 }
32
33 public void setHead(boolean head) {
34 this.head = head;
35 }
36 }