1
4 package gate.annotation;
5
6 import gate.Annotation;
7 import gate.AnnotationSet;
8 import gate.FeatureMap;
9 import gate.Node;
10
11
19 public class DefaultAnnotationFactory implements AnnotationFactory {
20
21
24 public DefaultAnnotationFactory() {
25 }
26
27 public Annotation createAnnotationInSet(AnnotationSet set, Integer id,
28 Node start, Node end, String type,
29 FeatureMap features) {
30 AnnotationImpl a = new AnnotationImpl(id, start, end, type, features);
31 set.add(a);
32 return a;
33 }
34 }
35