Interface ParseExceptionHandler

  • All Known Implementing Classes:
    ParseExceptionHandler.Impl, Project, SavingHandler

    public interface ParseExceptionHandler
    Rudimentary Handler for SAXParseExceptions: The idea is that for html-parsers one needs a notify rather than throwing an exception as it is appropriate for xml.
    Version:
    1.0
    Author:
    Ernst Reissner
    • Method Detail

      • foundMultipleAttribute

        void foundMultipleAttribute​(String attrName,
                                    Object oldAttrValue)
        Notifies the occurence of a duplicate attribute declaration within a start tag.
        Parameters:
        attrName - a non-empty String representing the name of the attribute.
        oldAttrValue - an Object which is either a String representing the value of the attribute or the object AttributesImpl.NO_VALUE which signifies the absence of a value. Here the old value (which is overwritten in the attribute list) should be passed to the application. ****** it is not clear to me whether the ordering of the attribute list is significant. The former occurence of the attribute is lost. **** is this true?
      • foundIllegalCharInTag

        void foundIllegalCharInTag​(char chr)
        Notifies that an illegal character was found in a tag *****. To be more precise: at the beginning of the tag. Note that this is ignored and the next one is read.
        Parameters:
        chr - the illegal char value.
      • foundCharAfterEndOfEndTag

        void foundCharAfterEndOfEndTag​(char chr)
        Notifies that a character was found after the "/" of an end tag. Note that this is ignored and the next one is read.
        Parameters:
        chr - the illegal char value.
      • foundUnexpectedEndOfDocument

        void foundUnexpectedEndOfDocument()