de.dfki.lt.hog.modules.test
Class SampleTaggerAdaptor

java.lang.Object
  extended by de.dfki.lt.hog.Adaptor
      extended by de.dfki.lt.hog.modules.test.SampleTaggerAdaptor
All Implemented Interfaces:
XmlRpcServerInterface

public class SampleTaggerAdaptor
extends Adaptor


Field Summary
 
Fields inherited from class de.dfki.lt.hog.Adaptor
WEBSERVER_PORT_PROP
 
Constructor Summary
SampleTaggerAdaptor(java.util.Properties taggerProps)
           
 
Method Summary
 java.lang.String process(java.lang.String xmlString)
          Tags an XML-String with "UPPER" or "LOWER" tags.
 void shutdown()
          Shuts down an Adaptor.
 
Methods inherited from class de.dfki.lt.hog.Adaptor
addHandler, getConfig, getHandler, getHandlers, getServer, getServerPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleTaggerAdaptor

public SampleTaggerAdaptor(java.util.Properties taggerProps)
Method Detail

process

public java.lang.String process(java.lang.String xmlString)
Tags an XML-String with "UPPER" or "LOWER" tags. Creates a StringBuffer, and inserts at rightmost position of <W ... > an attribute pos=... with appropriate tag.

Parameters:
xmlString - Document to tag
Returns:
tagged document

shutdown

public void shutdown()
Description copied from class: Adaptor
Shuts down an Adaptor. Has to be overriden for shutting down special components of derived subclass.

Overrides:
shutdown in class Adaptor