uk.ac.starlink.ttools.taplint
Class CapabilityStage

java.lang.Object
  extended by uk.ac.starlink.ttools.taplint.CapabilityStage
All Implemented Interfaces:
CapabilityHolder, Stage

public class CapabilityStage
extends 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
CapabilityStage()
           
 
Method Summary
static TapCapability checkCapabilities(Reporter reporter, URL capUrl)
          Performs validation checks on a TAPRegExt document at a given URL.
 TapCapability getCapability()
          Returns the TAP capability record obtained by the last run of this stage.
 String getDescription()
          Returns a short one-line description of this stage.
static void main(String[] args)
          Can be used for standalone validation of a Capabilities document at a given URL.
 void run(Reporter reporter, URL serviceUrl)
          Performs the validation checks for this stage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapabilityStage

public CapabilityStage()
Method Detail

getDescription

public String getDescription()
Description copied from interface: Stage
Returns a short one-line description of this stage.

Specified by:
getDescription in interface Stage
Returns:
description in imperative mood

getCapability

public TapCapability getCapability()
Returns the TAP capability record obtained by the last run of this stage.

Specified by:
getCapability in interface CapabilityHolder
Returns:
tap capability object

run

public void run(Reporter reporter,
                URL serviceUrl)
Description copied from interface: Stage
Performs the validation checks for this stage.

Specified by:
run in interface Stage
Parameters:
reporter - destination for validation messages
serviceUrl - TAP service URL

checkCapabilities

public static TapCapability checkCapabilities(Reporter reporter,
                                              URL capUrl)
Performs validation checks on a TAPRegExt document at a given URL.

Parameters:
reporter - destination for validation messages
capUrl - URL of a Capabilities document

main

public static void main(String[] args)
                 throws MalformedURLException
Can be used for standalone validation of a Capabilities document at a given URL.

Throws:
MalformedURLException


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.