com.ls.util.xml
Class OrderedXMLHandler

java.lang.Object
  |
  +--com.ls.util.xml.XMLHandler
        |
        +--com.ls.util.xml.OrderedXMLHandler
All Implemented Interfaces:
org.xml.sax.DocumentHandler, IXMLHandler

public class OrderedXMLHandler
extends XMLHandler

This class is for hashtable from a xmlString. To keep the order of the xmlString attribute, need to extend xmlHandler class.

Version:
$Revision: 1.1 $
Author:
Last modified by $Author: TBerk $

Fields inherited from class com.ls.util.xml.XMLHandler
elementValue
 
Constructor Summary
OrderedXMLHandler()
          Creates an instance of the xmlParser and sets its handler to this object.
 
Method Summary
protected  Map createElementHash()
          overiding this method to keep the hashtable keys order
 
Methods inherited from class com.ls.util.xml.XMLHandler
buildString, characters, createXMLdocument, endDocument, endElement, getAttributes, ignorableWhitespace, parse, parse, parse, processingInstruction, setDocumentLocator, startDocument, startElement, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderedXMLHandler

public OrderedXMLHandler()
Creates an instance of the xmlParser and sets its handler to this object.
Method Detail

createElementHash

protected Map createElementHash()
overiding this method to keep the hashtable keys order
Overrides:
createElementHash in class XMLHandler
Returns:
The created element hash. The type of this hash is OrderedHashtable.