Class Validator

java.lang.Object
javax.xml.validation.Validator

public abstract class Validator extends Object

A processor that checks an XML document against Schema.

A validator is a thread-unsafe and non-reentrant object. In other words, it is the application's responsibility to make sure that one Validator object is not used from more than one thread at any given time, and while the validate method is invoked, applications may not recursively call the validate method.

Note that while the validate(javax.xml.transform.Source) and validate(javax.xml.transform.Source, javax.xml.transform.Result) methods take a Source instance, the Source instance must be a SAXSource, DOMSource, StAXSource or StreamSource.

Since:
1.5
Version:
$Revision: 888884 $, $Date: 2009-12-09 19:36:46 +0200 (Wed, 09 Dec 2009) $
Author:
Kohsuke Kawaguchi