Package | Description |
---|---|
gate.event | |
gate.relations |
Modifier and Type | Method and Description |
---|---|
Relation |
RelationSetEvent.getRelation()
Gets the relation that has been added or removed
|
Constructor and Description |
---|
RelationSetEvent(RelationSet source,
int type,
Relation relation)
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleRelation
A simple implementation for the
Relation interface. |
Modifier and Type | Field and Description |
---|---|
protected Map<Integer,Relation> |
RelationSet.indexById
Index for relations by id.
|
Modifier and Type | Method and Description |
---|---|
Relation |
RelationSet.addRelation(String type,
int... members)
Creates a new
Relation and adds it to this set. |
Relation |
RelationSet.get(Integer id) |
Modifier and Type | Method and Description |
---|---|
Collection<Relation> |
RelationSet.get()
An unmodifiable view of the contents of this RelationSet.
|
Collection<Relation> |
RelationSet.getReferencing(Integer id)
Returns a collection of all
Relation instances within this
set which include the specified Annotation or
Relation |
Collection<Relation> |
RelationSet.getRelations(int... members)
Finds relations based on their members.
|
Collection<Relation> |
RelationSet.getRelations(String type)
Finds relations based on their type.
|
Collection<Relation> |
RelationSet.getRelations(String type,
int... members) |
protected Collection<Relation> |
RelationSet.intersection(BitSet... indexLists)
Calculates the intersection of a set of lists containing relation
IDs
|
Iterator<Relation> |
RelationSet.iterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
RelationSet.add(Relation rel)
Adds an externally-created
Relation instance. |
boolean |
RelationSet.deleteRelation(Relation relation)
Deletes the specified relation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
RelationSet.addAll(Collection<? extends Relation> relations) |
Copyright © 2024 GATE. All rights reserved.