Package eu.simuline.util.sgml
Interface ParseExceptionHandler
-
- All Known Implementing Classes:
ParseExceptionHandler.Impl,SavingHandler
public interface ParseExceptionHandlerRudimentary 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classParseExceptionHandler.ImplTrivial implementation for enclosing interface.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfoundCharAfterEndOfEndTag(char chr)Notifies that a character was found after the "/" of an end tag.voidfoundIllegalCharInTag(char chr)Notifies that an illegal character was found in a tag *****.voidfoundMultipleAttribute(java.lang.String attrName, java.lang.Object oldAttrValue)Notifies the occurence of a duplicate attribute declaration within a start tag.voidfoundUnexpectedEndOfDocument()
-
-
-
Method Detail
-
foundMultipleAttribute
void foundMultipleAttribute(java.lang.String attrName, java.lang.Object oldAttrValue)Notifies the occurence of a duplicate attribute declaration within a start tag.- Parameters:
attrName- a non-emptyStringrepresenting the name of the attribute.oldAttrValue- anObjectwhich is either aStringrepresenting the value of the attribute or the objectAttributesImpl.NO_VALUEwhich 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 illegalcharvalue.
-
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 illegalcharvalue.
-
foundUnexpectedEndOfDocument
void foundUnexpectedEndOfDocument()
-
-