uk.ac.starlink.ttools.taplint
Class TapLinter

java.lang.Object
  extended by uk.ac.starlink.ttools.taplint.TapLinter

public class TapLinter
extends Object

Organises validation stages for TAP validator.

Since:
6 Jun 2011
Author:
Mark Taylor

Constructor Summary
TapLinter()
          Constructor.
 
Method Summary
 Executable createExecutable(Reporter reporter, URL serviceUrl, Set<String> stageCodeSet)
          Creates and returns an executable for TAP validation.
 Map<String,Stage> getKnownStages()
          Returns an ordered map of the validation stages defined by this class.
 boolean isDefault(String code)
          Indicates whether the stage with a given code is run by default or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TapLinter

public TapLinter()
Constructor.

Method Detail

getKnownStages

public Map<String,Stage> getKnownStages()
Returns an ordered map of the validation stages defined by this class.

Returns:
ordered code->stage map

isDefault

public boolean isDefault(String code)
Indicates whether the stage with a given code is run by default or not.

Parameters:
code - stage code
Returns:
true iff the corresponding stage is run by default

createExecutable

public Executable createExecutable(Reporter reporter,
                                   URL serviceUrl,
                                   Set<String> stageCodeSet)
                            throws TaskException
Creates and returns an executable for TAP validation.

Parameters:
reporter - validation message destination
serviceUrl - TAP service URL
stageCodeSet - unordered collection of code strings indicating which stages should be run
Returns:
tap validator executable
Throws:
TaskException


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