SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING| Constructor and Description |
|---|
XMLError()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(int line, int col, java.lang.String pubId, java.lang.String sysId, java.lang.String mesg, int id, int type, boolean stop)
Adds a new error to the vector
|
boolean |
error(short severity, java.lang.String mesg, int id, java.lang.String type, DOMException relatedException, java.lang.Object relatedData)
DOM 3.0 error information
|
void |
flushErrors()
Flush all the error to the ouput stream output stream defaults or to error handler
|
void |
flushErrors1() |
void |
flushNodes(java.lang.String errMsg, java.lang.String val)
Set the properties for the nodes where validation error occured.
|
boolean |
getDOMErrorOption()
Gets the flag for DOM Errors to be returned.
|
ErrorHandler |
getErrorHandler()
Return register error handler
|
java.util.Vector |
getListTrees()
This method returns the list of stacks that was built with the nodes where the schema validation failed
|
boolean |
getStopNormalizing() |
void |
setDOMErrorOption(boolean docerrflag)
Sets the flag for DOM Errors to be returned.
|
void |
setErrorHandler(ErrorHandler err)
Register error handler
|
error, error, error0, error1, error2, error3, flushErrorStream, formatErrorMesg, getColumnNumber, getException, getFirstError, getLineNumber, getLocator, getMessage, getMessage, getMessage0, getMessage1, getMessage2, getMessage3, getMessage4, getMessage5, getMessageId, getMessageType, getNumExceptions, getNumFatalMessages, getNumMessages, getPublicId, getSystemId, printErrorListener, reset, setErrorStream, setErrorStream, setErrorStream, setException, setLocale, setLocator, showWarningsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocation, getMessage, getRelatedData, getRelatedException, getSeverity, getTypepublic void setErrorHandler(ErrorHandler err)
err - - ErrorHandlerpublic ErrorHandler getErrorHandler()
public void error(int line,
int col,
java.lang.String pubId,
java.lang.String sysId,
java.lang.String mesg,
int id,
int type,
boolean stop)
throws XMLParseException
line - the line number where error occurscol - the column number where the error occurspubId - the public IdentifiersysId - the system identifiermesg - the error messageid - the error idtype - the error typestop - boolean to indicate if the processing needs to be stopped.XMLParseException - in case of a fatal error
public void flushErrors()
throws XMLParseException
XMLParseException - in case of a fatal error
public void flushErrors1()
throws XMLParseException,
SAXParseException,
SAXException,
java.io.IOException
XMLParseExceptionSAXParseExceptionSAXExceptionjava.io.IOException
public void flushNodes(java.lang.String errMsg,
java.lang.String val)
errMsg - - Error message returned from validatorval - - Node/Attribute name.public java.util.Vector getListTrees()
public void setDOMErrorOption(boolean docerrflag)
docerrflag - - booleanpublic boolean getDOMErrorOption()
public boolean error(short severity,
java.lang.String mesg,
int id,
java.lang.String type,
DOMException relatedException,
java.lang.Object relatedData)
public boolean getStopNormalizing()