Package org.apache.uima.tools.viewer
Interface EntityResolver
-
- All Known Implementing Classes:
CasAnnotationViewer.DefaultEntityResolver
public interface EntityResolverPluggable interface that supports Entity View mode in the CasAnnotationViewer. Users implement this interface with logic that for their particular type system can determine which Entity an Annotation refers to.In the viewer, all annotations whose Entity objects are
equalwill be displayed in the same color, and the Entity's canonical form will be shown in the legend.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceEntityResolver.EntityObject representing an Entity.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityResolver.EntitygetEntity(Annotation aAnnotation)Returns theEntityto which an annotation refers.
-
-
-
Method Detail
-
getEntity
EntityResolver.Entity getEntity(Annotation aAnnotation)
Returns theEntityto which an annotation refers. Returns the canonical form String for an annotation.For two annotations that refer to the same Entity, this should return
Entityobjects that areequal.If the annotation does not represent an entity at all,
nullshould be returned.- Parameters:
aAnnotation- the annotation to resolve- Returns:
- the Entity to which the annotation refers, null if the annotation does not represent an
-
-