de.dfki.lt.sdl.sprout
Class SproutModulesDomDomEncapsulated

java.lang.Object
  extended by de.dfki.lt.sdl.Modules
      extended by de.dfki.lt.sdl.sprout.SproutModules
          extended by de.dfki.lt.sdl.sprout.SproutModulesDomDomEncapsulated
All Implemented Interfaces:
IModule

public class SproutModulesDomDomEncapsulated
extends SproutModules

this class extends SproutModules by defining the run() method and assuming that the input value is a DOM node.


Field Summary
 
Fields inherited from class de.dfki.lt.sdl.sprout.SproutModules
annotationName, sprout
 
Constructor Summary
SproutModulesDomDomEncapsulated()
          nothing to do here
 
Method Summary
 void init(java.lang.String[] initArgs)
          the init argument given to modules which inherit from SproutModules is interpreted to be the SProUT config filename
 java.lang.Object run(java.lang.Object input)
          calls SProUT on the input text; output is an instance of class MatchWriterImpl
 
Methods inherited from class de.dfki.lt.sdl.Modules
clear, getInput, getOutput, setInput, setOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SproutModulesDomDomEncapsulated

public SproutModulesDomDomEncapsulated()
nothing to do here

Method Detail

init

public void init(java.lang.String[] initArgs)
the init argument given to modules which inherit from SproutModules is interpreted to be the SProUT config filename

Specified by:
init in interface IModule
Overrides:
init in class SproutModules

run

public java.lang.Object run(java.lang.Object input)
calls SProUT on the input text; output is an instance of class MatchWriterImpl

Specified by:
run in interface IModule
Overrides:
run in class Modules