public class XMLErrorHandler extends Object implements ErrorHandler
Constructor and Description |
---|
XMLErrorHandler() |
Modifier and Type | Method and Description |
---|---|
void |
cleanXML(String schemaLocation)
remove duplicate warnings from the list and set schemaloction
|
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
XMLDoc |
getXMLOutput() |
protected static boolean |
isWantLog() |
void |
reset() |
void |
setInputSource(InputSource inSource) |
void |
setParser(XMLParser parser)
Setter for parser attribute.
|
protected static void |
setWantLog(boolean wantLog) |
String |
toString() |
void |
warning(SAXParseException exception) |
protected static boolean isWantLog()
protected static void setWantLog(boolean wantLog)
wantLog
- the wantLog to setpublic void warning(SAXParseException exception)
warning
in interface ErrorHandler
exception
- ErrorHandler.warning(org.xml.sax.SAXParseException)
public void error(SAXParseException exception)
error
in interface ErrorHandler
exception
- ErrorHandler.error(org.xml.sax.SAXParseException)
public void fatalError(SAXParseException exception)
fatalError
in interface ErrorHandler
exception
- SAXParseExceptionJDFException
- - if fatal error occurspublic XMLDoc getXMLOutput()
public void cleanXML(String schemaLocation)
schemaLocation
- public String toString()
toString
in class Object
Object.toString()
public void setParser(XMLParser parser)
parser
- the parser to setpublic void setInputSource(InputSource inSource)
inSource
- public void reset()
Copyright © 2018. All rights reserved.