com.raritech.xml.sax.filter
Class AttributeObjectPropertySetter

java.lang.Object
  |
  +--com.raritech.xml.sax.filter.AttributesModifier
        |
        +--com.raritech.xml.sax.filter.AttributeObjectPropertySetter

public class AttributeObjectPropertySetter
extends AttributesModifier

A subclass of AttributesModifier that uses Java Reflection to set a property of an object to the value of an attribute.


Constructor Summary
AttributeObjectPropertySetter(java.lang.String uri, java.lang.String localName, java.lang.Object target, java.lang.String setMethodName)
           
AttributeObjectPropertySetter(java.lang.String uri, java.lang.String localName, java.lang.Object target, java.lang.String setMethodName, AttributesModifier next)
           
 
Method Summary
protected  org.xml.sax.helpers.AttributesImpl _modifyAttributes(org.xml.sax.helpers.AttributesImpl source)
           
 void setSetMethodName(java.lang.String setMethodName)
           
 void setTargetObject(java.lang.Object target)
           
 
Methods inherited from class com.raritech.xml.sax.filter.AttributesModifier
modifyAttributes, modifyAttributes, setNextMod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeObjectPropertySetter

public AttributeObjectPropertySetter(java.lang.String uri,
                                     java.lang.String localName,
                                     java.lang.Object target,
                                     java.lang.String setMethodName)
Parameters:
uri - URI of attribute namespace.
localName - Local parameter name.
target - Reference to Object whose set method will be called.
setMethodName - Name of the set method to be called. This method must take a single java.lang String parameter.

AttributeObjectPropertySetter

public AttributeObjectPropertySetter(java.lang.String uri,
                                     java.lang.String localName,
                                     java.lang.Object target,
                                     java.lang.String setMethodName,
                                     AttributesModifier next)
Parameters:
uri - URI of attribute namespace.
localName - Local parameter name.
target - Reference to Object whose set method will be called.
setMethodName - Name of the set method to be called. This method must take a single java.lang String parameter.
next - The next AttributesModifier in the linked list. @see AttributesModifier
Method Detail

setTargetObject

public void setTargetObject(java.lang.Object target)

setSetMethodName

public void setSetMethodName(java.lang.String setMethodName)

_modifyAttributes

protected org.xml.sax.helpers.AttributesImpl _modifyAttributes(org.xml.sax.helpers.AttributesImpl source)
Overrides:
_modifyAttributes in class AttributesModifier