GXPARSE hosted by SourceForge.net Logo

ca.gorman.xml.parse.util
Class ClassNamespaceElementMapper<T extends Parser>

java.lang.Object
  extended by ca.gorman.xml.parse.util.ClassNamespaceElementMapper<T>
All Implemented Interfaces:
ElementListener<T>, ElementMapper<T>

public class ClassNamespaceElementMapper<T extends Parser>
extends Object
implements ElementMapper<T>

This class is a placeholder, not fully implemented Maps XML namespaces to Java classes and XML elements to methods in the class that corresponds the namespace of the element.


Nested Class Summary
 
Nested classes/interfaces inherited from interface ca.gorman.xml.parse.ElementMapper
ElementMapper.InvalidHandlerException, ElementMapper.NotFoundException
 
Field Summary
 
Fields inherited from interface ca.gorman.xml.parse.ElementMapper
ESCAPE_CENT, ESCAPE_CURRENCY, ESCAPE_DOLLAR, ESCAPE_POUND, ESCAPE_YEN
 
Constructor Summary
ClassNamespaceElementMapper()
           
 
Method Summary
 void doElement(T parser, CurrentElement element)
           Receive a request to handle a element that is being parsed, and invoke the appropriate element method for that element, not implemented yet,throws UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassNamespaceElementMapper

public ClassNamespaceElementMapper()
Method Detail

doElement

public void doElement(T parser,
                      CurrentElement element)
               throws ListenerException,
                      IOException

Receive a request to handle a element that is being parsed, and invoke the appropriate element method for that element, not implemented yet,throws UnsupportedOperationException.

Specified by:
doElement in interface ElementListener<T extends Parser>
Specified by:
doElement in interface ElementMapper<T extends Parser>
Parameters:
parser - The Parser that invoked this method
element - CurrentElement instance with a content handler to parse the centent of the element.
Throws:
ListenerException - when the exception has been thrown from a Listener method.
IOException - when an input or output error occurs

GXPARSE download

GXPARSE Generic XML Stream Parser API and supporting tools.   Release $Name: gxparse-sf-alpha-2_0 $
Copyright 2003-2004 Ian E. Gorman
Released under GNU Lesser General Public License