fi.karppinen.xml
Class MethodInvocator

java.lang.Object
  extended by gnu.xml.pipeline.EventFilter
      extended by fi.karppinen.xml.MethodInvocator
All Implemented Interfaces:
gnu.xml.pipeline.EventConsumer, ContentHandler, DTDHandler, DeclHandler, LexicalHandler

public class MethodInvocator
extends gnu.xml.pipeline.EventFilter

Invokes a method named in a PI. Eg. <?method doFoo?>

Version:
$Id: MethodInvocator.java,v 1.2 2006/12/01 12:37:00 hsivonen Exp $
Author:
hsivonen

Field Summary
private  Class<? extends Object> clazz
           
private static org.apache.log4j.Logger log4j
           
private  Object obj
           
 
Fields inherited from class gnu.xml.pipeline.EventFilter
DECL_HANDLER, FEATURE_URI, LEXICAL_HANDLER, PROPERTY_URI
 
Constructor Summary
MethodInvocator(Object obj)
           
MethodInvocator(Object obj, gnu.xml.pipeline.EventConsumer ec)
           
 
Method Summary
 void processingInstruction(String target, String data)
           
 
Methods inherited from class gnu.xml.pipeline.EventFilter
attributeDecl, bind, chainTo, characters, comment, elementDecl, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, externalEntityDecl, getContentHandler, getDocumentLocator, getDTDHandler, getErrorHandler, getNext, getProperty, ignorableWhitespace, internalEntityDecl, notationDecl, setContentHandler, setDocumentLocator, setDTDHandler, setErrorHandler, setProperty, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log4j

private static final org.apache.log4j.Logger log4j

obj

private Object obj

clazz

private Class<? extends Object> clazz
Constructor Detail

MethodInvocator

public MethodInvocator(Object obj)
Parameters:
obj - the object whose methods to invoke

MethodInvocator

public MethodInvocator(Object obj,
                       gnu.xml.pipeline.EventConsumer ec)
Parameters:
obj - the object whose methods to invoke
Method Detail

processingInstruction

public void processingInstruction(String target,
                                  String data)
                           throws SAXException
Specified by:
processingInstruction in interface ContentHandler
Overrides:
processingInstruction in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
ContentHandler.processingInstruction(java.lang.String, java.lang.String)