de.dfki.lt.hog.modules
Class RaspModule

java.lang.Object
  extended by de.dfki.lt.hog.Module
      extended by de.dfki.lt.hog.modules.RaspModule

public class RaspModule
extends Module

Module definition for RASP commandline interface Created 2004-01-23


Field Summary
 
Fields inherited from class de.dfki.lt.hog.Module
CONFIG_SEARCH_PATH_PROP, LINE_SEPARATOR, MODULE_DEPTH_PROP, MODULE_LANGUAGE_PROP, MODULE_NAME_PROP, MODULE_ROOTELEMENT_PROP, moduleLog, NO, NONE, ROOT, YES
 
Constructor Summary
RaspModule(java.util.Properties raspModuleProps)
           
 
Method Summary
 java.lang.String process(java.lang.String processString)
           
 org.w3c.dom.Node processDOMTree(org.w3c.dom.Node domTree)
           
static java.lang.String replaceXMLcharsPartially(java.lang.String dirtyXMLString)
          Cleans an XML String by replacing '&', '<', '>', by spaces respectively.
 void shutdown()
          This is the default shutdown method.
 
Methods inherited from class de.dfki.lt.hog.Module
getAbsolutOrRelativePath, getConfig, getFileProperty, getMoCoMan, getModuleDepth, getModuleLanguage, getModuleName, getModuleRootElement, getProperty, getProperty, init, searchConfigFile, searchConfigFile, setConfig, setMoCoMan, setModuleDepth, setModuleLanguage, setModuleName, setModuleRootElement, setProperty, suitable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RaspModule

public RaspModule(java.util.Properties raspModuleProps)
           throws InitializationException
Throws:
InitializationException
Method Detail

shutdown

public void shutdown()
Description copied from class: Module
This is the default shutdown method. If any special action is needed for shutdown, overide this method in subclass.

Overrides:
shutdown in class Module

process

public java.lang.String process(java.lang.String processString)
Specified by:
process in class Module

processDOMTree

public org.w3c.dom.Node processDOMTree(org.w3c.dom.Node domTree)
Specified by:
processDOMTree in class Module

replaceXMLcharsPartially

public static final java.lang.String replaceXMLcharsPartially(java.lang.String dirtyXMLString)
Cleans an XML String by replacing '&', '<', '>', by spaces respectively. This is a hack for RASP versions before october 2005 that do not quote characters properly in RMRS output mode (non-wellformed XML).

Parameters:
dirtyXMLString - The XML String to be cleaned
Returns:
The cleaned XML String