com.raritantechnologies.xml.sax.filter.callbacks
Class CDataObjectPropertySetter
java.lang.Object
com.raritantechnologies.xml.sax.filter.callbacks.CDataObjectPropertySetter
- All Implemented Interfaces:
- CDataModifier, IConfigurable, IObjectModifier
- public class CDataObjectPropertySetter
- extends java.lang.Object
- implements CDataModifier, IObjectModifier
This class is a subclass of CDataModifier that can set a String property
on a JavaBean (requires that there is a set__ method that takes a String).
Works with the ProgrammableSAXFilter.
XML Configuration Template:
<CDataModifier class="com.raritantechnologies.xml.sax.filter.callbacks.CDataObjectPropertySetter"
setMethodName="[ name of set method or property ]" >
<!-- Optional StringFilter -->
<StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >
</StringFilter>
<DataComparator class="[ class of com.raritantechnologies.utils.comparators.IComparator]" >
</DataComparator>
</CDataModifier>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CDataObjectPropertySetter
public CDataObjectPropertySetter()
CDataObjectPropertySetter
public CDataObjectPropertySetter(java.lang.Object targetObject,
java.lang.String setMethodName)
CDataObjectPropertySetter
public CDataObjectPropertySetter(java.lang.Object targetObject,
java.lang.String setMethodName,
java.io.PrintStream errorLogger)
CDataObjectPropertySetter
public CDataObjectPropertySetter(java.lang.Object targetObject,
java.lang.String setMethodName,
java.lang.String paramName,
java.io.PrintStream errorLogger)
setTargetObject
public void setTargetObject(java.lang.Object targetObject)
- Specified by:
setTargetObject in interface IObjectModifier
setSetMethodName
public void setSetMethodName(java.lang.String setMethodName)
- Specified by:
setSetMethodName in interface IObjectModifier
setStringFilter
public void setStringFilter(IStringFilter strFilter)
setDataComparator
public void setDataComparator(IComparator dataComparator)
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.
setErrorLogger
public void setErrorLogger(java.io.PrintStream errorLogger)
setPrintStackTrace
public void setPrintStackTrace(boolean printStackTrace)
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