gate.jape
Interface RhsAction

All Superinterfaces:
Serializable

public interface RhsAction
extends Serializable

An interface that defines what the action classes created for RightHandSides look like.


Method Summary
 void doit(Document doc, Map<String,AnnotationSet> bindings, AnnotationSet annotations, AnnotationSet inputAS, AnnotationSet outputAS, Ontology ontology)
          Fires the RHS action for a particular LHS match.
 ActionContext getActionContext()
           
 void setActionContext(ActionContext actionContext)
           
 

Method Detail

doit

void doit(Document doc,
          Map<String,AnnotationSet> bindings,
          AnnotationSet annotations,
          AnnotationSet inputAS,
          AnnotationSet outputAS,
          Ontology ontology)
          throws JapeException
Fires the RHS action for a particular LHS match.

Parameters:
doc - the document the RHS action will be run on
bindings - A map containing the matching results from the LHS in the form label(String) -> matched annotations (AnnotationSet)
annotations - copy of the outputAS value provided for backward compatibility
inputAS - the input annotation set
outputAS - the output annotation set
ontology -
Throws:
JapeException

setActionContext

void setActionContext(ActionContext actionContext)

getActionContext

ActionContext getActionContext()