com.raritantechnologies.xml.sax.filter.attributeMods
Class ObjectAttributePropertySetter

java.lang.Object
  extended bycom.raritantechnologies.xml.sax.filter.AttributesModifier
      extended bycom.raritantechnologies.xml.sax.filter.attributeMods.ObjectAttributePropertySetter
All Implemented Interfaces:
IConfigurable

public class ObjectAttributePropertySetter
extends AttributesModifier

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


Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
ObjectAttributePropertySetter()
           
ObjectAttributePropertySetter(java.lang.String uri, java.lang.String localName, java.lang.Object target, java.lang.String getMethodName)
           
ObjectAttributePropertySetter(java.lang.String uri, java.lang.String localName, java.lang.Object target, java.lang.String getMethodName, AttributesModifier next)
           
ObjectAttributePropertySetter(java.lang.String uri, java.lang.String localName, java.lang.Object target, java.lang.String getMethodName, AttributesModifier next, java.io.PrintStream errorLogger)
           
ObjectAttributePropertySetter(java.lang.String uri, java.lang.String localName, java.lang.Object target, java.lang.String getMethodName, java.io.PrintStream errorLogger)
           
 
Method Summary
protected  org.xml.sax.helpers.AttributesImpl _modifyAttributes(org.xml.sax.helpers.AttributesImpl source)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void setErrorLogger(java.io.PrintStream errorLogger)
           
 void setPrintStackTrace(boolean printStackTrace)
           
 
Methods inherited from class com.raritantechnologies.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

ObjectAttributePropertySetter

public ObjectAttributePropertySetter()

ObjectAttributePropertySetter

public ObjectAttributePropertySetter(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.

ObjectAttributePropertySetter

public ObjectAttributePropertySetter(java.lang.String uri,
                                     java.lang.String localName,
                                     java.lang.Object target,
                                     java.lang.String getMethodName,
                                     java.io.PrintStream errorLogger)

ObjectAttributePropertySetter

public ObjectAttributePropertySetter(java.lang.String uri,
                                     java.lang.String localName,
                                     java.lang.Object target,
                                     java.lang.String getMethodName,
                                     AttributesModifier next)

ObjectAttributePropertySetter

public ObjectAttributePropertySetter(java.lang.String uri,
                                     java.lang.String localName,
                                     java.lang.Object target,
                                     java.lang.String getMethodName,
                                     AttributesModifier next,
                                     java.io.PrintStream errorLogger)
Method Detail

_modifyAttributes

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

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.