com.raritantechnologies.xml.sax.filter.cDataMods
Class CDataEditor

java.lang.Object
  extended bycom.raritantechnologies.xml.sax.filter.cDataMods.CDataEditor
All Implemented Interfaces:
CDataModifier, IConfigurable

public class CDataEditor
extends java.lang.Object
implements CDataModifier

Implementation of CDataModifier that replaces old words with new words.

XML Configuration Template:

 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
CDataEditor()
           
CDataEditor(java.util.HashMap wordMap)
           
CDataEditor(java.lang.String oldWord, java.lang.String newWord)
           
 
Method Summary
 void addWord(java.lang.String oldWord, java.lang.String newWord)
           
 void filterCData(CDataContent dataContent)
          Filter the character source and send the modified character events to the ContentHandler
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDataEditor

public CDataEditor()

CDataEditor

public CDataEditor(java.lang.String oldWord,
                   java.lang.String newWord)

CDataEditor

public CDataEditor(java.util.HashMap wordMap)
Method Detail

addWord

public void addWord(java.lang.String oldWord,
                    java.lang.String newWord)

filterCData

public void filterCData(CDataContent dataContent)
Description copied from interface: CDataModifier
Filter the character source and send the modified character events to the ContentHandler

Specified by:
filterCData in interface CDataModifier
Parameters:
dataContent - The CharacterData to be modified. Modification is achieved by changing the properties of this object.

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable