GXPARSE hosted by SourceForge.net Logo

Interface NamespaceMapper<T extends Parser>

All Superinterfaces:
ElementListener<T>, ElementMapper<T>, Iterable<String>
All Known Implementing Classes:

public interface NamespaceMapper<T extends Parser>
extends ElementMapper<T>, Iterable<String>

An ElementMapper that maps XML element names in one or more XML namespaces to element handlers and invokes the appropriate handler for each element.

The handler will be equivalent to the doElement method of an ElementListener.

Provides access to a list of the namespaces for which elements are mapped.

A NamespaceMapper should normally map all the elements of any XML namespace in its list, but is not required to do so. Failure to map an element that is in one of the namespaces in the list will cause the doElement method to throw an exception.

Nested Class Summary
static class NamespaceMapper.NamespaceMapException
           Exception thrown when an error is detected in the mapping of namespaces.
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
Method Summary
 Iterator<String> iterator()
           Return an iterator for the namespace URIs that are mapped by the NamespaceMapper.
Methods inherited from interface ca.gorman.xml.parse.ElementMapper

Method Detail


Iterator<String> iterator()

Return an iterator for the namespace URIs that are mapped by the NamespaceMapper.

Specified by:
iterator in interface Iterable<String>

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