FileDocCategorySizeDatePackage
DOMErrorMonitor.javaAPI DocAndroid 1.5 API1755Wed May 06 22:41:04 BST 2009org.w3c.domts

DOMErrorMonitor

public class DOMErrorMonitor extends Object implements DOMErrorHandler
This is a utility implementation of EventListener that captures all events and provides access to lists of all events by mode

Fields Summary
private final List
errors
Constructors Summary
public DOMErrorMonitor()
Public constructor


       
    
  
Methods Summary
public voidassertLowerSeverity(DOMTestCase testCase, java.lang.String id, int severity)

    Iterator iter = errors.iterator();
    while (iter.hasNext()) {
      DOMError error = (DOMError) iter.next();
      if (error.getSeverity() >= severity) {
        testCase.fail(id + error.getMessage());
      }
    }
  
public java.util.ListgetAllErrors()
Gets list of errors

return
return errors

    return new ArrayList(errors);
  
public booleanhandleError(org.w3c.dom.DOMError error)
Implementation of DOMErrorHandler.handleError that adds copy of error to list for later retrieval.

    errors.add(new DOMErrorImpl(error));
    return true;