Package org.apache.xml.resolver.apps
Class XParseError
java.lang.Object
org.apache.xml.resolver.apps.XParseError
- All Implemented Interfaces:
ErrorHandler
An ErrorHandler for xparse.
This class is just the error handler for xparse.
- Version:
- 1.0
- Author:
- Norman Walsh Norman.Walsh@Sun.COM
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(SAXParseException exception) SAX2 APIvoid
fatalError
(SAXParseException exception) SAX2 APIint
Return the error countint
Return the fatal error countint
Return the number of messages to displayint
Return the warning countvoid
setMaxMessages
(int max) Set the number of messages to displayvoid
warning
(SAXParseException exception) SAX2 API
-
Constructor Details
-
XParseError
public XParseError(boolean errors, boolean warnings) Constructor
-
-
Method Details
-
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
SAX2 API- Specified by:
error
in interfaceErrorHandler
-
fatalError
SAX2 API- Specified by:
fatalError
in interfaceErrorHandler
-
warning
SAX2 API- Specified by:
warning
in interfaceErrorHandler
-