nl.justobjects.toolkit.xml
Class DOMParser

java.lang.Object
  |
  +--nl.justobjects.toolkit.xml.DOMParser
All Implemented Interfaces:
org.xml.sax.ErrorHandler
Direct Known Subclasses:
JAXPDOMParser

public abstract class DOMParser
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Wraps the XML4J 2 DOM parser. $Id: DOMParser.java,v 1.16 2003/11/19 15:15:15 just Exp $

Author:
$Author: just $ - Just van den Broecke - Just Objects B.V. ©

Field Summary
private  org.xml.sax.EntityResolver entityResolver
           
private static java.lang.String propertiesPath
          The properties file to be loaded.
 
Constructor Summary
DOMParser()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException ex)
          Error.
 void fatalError(org.xml.sax.SAXParseException ex)
          Fatal error.
 org.xml.sax.EntityResolver getEntityResolver()
           
private  java.lang.String getLocationString(org.xml.sax.SAXParseException ex)
          Returns a string of the location.
static DOMParser getParser()
          Factory method: create instance of a DOM parser
static void p(java.lang.String s)
           
abstract  org.w3c.dom.Document parse(java.lang.String uri)
          Parse the specified file and return a DOM Document.
 void setEntityResolver(org.xml.sax.EntityResolver theEntityResolver)
           
abstract  void setProperty(java.lang.String key, java.lang.String value)
           
 void warning(org.xml.sax.SAXParseException ex)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

propertiesPath

private static java.lang.String propertiesPath
The properties file to be loaded.

entityResolver

private org.xml.sax.EntityResolver entityResolver
Constructor Detail

DOMParser

public DOMParser()
Method Detail

getParser

public static DOMParser getParser()
                           throws DOMParserException
Factory method: create instance of a DOM parser

parse

public abstract org.w3c.dom.Document parse(java.lang.String uri)
                                    throws DOMParserException
Parse the specified file and return a DOM Document.

getEntityResolver

public org.xml.sax.EntityResolver getEntityResolver()

setEntityResolver

public void setEntityResolver(org.xml.sax.EntityResolver theEntityResolver)

setProperty

public abstract void setProperty(java.lang.String key,
                                 java.lang.String value)
                          throws DOMParserException

warning

public void warning(org.xml.sax.SAXParseException ex)
Specified by:
warning in interface org.xml.sax.ErrorHandler

error

public void error(org.xml.sax.SAXParseException ex)
Error.
Specified by:
error in interface org.xml.sax.ErrorHandler

fatalError

public void fatalError(org.xml.sax.SAXParseException ex)
                throws org.xml.sax.SAXException
Fatal error.
Specified by:
fatalError in interface org.xml.sax.ErrorHandler

getLocationString

private java.lang.String getLocationString(org.xml.sax.SAXParseException ex)
Returns a string of the location.

p

public static void p(java.lang.String s)


Copyright © 2000-2001 - Just Objects B.V.