org.apache.xml.resolver.apps
Class XParseError

java.lang.Object
  extended by org.apache.xml.resolver.apps.XParseError
All Implemented Interfaces:
ErrorHandler

public class XParseError
extends java.lang.Object
implements 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
XParseError(boolean errors, boolean warnings)
          Constructor
 
Method Summary
 void error(SAXParseException exception)
          SAX2 API
 void fatalError(SAXParseException exception)
          SAX2 API
 int getErrorCount()
          Return the error count
 int getFatalCount()
          Return the fatal error count
 int getMaxMessages()
          Return the number of messages to display
 int getWarningCount()
          Return the warning count
 void setMaxMessages(int max)
          Set the number of messages to display
 void warning(SAXParseException exception)
          SAX2 API
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XParseError

public XParseError(boolean errors,
                   boolean warnings)
Constructor

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(SAXParseException exception)
SAX2 API

Specified by:
error in interface ErrorHandler
Parameters:
exception - The error information encapsulated in a SAX parse exception.
See Also:
SAXParseException

fatalError

public void fatalError(SAXParseException exception)
SAX2 API

Specified by:
fatalError in interface ErrorHandler
Parameters:
exception - The error information encapsulated in a SAX parse exception.
See Also:
SAXParseException

warning

public void warning(SAXParseException exception)
SAX2 API

Specified by:
warning in interface ErrorHandler
Parameters:
exception - The warning information encapsulated in a SAX parse exception.
See Also:
SAXParseException