uk.ac.starlink.ttools.taplint
Class ColumnMetadataStage

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

public class ColumnMetadataStage
extends Object
implements Stage

Validation stage which checks all actual results (SELECT *) against declared metadata.

Since:
7 Jul 2011
Author:
Mark Taylor

Constructor Summary
ColumnMetadataStage(TapRunner tapRunner, MetadataHolder metaHolder, int maxTables)
          Constructor.
 
Method Summary
 String getDescription()
          Returns a short one-line description of this stage.
 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

ColumnMetadataStage

public ColumnMetadataStage(TapRunner tapRunner,
                           MetadataHolder metaHolder,
                           int maxTables)
Constructor.

Parameters:
tapRunner - object that can run TAP queries
metaHolder - provides table metadata at run time
maxTables - limit on the number of tables to test, or <=0 for no limit
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

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


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