fi.iki.hsivonen.xml.checker.jing
Class CheckerValidator

java.lang.Object
  extended by fi.iki.hsivonen.xml.checker.jing.CheckerValidator
All Implemented Interfaces:
Validator

public final class CheckerValidator
extends Object
implements Validator

Wraps a Checker so that it can be used like a Jing Validator.

Version:
$Id: CheckerValidator.java,v 1.3 2006/12/01 12:34:31 hsivonen Exp $
Author:
hsivonen

Field Summary
private  Checker checker
          The wrapped Checker
 
Constructor Summary
CheckerValidator(Checker checker, PropertyMap propertyMap)
          Constructor
 
Method Summary
 ContentHandler getContentHandler()
          Returns the wrapped Checker.
 DTDHandler getDTDHandler()
          Returns null.
 void reset()
          Resets the wrapped Checker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

checker

private final Checker checker
The wrapped Checker

Constructor Detail

CheckerValidator

public CheckerValidator(Checker checker,
                        PropertyMap propertyMap)
Constructor

Parameters:
checker - the Checker to wrap
propertyMap - a property map containing a mapping for ValidateProperty.ERROR_HANDLER
Method Detail

getContentHandler

public ContentHandler getContentHandler()
Returns the wrapped Checker.

Specified by:
getContentHandler in interface Validator
Returns:
the wrapped Checker
See Also:
Validator.getContentHandler()

getDTDHandler

public DTDHandler getDTDHandler()
Returns null.

Specified by:
getDTDHandler in interface Validator
Returns:
null
See Also:
Validator.getDTDHandler()

reset

public void reset()
Resets the wrapped Checker.

Specified by:
reset in interface Validator
See Also:
Validator.reset()