public class RelationSetEvent extends GateEvent
RelationSet
.Modifier and Type | Field and Description |
---|---|
static int |
RELATION_ADDED
Event type used for situations when a new annotation has been added
|
static int |
RELATION_REMOVED
Event type used for situations when an annotation has been removed
|
FEATURES_UPDATED, type
source
Constructor and Description |
---|
RelationSetEvent(RelationSet source,
int type,
Relation relation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Relation |
getRelation()
Gets the relation that has been added or removed
|
Document |
getSourceDocument()
Gets the document that has had an annotation added or removed.
|
getSource, toString
public static final int RELATION_ADDED
public static final int RELATION_REMOVED
public RelationSetEvent(RelationSet source, int type, Relation relation)
source
- the RelationSet
that fired the eventtype
- the type of the eventrelation
- the Relation that was added or removed.Copyright © 2024 GATE. All rights reserved.