GATE
Version 3.1-2270

gate.annotation
Class DefaultAnnotationFactory

java.lang.Object
  extended by gate.annotation.DefaultAnnotationFactory
All Implemented Interfaces:
AnnotationFactory

public class DefaultAnnotationFactory
extends Object
implements AnnotationFactory

The default Annotation factory that creates instances of AnnotationImpl. If you wish to create an alternative Annotation class, you must create your own Annotation factory that creates annotations of this type, and register it.

Author:
Ken Williams

Constructor Summary
DefaultAnnotationFactory()
          Creates a new DefaultAnnotationFactory.
 
Method Summary
 Annotation createAnnotationInSet(AnnotationSet set, Integer id, Node start, Node end, String type, FeatureMap features)
          Adds a new AnnotationImpl to the given set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAnnotationFactory

public DefaultAnnotationFactory()
Creates a new DefaultAnnotationFactory.

Method Detail

createAnnotationInSet

public Annotation createAnnotationInSet(AnnotationSet set,
                                        Integer id,
                                        Node start,
                                        Node end,
                                        String type,
                                        FeatureMap features)
Description copied from interface: AnnotationFactory
Adds a new AnnotationImpl to the given set.

Specified by:
createAnnotationInSet in interface AnnotationFactory
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