com.raritech.xml.sax.filter
Class CDataObjectPropertySetter

java.lang.Object
  |
  +--com.raritech.xml.sax.filter.CDataObjectPropertySetter
All Implemented Interfaces:
CDataModifier

public class CDataObjectPropertySetter
extends java.lang.Object
implements CDataModifier

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.)


Constructor Summary
CDataObjectPropertySetter(java.lang.Object targetObject, java.lang.String setMethodName)
           
 
Method Summary
 void filterCData(CDataContent dataContent)
          Filter the character source and send the modified character events to the ContentHandler
 void setSetMethodName(java.lang.String setMethodName)
           
 void setTargetObject(java.lang.Object targetObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDataObjectPropertySetter

public CDataObjectPropertySetter(java.lang.Object targetObject,
                                 java.lang.String setMethodName)
Method Detail

setTargetObject

public void setTargetObject(java.lang.Object targetObject)

setSetMethodName

public void setSetMethodName(java.lang.String setMethodName)

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
Following copied from interface: com.raritech.xml.sax.filter.CDataModifier
Parameters:
cHandler - The ContentHandler that is to receive the modified character events. This is sent by the ProgrammableSAXFilter that utilizes this CDataModifier.
source - the original character array source.
start - the start position of the characters to be filtered by this object.
length - the length of the block of characters to be filtered by this object.