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

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

public class CDataCharReplacer
extends java.lang.Object
implements CDataModifier

Implementation of CDataModifier that replaces a character with a replacment character. Works with the ProgrammableSAXFilter.

XML Configuration Template:
  <CDataModifier class="com.raritantechnologies.xml.sax.filter.cDataMods.CDataCharReplacer" 
                    origChar="[a character]" newChar="[ replacement character ]" />
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
CDataCharReplacer()
           
CDataCharReplacer(char origChar, char newChar)
           
 
Method Summary
 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

CDataCharReplacer

public CDataCharReplacer()

CDataCharReplacer

public CDataCharReplacer(char origChar,
                         char newChar)
Method Detail

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