
ixa.kaflib.Target Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kaflib-naf Show documentation
Show all versions of kaflib-naf Show documentation
Kaflib-naf is a java library to create and edit NAF documents.
The newest version!
package ixa.kaflib;
import ixa.kaflib.KAFDocument.Utils;
import java.io.Serializable;
public class Target implements Serializable {
private Term term;
private boolean head;
Target(Term term, boolean head) {
this.term = term;
this.head = head;
}
public Term getTerm() {
return this.term;
}
public boolean isHead() {
return head;
}
public void setTerm(Term term) {
this.term = term;
this.head = false;
}
public void setTerm(Term term, boolean head) {
this.term = term;
this.head = head;
}
public void setHead(boolean head) {
this.head = head;
}
/*
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof Target)) return false;
Target ann = (Target) o;
return Utils.areEquals(this.term, ann.term) &&
Utils.areEquals(this.head, ann.head);
}
*/
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy