edu.uchsc.ccp.knowtator.util
Class AnnotatorUtil

java.lang.Object
  extended by edu.uchsc.ccp.knowtator.util.AnnotatorUtil

public class AnnotatorUtil
extends Object

Author:
Philip V. Ogren

Constructor Summary
AnnotatorUtil()
           
 
Method Summary
static void batchAnnotationSetChange(Component parent, KnowtatorProjectUtil kpu, AnnotationUtil annotationUtil, FilterUtil filterUtil)
           
static void batchAnnotationSetChange(SimpleInstance annotationSet, KnowtatorProjectUtil kpu, SimpleInstance filter, AnnotationUtil annotationUtil, FilterUtil filterUtil)
          This method sets the annotator slot value for a set of annotations.
static void batchAnnotatorChange(Component parent, KnowtatorProjectUtil kpu, AnnotationUtil annotationUtil, FilterUtil filterUtil)
          This method provides dialogs which collect the annotator and filter instances needed to forward on to the other batchAnnotatorChange method.
static void batchAnnotatorChange(SimpleInstance annotator, KnowtatorProjectUtil kpu, SimpleInstance filter, AnnotationUtil annotationUtil, FilterUtil filterUtil)
          This method sets the annotator slot value for a set of annotations.
static boolean isTeamAnnotator(SimpleInstance annotator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatorUtil

public AnnotatorUtil()
Method Detail

batchAnnotatorChange

public static void batchAnnotatorChange(Component parent,
                                        KnowtatorProjectUtil kpu,
                                        AnnotationUtil annotationUtil,
                                        FilterUtil filterUtil)
This method provides dialogs which collect the annotator and filter instances needed to forward on to the other batchAnnotatorChange method.


batchAnnotatorChange

public static void batchAnnotatorChange(SimpleInstance annotator,
                                        KnowtatorProjectUtil kpu,
                                        SimpleInstance filter,
                                        AnnotationUtil annotationUtil,
                                        FilterUtil filterUtil)
This method sets the annotator slot value for a set of annotations. This method simply retrieves all annotations from the annotationUtil and filters them using the supplied filter. The annotator slot value for each annotation that passes the filter is updated with the first parameter.

Parameters:
annotator - the value of the knowtator_annotation_annotator slot for the annotations to be changed
kpu - provides the name of the slot that is being changed via getAnnotationAnnotatorSlot()
filter - an instance of 'knowtator filter' that will be used to select the annotations that will be modified.
annotationUtil - provides the annotations in the current knowledgebase via the retrieveAllAnnotations method
filterUtil - provides the filter method which selects only the annotations that satisfy the filter.

batchAnnotationSetChange

public static void batchAnnotationSetChange(Component parent,
                                            KnowtatorProjectUtil kpu,
                                            AnnotationUtil annotationUtil,
                                            FilterUtil filterUtil)

batchAnnotationSetChange

public static void batchAnnotationSetChange(SimpleInstance annotationSet,
                                            KnowtatorProjectUtil kpu,
                                            SimpleInstance filter,
                                            AnnotationUtil annotationUtil,
                                            FilterUtil filterUtil)
This method sets the annotator slot value for a set of annotations. This method simply retrieves all annotations from the annotationUtil and filters them using the supplied filter. The annotator slot value for each annotation that passes the filter is updated with the first parameter.

Parameters:
annotationSet - the value of the knowtator_annotation_set slot for the annotations to be changed
kpu - provides the name of the slot that is being changed via getAnnotationAnnotatorSlot()
filter - an instance of 'knowtator filter' that will be used to select the annotations that will be modified.
annotationUtil - provides the annotations in the current knowledgebase via the retrieveAllAnnotations method
filterUtil - provides the filter method which selects only the annotations that satisfy the filter.

isTeamAnnotator

public static boolean isTeamAnnotator(SimpleInstance annotator)