ilog.rules.xml.util

Interface IlrXmlErrorHandler



  • public interface IlrXmlErrorHandler
    This interface is used during the XML error processing (parsing and binding) to determine whether an error is filtered or not. Error and warning events are sent to this handler by the means of processWarning or processError calls.

    To activate the XML binding processing, this interface must be implemented by users and declared to an XML driver during its initialization.

    Errors and warnings notified may be declared and memorized by calling the IlrXmlErrorManger methods. If those methods are not called, the notified error or the warning is forgotten.

    See Also:
    IlrXmlErrorManager, IlrXmlFatalErrorException, IlrXmlError
    • Method Detail

      • isNotifiedBefore

        boolean isNotifiedBefore(IlrXmlError error1,
                               IlrXmlError error2)
        This method indicates if an error must be showed before before another one.
      • areSame

        boolean areSame(IlrXmlError error1,
                      IlrXmlError error2)
        This method indicates if two errors are considered by the handler at the same time. In that case, the second error is removed of the XML processing.
      • setErrorManager

        void setErrorManager(IlrXmlErrorManager manager)
        This method is called by the XML processing to notify the error manager currently used. This manager is usefull declare errors or warnings to the processing.

© Copyright IBM Corp. 1987, 2017