|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--oracle.xml.util.XMLError
|
+--oracle.xml.parser.v2.XMLError
This class hold error message and the line number where it occured
| Field Summary |
| Fields inherited from class oracle.xml.util.XMLError |
col, errid, exp, line, mesg, pubId, sysId, types |
| Fields inherited from interface org.w3c.dom.DOMError |
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING |
| Constructor Summary | |
XMLError()Default constructor | |
| Method Summary | |
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 |
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 |
void |
setDOMErrorOption(boolean docerrflag)Sets the flag for DOM Errors to be returned. |
void |
setErrorHandler(ErrorHandler err)Register error handler |
void |
setLocation(DOMLocator location)Set the DOM Locator |
| Methods inherited from class oracle.xml.util.XMLError |
error, error, error0, error1, error2, error3, flushErrorStream, formatErrorMesg, getColumnNumber, getException, getFirstError, getLineNumber, getLocator, getMessage, getMessage, getMessage0, getMessage1, getMessage2, getMessage3, getMessage4, getMessage5, getMessageType, getNumMessages, getPublicId, getSystemId, printErrorListener, reset, setErrorStream, setErrorStream, setErrorStream, setException, setLocale, setLocator, showWarnings |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.DOMError |
getLocation, getMessage, getRelatedData, getRelatedException, getSeverity, getType |
| Constructor Detail |
public XMLError()
| Method Detail |
public 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 void setLocation(DOMLocator location)
location - DOMLocator
|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||