com.raritech.xml.sax.filter
Class ObjectPropertyAttributeSetter

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

public class ObjectPropertyAttributeSetter
extends AttributesModifier

A subclass of AttributesModifier that uses Java Reflection to get a property of an object to be used to set an Attribute


Constructor Summary
ObjectPropertyAttributeSetter(java.lang.String uri, java.lang.String localName, java.lang.Object target, java.lang.String getMethodName)
           
ObjectPropertyAttributeSetter(java.lang.String uri, java.lang.String localName, java.lang.Object target, java.lang.String getMethodName, AttributesModifier next)
           
 
Method Summary
protected  org.xml.sax.helpers.AttributesImpl _modifyAttributes(org.xml.sax.helpers.AttributesImpl source)
           
 
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

ObjectPropertyAttributeSetter

public ObjectPropertyAttributeSetter(java.lang.String uri,
                                     java.lang.String localName,
                                     java.lang.Object target,
                                     java.lang.String getMethodName)
Parameters:
uri - URI of attribute namespace.
localName - local parameter name.
target - reference to Object whose set method will be called.
getMethodName - name of set method to be called.

ObjectPropertyAttributeSetter

public ObjectPropertyAttributeSetter(java.lang.String uri,
                                     java.lang.String localName,
                                     java.lang.Object target,
                                     java.lang.String getMethodName,
                                     AttributesModifier next)
Method Detail

_modifyAttributes

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