This documentation is for an old version of fiftyfive-wicket (2.0.9).


fiftyfive.wicket.test
Class XHtmlValidator

java.lang.Object
  extended by fiftyfive.wicket.test.AbstractDocumentValidator
      extended by fiftyfive.wicket.test.XHtmlValidator
All Implemented Interfaces:
ErrorHandler

public class XHtmlValidator
extends AbstractDocumentValidator

Utility for parsing XHTML documents and verifying that they are valid according to the DTD. You should not have to use this class directly; it will be auto-selected by helper methods in WicketTestUtils.


Constructor Summary
XHtmlValidator()
           
 
Method Summary
protected  DocumentBuilder builder()
          Constructs and returns a standard Java XML DocumentBuilder with validation enabled.
 
Methods inherited from class fiftyfive.wicket.test.AbstractDocumentValidator
error, fatalError, getDocument, getErrors, isValid, parse, setNumLinesContext, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XHtmlValidator

public XHtmlValidator()
Method Detail

builder

protected DocumentBuilder builder()
Constructs and returns a standard Java XML DocumentBuilder with validation enabled. Uses XHtmlEntityResolver to resolve DTDs locally for best performance.

Specified by:
builder in class AbstractDocumentValidator


Copyright © 2011 55 Minutes. All Rights Reserved.