|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.XMLUtil.Validator
private static class XMLUtil.Validator
This class is used to handle callbacks from the XML parser. We need this for throwing better error messages and to find the DTD.
Field Summary | |
---|---|
private URL |
dtdFile
|
private String |
parsedFile
|
Constructor Summary | |
---|---|
private |
XMLUtil.Validator(String parsedFile,
URL dtdFile)
Create a new instance of this class. |
Method Summary | |
---|---|
void |
error(SAXParseException exception)
Errors thrown with a detailed error message. |
void |
fatalError(SAXParseException exception)
Fatal errors thrown with a detailed error message. |
InputSource |
resolveEntity(String publicId,
String systemId)
This method is called when the parser wants a reference to the DTD file. |
void |
warning(SAXParseException exception)
Ignore warnings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final String parsedFile
private final URL dtdFile
Constructor Detail |
---|
private XMLUtil.Validator(String parsedFile, URL dtdFile)
Method Detail |
---|
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
SAXException
public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
SAXException
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
SAXException
IOException
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |