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.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:
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 void
error(org.xml.sax.SAXParseException exception)
SAX2 APIvoid
fatalError(org.xml.sax.SAXParseException exception)
SAX2 APIint
getErrorCount()
Return the error countint
getFatalCount()
Return the fatal error countint
getMaxMessages()
Return the number of messages to displayint
getWarningCount()
Return the warning countvoid
setMaxMessages(int max)
Set the number of messages to displayvoid
warning(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:
error
in interfaceorg.xml.sax.ErrorHandler
-
fatalError
public void fatalError(org.xml.sax.SAXParseException exception)
SAX2 API- Specified by:
fatalError
in interfaceorg.xml.sax.ErrorHandler
-
warning
public void warning(org.xml.sax.SAXParseException exception)
SAX2 API- Specified by:
warning
in interfaceorg.xml.sax.ErrorHandler
-
-