Package uk.ac.starlink.ttools.taplint
Class TapLinter
java.lang.Object
uk.ac.starlink.ttools.taplint.TapLinter
Organises validation stages for TAP validator.
- Since:
- 6 Jun 2011
- Author:
- Mark Taylor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionuk.ac.starlink.task.Executable
createExecutable
(OutputReporter reporter, uk.ac.starlink.vo.TapService tapService, Set<String> stageCodeSet, int maxTestTables, Predicate<uk.ac.starlink.vo.TableMeta> tableFilter) Creates and returns an executable for TAP validation.static String[]
getAnnouncements
(boolean includeCodes) Returns a list of startup announcements with which the taplint application introduces itself.Returns an ordered map of the validation stages defined by this class.boolean
Indicates whether the stage with a given code is run by default or not.
-
Field Details
-
MDQ_NAME
Name of the MDQ stage.- See Also:
-
-
Constructor Details
-
TapLinter
public TapLinter()Constructor.
-
-
Method Details
-
getKnownStages
Returns an ordered map of the validation stages defined by this class.- Returns:
- ordered code->stage map
-
isDefault
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 uk.ac.starlink.task.Executable createExecutable(OutputReporter reporter, uk.ac.starlink.vo.TapService tapService, Set<String> stageCodeSet, int maxTestTables, Predicate<uk.ac.starlink.vo.TableMeta> tableFilter) throws uk.ac.starlink.task.TaskException Creates and returns an executable for TAP validation.- Parameters:
reporter
- validation message destinationtapService
- TAP service descriptionstageCodeSet
- unordered collection of code strings indicating which stages should be runmaxTestTables
- limit on the number of tables to test, or <=0 for no limittableFilter
- filter for tables to receive testing, or null for no restriction- Returns:
- tap validator executable
- Throws:
uk.ac.starlink.task.TaskException
-
getAnnouncements
Returns a list of startup announcements with which the taplint application introduces itself.- Parameters:
includeCodes
- if true include a summary of taplint report codes- Returns:
- announcement lines
-