|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 ErrorHandlererror in class DefaultHandlerexc - DESCRIPTIONpublic boolean hasErrors()
public boolean hasWarnings()
public void fatalError(SAXParseException exc)
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerexc - DESCRIPTIONpublic void warning(SAXParseException exc)
warning in interface ErrorHandlerwarning in class DefaultHandlerexc - DESCRIPTION
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
startDTD in interface LexicalHandlername - DESCRIPTIONpublicId - DESCRIPTIONsystemId - DESCRIPTION
SAXException - DESCRIPTION
public void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXException - DESCRIPTION
public void startEntity(String name)
throws SAXException
startEntity in interface LexicalHandlername - DESCRIPTION
SAXException - DESCRIPTION
public void endEntity(String name)
throws SAXException
endEntity in interface LexicalHandlername - DESCRIPTION
SAXException - DESCRIPTION
public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXException - DESCRIPTION
public void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXException - DESCRIPTION
public void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerch - 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 | ||||||||