|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.common.DocumentValidator
|
+--uk.org.ogsadai.engine.UnknownActivityDocumentValidator
A DocumentValidator that scans through the activites contained
in the given perform document ensuring that they are known by the engine. If
this is not the case then an DocumentValidationException is
thrown. Note that documentation elements are ignored.
| Constructor Summary | |
UnknownActivityDocumentValidator(java.util.Set knownActivities)
Constructs an UnknownActivityDocumentValidator that knows
about all the activities in the specified set. |
|
| 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 |
public UnknownActivityDocumentValidator(java.util.Set knownActivities)
UnknownActivityDocumentValidator that knows
about all the activities in the specified set.
knownActivities - a Set of activity names.| Method Detail |
protected void performValidation(org.w3c.dom.Document request)
throws DocumentValidationException
DocumentValidatorDocumentValidationException with a desctiptive error message
if the document is invalid. This method must be implemented by
DocumentValidator implementations.
performValidation in class DocumentValidatorrequest - the document to validate
DocumentValidationException - if the document is invalid
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||