gate.gui.teamware
Class TeamwareUtils

java.lang.Object
  extended by gate.gui.teamware.TeamwareUtils

public class TeamwareUtils
extends Object

Class containing utility methods for GATE teamware.


Field Summary
static String INPUT_ANNOTATION_SETS_FEATURE
           
static String OUTPUT_ANNOTATION_SETS_FEATURE
           
 
Method Summary
static Set<String> getInputAnnotationSets(Controller c)
          Get the set of annotation set names that an application requires for input.
static Set<String> getLikelyInputAnnotationSets(Controller c)
          Analyse the given controller and return a list of likely candidate input annotation sets.
static Set<String> getLikelyOutputAnnotationSets(Controller c)
          Analyse the given controller and return a list of likely candidate output annotation sets.
static Set<String> getOutputAnnotationSets(Controller c)
          Get the set of annotation set names that an application uses for output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_ANNOTATION_SETS_FEATURE

public static final String INPUT_ANNOTATION_SETS_FEATURE
See Also:
Constant Field Values

OUTPUT_ANNOTATION_SETS_FEATURE

public static final String OUTPUT_ANNOTATION_SETS_FEATURE
See Also:
Constant Field Values
Method Detail

getInputAnnotationSets

public static Set<String> getInputAnnotationSets(Controller c)
Get the set of annotation set names that an application requires for input. If the controller does not yet have a set of input annotation set names, an initial one is constructed using some simple heuristics. The returned set is a reference to the controller's stored set of annotation set names, and changes will propagate back to the controller. The set may be empty, and it may contain a null entry (denoting the default annotation set).


getLikelyInputAnnotationSets

public static Set<String> getLikelyInputAnnotationSets(Controller c)
Analyse the given controller and return a list of likely candidate input annotation sets. The set will not be empty, as it will always include at least a null entry, denoting the default annotation set.


getOutputAnnotationSets

public static Set<String> getOutputAnnotationSets(Controller c)
Get the set of annotation set names that an application uses for output. If the controller does not yet have a set of output annotation set names, an initial one is constructed using some simple heuristics. The returned set is a reference to the controller's stored set of annotation set names, and changes will propagate back to the controller. The set may be empty, and it may contain a null entry (denoting the default annotation set).


getLikelyOutputAnnotationSets

public static Set<String> getLikelyOutputAnnotationSets(Controller c)
Analyse the given controller and return a list of likely candidate output annotation sets. The set will not be empty, as it will always include at least a null entry, denoting the default annotation set.