Package uk.ac.starlink.ttools.taplint
Class ObsTapStage
java.lang.Object
uk.ac.starlink.ttools.taplint.ObsTapStage
- All Implemented Interfaces:
Stage
Validation stage for testing ObsCore data model metadata and content.
- Since:
- 24 Nov 2011
- Author:
- Mark Taylor
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionObsTapStage
(TapRunner tapRunner, CapabilityHolder capHolder, MetadataHolder metaHolder) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns a short one-line description of this stage.static String
Normalises a column name to produce a value suitable for use as a Map key.void
Performs the validation checks for this stage.toMap
(uk.ac.starlink.vo.ColumnMeta[] cols) Converts an array of ColumnMeta objects into a name->value map.
-
Constructor Details
-
ObsTapStage
Constructor.- Parameters:
tapRunner
- runs TAP queriescapHolder
- provides capability metadata at runtimemetaHolder
- provides table metadata at runtime
-
-
Method Details
-
getDescription
Description copied from interface:Stage
Returns a short one-line description of this stage.- Specified by:
getDescription
in interfaceStage
- Returns:
- description in imperative mood
-
run
Description copied from interface:Stage
Performs the validation checks for this stage. -
toMap
Converts an array of ColumnMeta objects into a name->value map. ThenameKey(java.lang.String)
method is used to normalise the column name.- Parameters:
cols
- column metadata list- Returns:
- map of normalised column name to column metadata object
-
nameKey
Normalises a column name to produce a value suitable for use as a Map key.- Parameters:
name
- column name- Returns:
- map-friendly value identifying
name
-