TEIMentionImpl.java
869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package ipipan.clarin.tei.impl.entities;
import ipipan.clarin.tei.api.entities.TEIMention;
import ipipan.clarin.tei.api.entities.TEIMorph;
import java.util.List;
/**
*
* @author mkopec
*/
public class TEIMentionImpl extends TEIAbstractEntity implements TEIMention {
private final List<TEIMorph> heads;
private final List<TEIMorph> morphs;
private boolean isZeroSubject;
public TEIMentionImpl(String id, List<TEIMorph> morphs,
List<TEIMorph> heads, boolean isZeroSubject) {
super(id);
this.morphs = morphs;
this.heads = heads;
this.isZeroSubject = isZeroSubject;
}
@Override
public List<TEIMorph> getMorphs() {
return morphs;
}
@Override
public List<TEIMorph> getHeadMorphs() {
return heads;
}
@Override
public boolean isZeroSubject() {
return isZeroSubject;
}
public String toString() {
return this.morphs.toString();
}
}