Class TapLinter


  • public class TapLinter
    extends java.lang.Object
    Organises validation stages for TAP validator.
    Since:
    6 Jun 2011
    Author:
    Mark Taylor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MDQ_NAME
      Name of the MDQ stage.
    • Constructor Summary

      Constructors 
      Constructor Description
      TapLinter()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      uk.ac.starlink.task.Executable createExecutable​(OutputReporter reporter, uk.ac.starlink.vo.TapService tapService, java.util.Set<java.lang.String> stageCodeSet, int maxTestTables)
      Creates and returns an executable for TAP validation.
      java.util.Map<java.lang.String,​Stage> getKnownStages()
      Returns an ordered map of the validation stages defined by this class.
      boolean isDefault​(java.lang.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
    • Field Detail

      • MDQ_NAME

        public static final java.lang.String MDQ_NAME
        Name of the MDQ stage.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TapLinter

        public TapLinter()
        Constructor.
    • Method Detail

      • getKnownStages

        public java.util.Map<java.lang.String,​Stage> getKnownStages()
        Returns an ordered map of the validation stages defined by this class.
        Returns:
        ordered code->stage map
      • isDefault

        public boolean isDefault​(java.lang.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 uk.ac.starlink.task.Executable createExecutable​(OutputReporter reporter,
                                                               uk.ac.starlink.vo.TapService tapService,
                                                               java.util.Set<java.lang.String> stageCodeSet,
                                                               int maxTestTables)
                                                        throws uk.ac.starlink.task.TaskException
        Creates and returns an executable for TAP validation.
        Parameters:
        reporter - validation message destination
        tapService - TAP service description
        stageCodeSet - unordered collection of code strings indicating which stages should be run
        maxTestTables - limit on the number of tables to test, or <=0 for no limit
        Returns:
        tap validator executable
        Throws:
        uk.ac.starlink.task.TaskException