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 URL
getDocumentUrl
(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.void
Performs 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:Stage
Returns a short one-line description of this stage.- Specified by:
getDescription
in 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:Stage
Performs the validation checks for this stage. -
getResult
Returns a token giving the result status last time this stage was run.- Returns:
- validation result
-