uk.org.ogsadai.activity
Class SchemaDocumentValidator

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

public class SchemaDocumentValidator
extends DocumentValidator

A DocumentValidator that validates a document against a schema.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private static DAILogger LOG
          Logger object for logging in this class
private  org.w3c.dom.Document mSchema
          Perform document schema
 
Fields inherited from class uk.org.ogsadai.common.DocumentValidator
 
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
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

LOG

private static final DAILogger LOG
Logger object for logging in this class


mSchema

private final org.w3c.dom.Document mSchema
Perform document schema

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.

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