com.raritantechnologies.xml.sax.filter.cDataMods
Class CDataTrimmer
java.lang.Object
com.raritantechnologies.xml.sax.filter.cDataMods.CDataTrimmer
- All Implemented Interfaces:
- CDataModifier, IConfigurable
- public class CDataTrimmer
- extends java.lang.Object
- implements CDataModifier
Trims a string starting after start and ending before endStr.
XML Configuration Schema:
<CDataModifier class="com.raritantechnologies.xml.sax.filter.cDataMods.CDataTrimmer"
startPattern="[ string pattern to start trimmed segment]"
endPattern="[ string pattern that ends trimmed segment]" />
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
|
Method Summary |
void |
filterCData(CDataContent content)
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 |
CDataTrimmer
public CDataTrimmer()
CDataTrimmer
public CDataTrimmer(java.lang.String startStr,
java.lang.String endStr)
filterCData
public void filterCData(CDataContent content)
- 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:
content - 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