uk.org.ogsadai.engine
Class SchemaDocumentValidator

java.lang.Object
  |
  +--uk.org.ogsadai.common.DocumentValidator
        |
        +--uk.org.ogsadai.engine.SchemaDocumentValidator

public class SchemaDocumentValidator
extends DocumentValidator

A DocumentValidator that validates a document against a schema.

Author:
The OGSA-DAI Project Team

Constructor Summary
SchemaDocumentValidator(org.w3c.dom.Document schema)
          Constructs the document validator.
 
Method Summary
protected  void performValidation(org.w3c.dom.Document request)
          Validates the specified document and throws a DocumentValidationException with a desctiptive error message if the document is invalid.
 
Methods inherited from class uk.org.ogsadai.common.DocumentValidator
setSuccessor, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaDocumentValidator

public SchemaDocumentValidator(org.w3c.dom.Document schema)
Constructs the document validator.

Parameters:
schema - The schema to validate perform documents against
Method Detail

performValidation

protected void performValidation(org.w3c.dom.Document request)
                          throws DocumentValidationException
Description copied from class: DocumentValidator
Validates the specified document and throws a DocumentValidationException with a desctiptive error message if the document is invalid. This method must be implemented by DocumentValidator implementations.

Specified by:
performValidation in class DocumentValidator
Parameters:
request - the document to validate
Throws:
DocumentValidationException - if the document is invalid