Package org.apache.harmony.xml.dom
Class DOMErrorImpl
java.lang.Object
org.apache.harmony.xml.dom.DOMErrorImpl
- All Implemented Interfaces:
DOMError
public final class DOMErrorImpl extends Object implements DOMError
-
Field Summary
Fields inherited from interface org.w3c.dom.DOMError
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING -
Constructor Summary
Constructors Constructor Description DOMErrorImpl(short severity, String type) -
Method Summary
Modifier and Type Method Description DOMLocatorgetLocation()The location of the error.StringgetMessage()An implementation specific string describing the error that occurred.ObjectgetRelatedData()The relatedDOMError.typedependent data if any.ObjectgetRelatedException()The related platform dependent exception if any.shortgetSeverity()The severity of the error, eitherSEVERITY_WARNING,SEVERITY_ERROR, orSEVERITY_FATAL_ERROR.StringgetType()ADOMStringindicating which related data is expected inrelatedData.
-
Constructor Details
-
DOMErrorImpl
-
-
Method Details
-
getSeverity
public short getSeverity()Description copied from interface:DOMErrorThe severity of the error, eitherSEVERITY_WARNING,SEVERITY_ERROR, orSEVERITY_FATAL_ERROR.- Specified by:
getSeverityin interfaceDOMError
-
getMessage
Description copied from interface:DOMErrorAn implementation specific string describing the error that occurred.- Specified by:
getMessagein interfaceDOMError
-
getType
Description copied from interface:DOMErrorADOMStringindicating which related data is expected inrelatedData. Users should refer to the specification of the error in order to find itsDOMStringtype andrelatedDatadefinitions if any.Note: As an example,
Document.normalizeDocument()does generate warnings when the "split-cdata-sections" parameter is in use. Therefore, the method generates aSEVERITY_WARNINGwithtype"cdata-sections-splitted"and the firstCDATASectionnode in document order resulting from the split is returned by therelatedDataattribute. -
getRelatedException
Description copied from interface:DOMErrorThe related platform dependent exception if any.- Specified by:
getRelatedExceptionin interfaceDOMError
-
getRelatedData
Description copied from interface:DOMErrorThe relatedDOMError.typedependent data if any.- Specified by:
getRelatedDatain interfaceDOMError
-
getLocation
Description copied from interface:DOMErrorThe location of the error.- Specified by:
getLocationin interfaceDOMError
-