com.sun.xml.stream
Class StaxErrorReporter

java.lang.Object
  extended by com.sun.xml.stream.XMLErrorReporter
      extended by com.sun.xml.stream.StaxErrorReporter
All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLComponent

public class StaxErrorReporter
extends XMLErrorReporter

Author:
neeraj

Field Summary
protected  javax.xml.stream.XMLReporter fXMLReporter
           
 
Fields inherited from class com.sun.xml.stream.XMLErrorReporter
CONTINUE_AFTER_FATAL_ERROR, ERROR_HANDLER, fContinueAfterFatalError, fDefaultErrorHandler, fErrorHandler, fLocale, fLocator, fMessageFormatters, SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING
 
Constructor Summary
StaxErrorReporter()
          Creates a new instance of StaxErrorReporter If this constructor is used to create the object, one must invoke reset() on this object.
StaxErrorReporter(PropertyManager propertyManager)
          Creates a new instance of StaxErrorReporter
 
Method Summary
 void reportError(org.apache.xerces.xni.XMLLocator location, java.lang.String domain, java.lang.String key, java.lang.Object[] arguments, short severity)
          Reports an error at a specific location.
 void reset(PropertyManager propertyManager)
          One must call reset before using any of the function.
 
Methods inherited from class com.sun.xml.stream.XMLErrorReporter
getErrorHandler, getFeature, getFeatureDefault, getLocale, getMessageFormatter, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, putMessageFormatter, removeMessageFormatter, reportError, reset, setDocumentLocator, setFeature, setLocale, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fXMLReporter

protected javax.xml.stream.XMLReporter fXMLReporter
Constructor Detail

StaxErrorReporter

public StaxErrorReporter(PropertyManager propertyManager)
Creates a new instance of StaxErrorReporter


StaxErrorReporter

public StaxErrorReporter()
Creates a new instance of StaxErrorReporter If this constructor is used to create the object, one must invoke reset() on this object.

Method Detail

reset

public void reset(PropertyManager propertyManager)
One must call reset before using any of the function.


reportError

public void reportError(org.apache.xerces.xni.XMLLocator location,
                        java.lang.String domain,
                        java.lang.String key,
                        java.lang.Object[] arguments,
                        short severity)
                 throws org.apache.xerces.xni.XNIException
Reports an error at a specific location.

Overrides:
reportError in class XMLErrorReporter
Parameters:
location - The error location.
domain - The error domain.
key - The key of the error message.
arguments - The replacement arguments for the error message, if needed.
severity - The severity of the error.
Throws:
org.apache.xerces.xni.XNIException
See Also:
XMLErrorReporter.SEVERITY_WARNING, XMLErrorReporter.SEVERITY_ERROR, XMLErrorReporter.SEVERITY_FATAL_ERROR


Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.