Class ObsLocStage

  • All Implemented Interfaces:
    Stage

    public class ObsLocStage
    extends java.lang.Object
    implements Stage
    Validation stage for testing ObsLocTAP data model metadata and content. This implementation corresponds to PR-ObsLocTAP-20210609.
    Since:
    5 Feb 2021
    Author:
    Mark Taylor
    See Also:
    Observation Locator Table Access Protocol
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String[] ADQLGEO_FORMS
      Required ADQL Geometry functions (ObsLocTAP sec 3.3).
      static java.lang.String ADQLGEO_TYPE
      Feature type for ADQL Geometry functions from TAPRegExt.
      static java.lang.String OBSPLAN_TNAME
      Full required name of ObsPlan table.
      static java.lang.String OBSPLAN_UTYPE
      Required registration UType for ObsPlan table.
      static java.lang.String[] REGION_XTYPES
      Known DALI Xtypes indicating region data.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns a short one-line description of this stage.
      void run​(Reporter reporter, uk.ac.starlink.vo.TapService tapService)
      Performs the validation checks for this stage.
      static java.lang.String votype​(uk.ac.starlink.table.ValueInfo info)
      Returns the human-readable name of the data type of a column from a VOTable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • OBSPLAN_TNAME

        public static final java.lang.String OBSPLAN_TNAME
        Full required name of ObsPlan table.
        See Also:
        Constant Field Values
      • OBSPLAN_UTYPE

        public static final java.lang.String OBSPLAN_UTYPE
        Required registration UType for ObsPlan table.
        See Also:
        Constant Field Values
      • ADQLGEO_TYPE

        public static final java.lang.String ADQLGEO_TYPE
        Feature type for ADQL Geometry functions from TAPRegExt.
        See Also:
        Constant Field Values
      • ADQLGEO_FORMS

        public static final java.lang.String[] ADQLGEO_FORMS
        Required ADQL Geometry functions (ObsLocTAP sec 3.3).
      • REGION_XTYPES

        public static final java.lang.String[] REGION_XTYPES
        Known DALI Xtypes indicating region data.
    • Constructor Detail

      • ObsLocStage

        public ObsLocStage​(TapRunner tapRunner,
                           CapabilityHolder capHolder,
                           MetadataHolder metaHolder)
        Constructor.
        Parameters:
        tapRunner - runs TAP queries
        capHolder - provides capability metadata at runtime
        metaHolder - provides table metadata at runtime
    • Method Detail

      • getDescription

        public java.lang.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,
                        uk.ac.starlink.vo.TapService tapService)
        Description copied from interface: Stage
        Performs the validation checks for this stage.
        Specified by:
        run in interface Stage
        Parameters:
        reporter - destination for validation messages
        tapService - TAP service description
      • votype

        public static java.lang.String votype​(uk.ac.starlink.table.ValueInfo info)
        Returns the human-readable name of the data type of a column from a VOTable.
        Parameters:
        info - column info
        Returns:
        datatype name