Package uk.ac.starlink.ttools.taplint
Class TapRunner
java.lang.Object
uk.ac.starlink.ttools.taplint.TapRunner
- Direct Known Subclasses:
BasicTapRunner
,VotLintTapRunner
Executes TAP queries for the validator.
- Since:
- 9 Jun 2011
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionuk.ac.starlink.table.StarTable
attemptGetResultTable
(Reporter reporter, uk.ac.starlink.vo.TapQuery tq) Attempts to execute a TAP query and returns the result table, or throws an exception if the query failed for some reason.protected abstract uk.ac.starlink.table.StarTable
executeQuery
(Reporter reporter, uk.ac.starlink.vo.TapQuery query) Executes a TAP query, performing reporting as appropriate.Returns a short description.uk.ac.starlink.table.StarTable
getResultTable
(Reporter reporter, uk.ac.starlink.vo.TapQuery tq) Executes a TAP query and returns the result table, or null if the query failed for some reason.void
reportSummary
(Reporter reporter) Reports a summary of the queries executed by this object.
-
Constructor Details
-
TapRunner
Constructor.- Parameters:
description
- short description of this object's type
-
-
Method Details
-
getDescription
Returns a short description.- Returns:
- descriptive label
-
getResultTable
public uk.ac.starlink.table.StarTable getResultTable(Reporter reporter, uk.ac.starlink.vo.TapQuery tq) Executes a TAP query and returns the result table, or null if the query failed for some reason. Errors are reported through the reporter as appropriate.- Parameters:
reporter
- validation message destinationtq
- TAP query specification- Returns:
- result table, or null if there was an error
-
attemptGetResultTable
public uk.ac.starlink.table.StarTable attemptGetResultTable(Reporter reporter, uk.ac.starlink.vo.TapQuery tq) throws IOException, SAXException Attempts to execute a TAP query and returns the result table, or throws an exception if the query failed for some reason.- Parameters:
reporter
- validation message destinationtq
- TAP query specification- Returns:
- result table, not null
- Throws:
IOException
SAXException
-
executeQuery
protected abstract uk.ac.starlink.table.StarTable executeQuery(Reporter reporter, uk.ac.starlink.vo.TapQuery query) throws IOException, SAXException Executes a TAP query, performing reporting as appropriate. The result may be null, but will normally be either a table or an IOException will result.- Parameters:
reporter
- validation message destinationquery
- query to execute- Returns:
- result table
- Throws:
IOException
SAXException
-
reportSummary
Reports a summary of the queries executed by this object.- Parameters:
reporter
- validation message destination
-