public class DefaultAnnotationFactory extends Object implements AnnotationFactory
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.| Constructor and Description |
|---|
DefaultAnnotationFactory()
Creates a new DefaultAnnotationFactory.
|
| Modifier and Type | Method and Description |
|---|---|
Annotation |
createAnnotationInSet(AnnotationSet set,
Integer id,
Node start,
Node end,
String type,
FeatureMap features)
Adds a new AnnotationImpl to the given set.
|
public DefaultAnnotationFactory()
public Annotation createAnnotationInSet(AnnotationSet set, Integer id, Node start, Node end, String type, FeatureMap features)
AnnotationFactorycreateAnnotationInSet in interface AnnotationFactoryset - 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 annotationCopyright © 2024 GATE. All rights reserved.