Package org.apache.xml.resolver.apps
Class XParseError
- java.lang.Object
-
- org.apache.xml.resolver.apps.XParseError
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class XParseError extends java.lang.Object implements org.xml.sax.ErrorHandlerAn ErrorHandler for xparse.This class is just the error handler for xparse.
- Version:
- 1.0
- Author:
- Norman Walsh Norman.Walsh@Sun.COM
- See Also:
xparse
-
-
Constructor Summary
Constructors Constructor Description XParseError(boolean errors, boolean warnings)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(org.xml.sax.SAXParseException exception)SAX2 APIvoidfatalError(org.xml.sax.SAXParseException exception)SAX2 APIintgetErrorCount()Return the error countintgetFatalCount()Return the fatal error countintgetMaxMessages()Return the number of messages to displayintgetWarningCount()Return the warning countvoidsetMaxMessages(int max)Set the number of messages to displayvoidwarning(org.xml.sax.SAXParseException exception)SAX2 API
-
-
-
Method Detail
-
getErrorCount
public int getErrorCount()
Return the error count
-
getFatalCount
public int getFatalCount()
Return the fatal error count
-
getWarningCount
public int getWarningCount()
Return the warning count
-
getMaxMessages
public int getMaxMessages()
Return the number of messages to display
-
setMaxMessages
public void setMaxMessages(int max)
Set the number of messages to display
-
error
public void error(org.xml.sax.SAXParseException exception)
SAX2 API- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler
-
fatalError
public void fatalError(org.xml.sax.SAXParseException exception)
SAX2 API- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler
-
warning
public void warning(org.xml.sax.SAXParseException exception)
SAX2 API- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler
-
-