gate.annotation
Class DefaultAnnotationFactory
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAnnotationFactory
public DefaultAnnotationFactory()
- Creates a new DefaultAnnotationFactory.
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 addedid - the ID to use for the new annotationstart - the starting node for the new annotationend - the ending node for the new annotationtype - the type of the new annotationfeatures - the features for the new annotation