Package uk.ac.starlink.ttools.taplint
Class CapabilityStage
- java.lang.Object
-
- uk.ac.starlink.ttools.taplint.CapabilityStage
-
- All Implemented Interfaces:
CapabilityHolder
,Stage
public class CapabilityStage extends java.lang.Object implements Stage, CapabilityHolder
Stage for checking content of TAPRegExt capability metadata.- Since:
- 3 Jun 2011
- Author:
- Mark Taylor
- See Also:
- IVOA TAPRegExt Standard
-
-
Constructor Summary
Constructors Constructor Description CapabilityStage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static uk.ac.starlink.vo.TapCapability
checkCapabilities(Reporter reporter, java.net.URL capUrl)
Performs validation checks on a TAPRegExt document at a given URL.uk.ac.starlink.vo.TapCapability
getCapability()
Returns the TAP capability record obtained by the last run of this stage.java.lang.String
getDescription()
Returns a short one-line description of this stage.static void
main(java.lang.String[] args)
Can be used for standalone validation of a Capabilities document at a given URL.void
run(Reporter reporter, uk.ac.starlink.vo.EndpointSet endpointSet)
Performs the validation checks for this stage.
-
-
-
Method Detail
-
getDescription
public java.lang.String 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
-
getCapability
public uk.ac.starlink.vo.TapCapability getCapability()
Returns the TAP capability record obtained by the last run of this stage.- Specified by:
getCapability
in interfaceCapabilityHolder
- Returns:
- tap capability object
-
run
public void run(Reporter reporter, uk.ac.starlink.vo.EndpointSet endpointSet)
Description copied from interface:Stage
Performs the validation checks for this stage.
-
checkCapabilities
public static uk.ac.starlink.vo.TapCapability checkCapabilities(Reporter reporter, java.net.URL capUrl)
Performs validation checks on a TAPRegExt document at a given URL.- Parameters:
reporter
- destination for validation messagescapUrl
- URL of a Capabilities document
-
main
public static void main(java.lang.String[] args) throws java.net.MalformedURLException
Can be used for standalone validation of a Capabilities document at a given URL.- Throws:
java.net.MalformedURLException
-
-