Class MerchantXmlParser

  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.davesag.generica.util.xml.AbstractXmlParser
          extended byorg.davesag.generica.util.xml.MerchantXmlParser
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XmlParser

public class MerchantXmlParser
extends AbstractXmlParser

The MerchantXmlParser turns an incoming xml text stream into a List of Merchant objects. Merchant is represented in XML in the form

          <merchant name="some name"
                  merchant-id="some id"
                  company-code="some company code"
                  email="some email address">
                  <bank name="some bank name"/>
                  <bank name="some other bank name"/>

Generica 1.0
CVS Revision $Id:,v 1.5 2004/03/30 13:00:43 davesag Exp $
Dave Sag

Nested Class Summary
Nested classes inherited from class org.davesag.generica.util.xml.XmlParser
Field Summary
Fields inherited from class org.davesag.generica.util.xml.AbstractXmlParser
theContent, theCurrentItem, theList, theParser
Constructor Summary
Method Summary
 void endElement(String uri, String local, String qName)
          Called when the End Element is encountered.
 void startElement(String uri, String local, String qName, Attributes atts)
          Called when the Start Element is encountered.
Methods inherited from class org.davesag.generica.util.xml.AbstractXmlParser
add, characters, getBuffer, getCurrentItem, getList, getParser, parse, parse, parseString, resetBuffer, setCurrentItem, setParser
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public MerchantXmlParser()
Method Detail


public void startElement(String uri,
                         String local,
                         String qName,
                         Attributes atts)
Called when the Start Element is encountered.

uri - the uri
local - dunno
qName - the tag name
atts - attributes


public void endElement(String uri,
                       String local,
                       String qName)
Called when the End Element is encountered.

uri - the uri
local - dunno
qName - the tag name

Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.