com.raritantechnologies.xml.sax.filter.cDataMods
Class CDataReplacer
java.lang.Object
com.raritantechnologies.xml.sax.filter.cDataMods.CDataReplacer
- All Implemented Interfaces:
- CDataModifier, IConfigurable
- public class CDataReplacer
- extends java.lang.Object
- implements CDataModifier
Implementation of CDataModifier that replaces the
character data with a new string. Used with ProgrammableSAXFilter.
XML Configuration Template:
<CDataModifier class="com.raritantechnologies.xml.sax.filter.cDataMods.CDataReplacer" >
[ replacement string ]
</CDataModifier>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
|
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 |
CDataReplacer
public CDataReplacer()
CDataReplacer
public CDataReplacer(java.lang.String replaceString)
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