oss.net.pstream.sax
Class ElementHandlerMap

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--oss.net.pstream.sax.ElementHandlerMap
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ElementHandlerMap
extends java.util.HashMap

A custom HashMap for keeping track of all my element handlers. Also has a nice little constructor which makes instances of all my handlers.

Title:

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
unascribed
See Also:
Serialized Form

Constructor Summary
ElementHandlerMap(boolean Debug)
          The only constructor.
 
Method Summary
 ElementHandler getHandler(java.lang.String ElementName)
          Returns an ElementHandler designed to handle the element with the given name.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ElementHandlerMap

public ElementHandlerMap(boolean Debug)
The only constructor. Creates instances of all the ElementHandlers used in my XML file and adds them to the hashmap for quick lookup.

Method Detail

getHandler

public ElementHandler getHandler(java.lang.String ElementName)
Returns an ElementHandler designed to handle the element with the given name.

Parameters:
ElementName - the name of the element which needs to be handled.
Returns:
the right handler or null if none exists.


Copyright © 2000 Dummy Corp. All Rights Reserved.