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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SchemaDocumentValidator
public SchemaDocumentValidator(org.w3c.dom.Document schema)
-
Constructs the document validator.
- Parameters:
schema
- The schema to validate perform documents against
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.