GATE
Version 3.1-2270

gate.annotation
Interface AnnotationFactory

All Known Implementing Classes:
DefaultAnnotationFactory

public interface AnnotationFactory

Factory used to create annotations in an annotation set.

Author:
Ken Williams

Method Summary
 Annotation createAnnotationInSet(AnnotationSet set, Integer id, Node start, Node end, String type, FeatureMap features)
          Adds a new AnnotationImpl to the given set.
 

Method Detail

createAnnotationInSet

Annotation createAnnotationInSet(AnnotationSet set,
                                 Integer id,
                                 Node start,
                                 Node end,
                                 String type,
                                 FeatureMap features)
Adds a new AnnotationImpl to the given set.

Parameters:
set - the set to which the new annotation will be added
id - the ID to use for the new annotation
start - the starting node for the new annotation
end - the ending node for the new annotation
type - the type of the new annotation
features - the features for the new annotation

GATE
Version 3.1-2270