com.uwyn.rife.xml
Class Xml2Data

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.uwyn.rife.xml.Xml2Data
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
Xml2BlockingRepository, Xml2Config, Xml2Datasources, Xml2MemoryScheduler, Xml2MemoryUsers

public abstract class Xml2Data
extends DefaultHandler


Constructor Summary
Xml2Data()
           
 
Method Summary
protected  XmlErrorRedirector createErrorRedirector()
           
 void disableValidation(boolean activation)
           
 void enableValidation(boolean activation)
           
 void error(SAXParseException e)
           
 void fatalError(SAXParseException e)
           
protected  XmlErrorRedirector getErrorRedirector()
           
protected  ResourceFinder getResourceFinder()
           
protected  String getXmlPath()
           
 XMLReader processXml(String xmlPath)
           
 XMLReader processXml(String xmlPath, ResourceFinder resourceFinder)
           
 XMLReader processXml(String xmlPath, ResourceFinder resourceFinder, XMLReader reader)
           
 void warning(SAXParseException e)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xml2Data

public Xml2Data()
Method Detail

disableValidation

public void disableValidation(boolean activation)

enableValidation

public void enableValidation(boolean activation)

warning

public void warning(SAXParseException e)
Specified by:
warning in interface ErrorHandler
Overrides:
warning in class DefaultHandler

error

public void error(SAXParseException e)
Specified by:
error in interface ErrorHandler
Overrides:
error in class DefaultHandler

fatalError

public void fatalError(SAXParseException e)
Specified by:
fatalError in interface ErrorHandler
Overrides:
fatalError in class DefaultHandler

getXmlPath

protected String getXmlPath()

getResourceFinder

protected ResourceFinder getResourceFinder()

getErrorRedirector

protected XmlErrorRedirector getErrorRedirector()

createErrorRedirector

protected XmlErrorRedirector createErrorRedirector()

processXml

public XMLReader processXml(String xmlPath)
                     throws XmlErrorException
Throws:
XmlErrorException

processXml

public XMLReader processXml(String xmlPath,
                            ResourceFinder resourceFinder)
                     throws XmlErrorException
Throws:
XmlErrorException

processXml

public XMLReader processXml(String xmlPath,
                            ResourceFinder resourceFinder,
                            XMLReader reader)
                     throws XmlErrorException
Throws:
XmlErrorException


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.