public abstract class DataModelAdqlExample extends Object implements AdqlExample
| Modifier | Constructor and Description |
|---|---|
protected |
DataModelAdqlExample(String name,
String description,
String infoUrl)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static DataModelAdqlExample[] |
createObsTapExamples()
Returns a list of examples applicable for the ObsCore data model.
|
static DataModelAdqlExample[] |
createRegTapExamples()
Returns a list of examples applicable for the RegTAP data model.
|
String |
getAdqlText(boolean lineBreaks,
VersionedLanguage lang,
TapCapability tcap,
TableMeta[] tables,
TableMeta table,
double[] skypos)
Produces ADQL text for a query of the type represented by this object,
for a given set of service details.
|
String |
getDescription()
Returns this example's description.
|
URL |
getInfoUrl()
Returns a documentation URL associated with this example if available.
|
String |
getName()
Returns this example's name.
|
protected abstract String[] |
getTextLines(double[] skypos)
Returns the lines of ADQL text for this example.
|
abstract boolean |
isDataModel(Ivoid dm)
Indicates whether a given data model string is the one to which
this example corresponds.
|
public abstract boolean isDataModel(Ivoid dm)
dataModel attribute, available from
TapCapability.getDataModels().dm - data model identifierprotected abstract String[] getTextLines(double[] skypos)
skypos - 2-element array giving preferred (RA,Dec) sky position
in degrees, or null if none preferredpublic String getName()
AdqlExamplegetName in interface AdqlExamplepublic String getDescription()
AdqlExamplegetDescription in interface AdqlExamplepublic URL getInfoUrl()
AdqlExamplegetInfoUrl in interface AdqlExamplepublic String getAdqlText(boolean lineBreaks, VersionedLanguage lang, TapCapability tcap, TableMeta[] tables, TableMeta table, double[] skypos)
AdqlExamplegetAdqlText in interface AdqlExamplelineBreaks - whether output ADQL should include multiline
formattinglang - ADQL language varianttcap - TAP capability objecttables - table metadata settable - currently selected tableskypos - 2-element array giving preferred (RA,Dec) sky position
in degrees, or null if none preferredpublic static DataModelAdqlExample[] createRegTapExamples()
public static DataModelAdqlExample[] createObsTapExamples()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.