Package eu.simuline.util.sgml
Class ParseExceptionHandler.Impl
- java.lang.Object
-
- eu.simuline.util.sgml.ParseExceptionHandler.Impl
-
- All Implemented Interfaces:
ParseExceptionHandler
- Enclosing interface:
- ParseExceptionHandler
public static class ParseExceptionHandler.Impl extends java.lang.Object implements ParseExceptionHandler
Trivial implementation for enclosing interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface eu.simuline.util.sgml.ParseExceptionHandler
ParseExceptionHandler.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl()
-
Method Summary
All Methods Instance Methods Concrete 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
public void foundMultipleAttribute(java.lang.String attrName, java.lang.Object oldAttrValue)Description copied from interface:ParseExceptionHandlerNotifies the occurence of a duplicate attribute declaration within a start tag.- Specified by:
foundMultipleAttributein interfaceParseExceptionHandler- 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
public void foundIllegalCharInTag(char chr)
Description copied from interface:ParseExceptionHandlerNotifies 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.- Specified by:
foundIllegalCharInTagin interfaceParseExceptionHandler- Parameters:
chr- the illegalcharvalue.
-
foundCharAfterEndOfEndTag
public void foundCharAfterEndOfEndTag(char chr)
Description copied from interface:ParseExceptionHandlerNotifies that a character was found after the "/" of an end tag. Note that this is ignored and the next one is read.- Specified by:
foundCharAfterEndOfEndTagin interfaceParseExceptionHandler- Parameters:
chr- the illegalcharvalue.
-
foundUnexpectedEndOfDocument
public void foundUnexpectedEndOfDocument()
- Specified by:
foundUnexpectedEndOfDocumentin interfaceParseExceptionHandler
-
-