|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.dlese.dpc.xml.SimpleErrorHandler
public class SimpleErrorHandler
A simple XML error handler that catches XML errors and warnings and saves them to StringBuffers so the errors can be extracted and displayed.
Method Summary | |
---|---|
void |
comment(char[] ch,
int start,
int length)
DESCRIPTION |
void |
endCDATA()
DESCRIPTION |
void |
endDTD()
DESCRIPTION |
void |
endEntity(String name)
DESCRIPTION |
void |
error(SAXParseException exc)
DESCRIPTION |
void |
fatalError(SAXParseException exc)
DESCRIPTION |
boolean |
hasErrors()
Determines whether the parser found any validation errors. |
boolean |
hasWarnings()
Determines whether the parser found any validation warnings. |
void |
startCDATA()
DESCRIPTION |
void |
startDTD(String name,
String publicId,
String systemId)
DESCRIPTION |
void |
startEntity(String name)
DESCRIPTION |
void |
warning(SAXParseException exc)
DESCRIPTION |
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 |
Method Detail |
---|
public void error(SAXParseException exc)
error
in interface ErrorHandler
error
in class DefaultHandler
exc
- DESCRIPTIONpublic boolean hasErrors()
public boolean hasWarnings()
public void fatalError(SAXParseException exc)
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
exc
- DESCRIPTIONpublic void warning(SAXParseException exc)
warning
in interface ErrorHandler
warning
in class DefaultHandler
exc
- DESCRIPTIONpublic void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
name
- DESCRIPTIONpublicId
- DESCRIPTIONsystemId
- DESCRIPTION
SAXException
- DESCRIPTIONpublic void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
- DESCRIPTIONpublic void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
name
- DESCRIPTION
SAXException
- DESCRIPTIONpublic void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
name
- DESCRIPTION
SAXException
- DESCRIPTIONpublic void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
- DESCRIPTIONpublic void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
- DESCRIPTIONpublic void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
ch
- DESCRIPTIONstart
- DESCRIPTIONlength
- DESCRIPTION
SAXException
- DESCRIPTION
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |