org.apache.xerces.dom
Class DOMErrorImpl

java.lang.Object
  |
  +--org.apache.xerces.dom.DOMErrorImpl
All Implemented Interfaces:
org.apache.xerces.dom3.DOMError

public class DOMErrorImpl
extends java.lang.Object
implements org.apache.xerces.dom3.DOMError

DOMErrorImpl is an implementation that describes an error. Note: The error object that describes the error might be reused by Xerces implementation, across multiple calls to the handleEvent method on DOMErrorHandler interface.

See also the Document Object Model (DOM) Level 3 Core Specification.

Author:
Gopal Sharma, SUN Microsystems Inc., Elena Litani, IBM

Fields inherited from interface org.apache.xerces.dom3.DOMError
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING
 
Constructor Summary
DOMErrorImpl()
          Default constructor.
DOMErrorImpl(short severity, org.apache.xerces.xni.parser.XMLParseException exception)
          Exctracts information from XMLParserException)
 
Method Summary
 java.lang.Object getException()
          The byte or character offset into the input source, if we're parsing a file or a byte stream then this will be the byte offset into that stream, but if a character media is parsed then the offset will be the character offset.exception is a reserved word, we need to rename it.
 org.apache.xerces.dom3.DOMLocator getLocation()
          The location of the error.
 java.lang.String getMessage()
          An implementation specific string describing the error that occured.
 short getSeverity()
          The severity of the error, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.
 void reset()
           
 void setException(java.lang.Exception ex)
           
 void setLocator(org.apache.xerces.dom3.DOMLocator locator)
           
 void setMessage(java.lang.String msg)
           
 void setSeverity(short error)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMErrorImpl

public DOMErrorImpl()
Default constructor.

DOMErrorImpl

public DOMErrorImpl(short severity,
                    org.apache.xerces.xni.parser.XMLParseException exception)
Exctracts information from XMLParserException)
Method Detail

getSeverity

public short getSeverity()
The severity of the error, either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.
Specified by:
getSeverity in interface org.apache.xerces.dom3.DOMError

getMessage

public java.lang.String getMessage()
An implementation specific string describing the error that occured.
Specified by:
getMessage in interface org.apache.xerces.dom3.DOMError

getException

public java.lang.Object getException()
The byte or character offset into the input source, if we're parsing a file or a byte stream then this will be the byte offset into that stream, but if a character media is parsed then the offset will be the character offset.exception is a reserved word, we need to rename it.
Specified by:
getException in interface org.apache.xerces.dom3.DOMError

getLocation

public org.apache.xerces.dom3.DOMLocator getLocation()
The location of the error.
Specified by:
getLocation in interface org.apache.xerces.dom3.DOMError

setSeverity

public void setSeverity(short error)

setMessage

public void setMessage(java.lang.String msg)

setLocator

public void setLocator(org.apache.xerces.dom3.DOMLocator locator)

setException

public void setException(java.lang.Exception ex)

reset

public void reset()


Copyright © 1999-2002 Apache XML Project. All Rights Reserved.