org.davesag.generica.util.xml
Interface XmlParser

All Known Implementing Classes:
AbstractXmlParser

public interface XmlParser

Classes that implement the XmlParser interface turn a specific xml file into a List of objects.

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

Nested Class Summary
static class XmlParser.Factory
          Inner Factory class that returns a named XmlParser object.
 
Method Summary
 List getList()
          Get the List of whatever objects were being parsed.
 void parse(InputSource xml)
          parses the input source provided.
 void parse(String xmlfile)
          Parse some XML form a file.
 void parseString(String s)
          Parse some XML provided in the form of a String.
 void setParser(org.apache.xerces.parsers.SAXParser parser)
          Set the SAX Parser to use and to recieve events from.
 

Method Detail

setParser

public void setParser(org.apache.xerces.parsers.SAXParser parser)
Set the SAX Parser to use and to recieve events from.

Parameters:
parser - The SAXParser.

getList

public List getList()
Get the List of whatever objects were being parsed.

Returns:
List of parsed Objects.

parseString

public void parseString(String s)
Parse some XML provided in the form of a String.

Parameters:
s - The XML string.

parse

public void parse(InputSource xml)
parses the input source provided.

Parameters:
xml - the input source to parse

parse

public void parse(String xmlfile)
Parse some XML form a file.

Parameters:
xmlfile - The XML file to parse.


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