Package uk.ac.starlink.ttools.taplint
Class XsdStage
java.lang.Object
uk.ac.starlink.ttools.taplint.XsdStage
- All Implemented Interfaces:
Stage
Validation stage for validating a document against a given XML schema.
- Since:
- 3 Jun 2011
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a short one-line description of this stage.abstract URLgetDocumentUrl(uk.ac.starlink.vo.TapService tapService) Returns the URL of the document to validate, given the service URL for the TAP service.Returns a token giving the result status last time this stage was run.voidPerforms the validation checks for this stage.
-
Constructor Details
-
XsdStage
protected XsdStage(String topElNamespaceUri, String topElName, boolean isMandatory, String resourceDescription) Constructor.- Parameters:
topElNamespaceUri- namespace of required document root elementtopElName- local name of required document root elementisMandatory- true iff resource is REQUIRED by standardresourceDescription- short description of what resource contains
-
-
Method Details
-
getDescription
Description copied from interface:StageReturns a short one-line description of this stage.- Specified by:
getDescriptionin interfaceStage- Returns:
- description in imperative mood
-
getDocumentUrl
Returns the URL of the document to validate, given the service URL for the TAP service.- Parameters:
tapService- TAP service description- Returns:
- url of XML document to validate
-
run
Description copied from interface:StagePerforms the validation checks for this stage. -
getResult
Returns a token giving the result status last time this stage was run.- Returns:
- validation result
-