org.davesag.generica.util.xml
Class LinkXmlParser

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

public class LinkXmlParser
extends AbstractXmlParser

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

          <link title="sometitle" url="http://some.url/goes.here"
                          languageCode="en">
                  the description
          </site-copy>
 

Since:
Generica 1.0
Version:
CVS Revision $Id: LinkXmlParser.java,v 1.7 2004/03/30 13:00:43 davesag Exp $
Author:
Dave Sag http://www.davesag.com

Nested Class Summary
 
Nested classes inherited from class org.davesag.generica.util.xml.XmlParser
XmlParser.Factory
 
Field Summary
 
Fields inherited from class org.davesag.generica.util.xml.AbstractXmlParser
theContent, theCurrentItem, theList, theParser
 
Constructor Summary
LinkXmlParser()
           
 
Method Summary
 void endElement(String uri, String local, String qName)
          end the link tag
 void startElement(String uri, String local, String qName, Attributes atts)
          start parsing a link tag.
 
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

LinkXmlParser

public LinkXmlParser()
Method Detail

startElement

public void startElement(String uri,
                         String local,
                         String qName,
                         Attributes atts)
start parsing a link tag.

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

endElement

public void endElement(String uri,
                       String local,
                       String qName)
end the link tag

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


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