org.eclipse.actf.model.dom.html.errorhandler
Class TRErrorHandler

java.lang.Object
  extended by org.eclipse.actf.model.dom.html.errorhandler.TRErrorHandler
All Implemented Interfaces:
IErrorHandler, IParserError

public class TRErrorHandler
extends Object
implements IErrorHandler

If start tag of TR is missed and only its end tag exists, provide start tag.


Field Summary
 
Fields inherited from interface org.eclipse.actf.model.dom.html.IParserError
ATTR_VALUE, BEFORE_ATTRNAME, BOM, DOCTYPE_MISSED, FLOATING_ENDTAG, ILLEGAL_ATTRIBUTE, ILLEGAL_CHILD, ILLEGAL_DOCTYPE, ILLEGAL_TOP_ELEMENT, MISC_ERR, STARTTAG_SYNTAX_ERR, SUDDEN_ENDTAG, TAG_NAME, UNKNOWN_ELEMENT
 
Constructor Summary
TRErrorHandler()
           
 
Method Summary
 boolean handleError(int code, IParser parser, Node errorNode)
          Handles error whose type is specified by code
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TRErrorHandler

public TRErrorHandler()
Method Detail

handleError

public boolean handleError(int code,
                           IParser parser,
                           Node errorNode)
                    throws ParseException,
                           IOException,
                           SAXException
Description copied from interface: IErrorHandler
Handles error whose type is specified by code

Specified by:
handleError in interface IErrorHandler
Parameters:
code - error type.
parser - caller of this handler. This parser's state is easily changed by the referenced methods.
errorNode - a node that causes the error.
Returns:
true if error was handled. Otherwise false .
Throws:
ParseException
IOException
SAXException
See Also:
IParser.getNode(), IParser.pushBackNode(org.w3c.dom.Node), IParser.getExtraErrInfo(), IParser.getContext(), IParser.setContext(org.w3c.dom.Element)