|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.taplint.TableMetadataStage
public abstract class TableMetadataStage
Validation stage for checking the content of parsed Table metadata. Concrete subclasses must provide a method to acquire the metadata as an array of TableMeta objects.
Constructor Summary | |
---|---|
TableMetadataStage(String srcDescription,
String[] knownColFlags,
boolean reportOtherFlags)
Constructor. |
Method Summary | |
---|---|
String |
getDescription()
Returns a short one-line description of this stage. |
String |
getSourceDescription()
Returns a short text description of table metadata source. |
SchemaMeta[] |
getTableMetadata()
Returns the table metadata obtained by the last run of this stage. |
protected abstract SchemaMeta[] |
readTableMetadata(Reporter reporter,
URL serviceUrl)
Returns an array providing table metadata to check. |
void |
run(Reporter reporter,
URL serviceUrl)
Performs the validation checks for this stage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableMetadataStage(String srcDescription, String[] knownColFlags, boolean reportOtherFlags)
srcDescription
- short text description of table metadata sourceknownColFlags
- standard column flag values to report counts forreportOtherFlags
- whether to report counts for non-standard
column flag valuesMethod Detail |
---|
public String getDescription()
Stage
getDescription
in interface Stage
public String getSourceDescription()
public SchemaMeta[] getTableMetadata()
getTableMetadata
in interface MetadataHolder
protected abstract SchemaMeta[] readTableMetadata(Reporter reporter, URL serviceUrl)
reporter
- destination for validation messagesserviceUrl
- TAP service URL
public void run(Reporter reporter, URL serviceUrl)
Stage
run
in interface Stage
reporter
- destination for validation messagesserviceUrl
- TAP service URL
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |