Class TapSchemaMetadataHolder
java.lang.Object
uk.ac.starlink.ttools.taplint.TapSchemaMetadataHolder
- All Implemented Interfaces:
MetadataHolder
MetadataHolder implementation which supplies metadata based on the
assumed (mandated) form of the TAP_SCHEMA tables which a TAP service
is required to supply.
- Since:
- 28 Jun 2011
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionuk.ac.starlink.vo.SchemaMeta[]Returns the table metadata which will be used to frame example ADQL queries.booleanIndicates whether the TableMeta objects in the metadata tree contained by this object are expected to contain column and foreign key metadata.voidsetReporter(Reporter reporter) Sets the reporter for this object.
-
Constructor Details
-
TapSchemaMetadataHolder
public TapSchemaMetadataHolder()Constructor.
-
-
Method Details
-
setReporter
Sets the reporter for this object.- Parameters:
reporter- destination for validation messages
-
getTableMetadata
public uk.ac.starlink.vo.SchemaMeta[] getTableMetadata()Description copied from interface:MetadataHolderReturns the table metadata which will be used to frame example ADQL queries. The returned objects should be fully populated (table and column lists in place, rather than needing further read operations).- Specified by:
getTableMetadatain interfaceMetadataHolder- Returns:
- tableset schema metadata array
-
hasDetail
public boolean hasDetail()Description copied from interface:MetadataHolderIndicates whether the TableMeta objects in the metadata tree contained by this object are expected to contain column and foreign key metadata.- Specified by:
hasDetailin interfaceMetadataHolder- Returns:
- true if TableMetas are populated with ColumnMeta and ForeignMeta arrays where appropriate; false if those have been omitted
-