|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.taplint.CompareMetadataStage
public class CompareMetadataStage
Validation stage for checking that two sets of table metadata (presumably obtained via different routes) are equivalent to each other.
Constructor Summary | |
---|---|
CompareMetadataStage(String srcDesc1,
String srcDesc2,
MetadataHolder metaHolder1,
MetadataHolder metaHolder2)
Constructor. |
Method Summary | |
---|---|
static boolean |
compatibleDataTypes(String dt1,
String dt2)
Indicates whether two datatypes are compatible with each other. |
static CompareMetadataStage |
createStage(TableMetadataStage stage1,
TableMetadataStage stage2)
Utility method to construct a CompareMetadataStage instance given two TableMetadataStage objects. |
String |
getDescription()
Returns a short one-line description of this stage. |
void |
run(Reporter reporter,
URL serviceUrl)
Performs the validation checks for this stage. |
static String |
stripAdqlType(String dtype)
Takes a string which may be an ADQL type and strips off confusing parts including any "adql:" prefix and trailing parenthesis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompareMetadataStage(String srcDesc1, String srcDesc2, MetadataHolder metaHolder1, MetadataHolder metaHolder2)
srcDesc1
- short description of source of first metadata setsrcDesc2
- short description of source of second metadata setmetaHolder1
- supplies first metadata set at comparison timemetaHolder2
- supplies second metadata set at comparison timeMethod Detail |
---|
public String getDescription()
Stage
getDescription
in interface Stage
public void run(Reporter reporter, URL serviceUrl)
Stage
run
in interface Stage
reporter
- destination for validation messagesserviceUrl
- TAP service URLpublic static boolean compatibleDataTypes(String dt1, String dt2)
dt1
- first data typedt2
- second data type
public static String stripAdqlType(String dtype)
dtype
- string which may be an ADQL datatype
public static CompareMetadataStage createStage(TableMetadataStage stage1, TableMetadataStage stage2)
stage1
- first metadata producing stagestage2
- second metadata producing stage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |