com.raritantechnologies.xml.sax.filter.callbacks
Class ElementNameNotifier

java.lang.Object
  extended bycom.raritantechnologies.xml.sax.filter.ElementModifier
      extended bycom.raritantechnologies.xml.sax.filter.callbacks.ElementNameNotifier
All Implemented Interfaces:
ElementComparator

public class ElementNameNotifier
extends ElementModifier

This object can be programmed to execute "callbacks" on a specified target object when a given XML element ( specified by an ElementComparator ) is encountered in the XML stream. The callbacks can be set for the start and/or the end of the element.


Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
ElementNameNotifier()
           
ElementNameNotifier(ElementComparator comp, java.lang.Object target, java.lang.String methodName)
           
 
Method Summary
 void elementEnding(org.xml.sax.ContentHandler cHandler, boolean isRootTag)
           
 void elementStarted(org.xml.sax.ContentHandler cHandler, boolean isRootTag)
          use Reflection to make callback method calls.
 void setMethodName(java.lang.String methodName)
           
 void setTargetObject(java.lang.Object target)
           
 
Methods inherited from class com.raritantechnologies.xml.sax.filter.ElementModifier
activate, deactivate, filterCData, getAttributesModifier, getCDataModifier, getElementComparator, getLastPathMatched, getName, initialize, matchesData, matchesPath, matchesTag, modifiyAttributes, needsData, setAttributesModifier, setCDataModifier, setElementComparator, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementNameNotifier

public ElementNameNotifier()

ElementNameNotifier

public ElementNameNotifier(ElementComparator comp,
                           java.lang.Object target,
                           java.lang.String methodName)
Method Detail

setTargetObject

public void setTargetObject(java.lang.Object target)

setMethodName

public void setMethodName(java.lang.String methodName)

elementStarted

public void elementStarted(org.xml.sax.ContentHandler cHandler,
                           boolean isRootTag)
use Reflection to make callback method calls.

Overrides:
elementStarted in class ElementModifier

elementEnding

public void elementEnding(org.xml.sax.ContentHandler cHandler,
                          boolean isRootTag)
Overrides:
elementEnding in class ElementModifier