Package uk.ac.starlink.vo
Enum Class AdqlVersion
- All Implemented Interfaces:
Serializable
,Comparable<AdqlVersion>
,Constable
Version of the ADQL language.
- Since:
- 18 Sep 2019
- Author:
- Mark Taylor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AdqlVersion
Returns the AdqlVersion instance corresponding to an IVOID.static AdqlVersion
Returns the AdqlVersion instance corresponding to a version number.String[]
Returns an array of all the language feature URIs defined by this version.getIvoid()
Returns the version identifier string.getName()
Returns the informal name of this version.Returns the version number as a string.toString()
static AdqlVersion
Returns the enum constant of this class with the specified name.static AdqlVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
V20
ADQL version 2.0. -
V21
ADQL version 2.1. This corresponds to PR-ADQL-2.1-20180112, except that the feature "ivo://ivoa.net/std/TAPRegExt#features-adql-geo
" defined there is not included; I believe that's a typo for "ivo://ivoa.net/std/TAPRegExt#features-adqlgeo
" that applies to ADQL 2.0.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
Returns the informal name of this version.- Returns:
- version name, suitable for presentation to user
-
getNumber
Returns the version number as a string.- Returns:
- X.Y format version number
-
getIvoid
Returns the version identifier string.- Returns:
- URI, currently of the form ivo://ivoa.net/std/ADQL#vX.Y
-
getFeatureUris
Returns an array of all the language feature URIs defined by this version. These currently all have the form "ivo://ivoa.net/std/TAPRegExt#features-*
". These are defined in the TAPRegExt and ADQL standards.- Returns:
- language feature URIs
-
toString
- Overrides:
toString
in classEnum<AdqlVersion>
-
byNumber
Returns the AdqlVersion instance corresponding to a version number.- Parameters:
number
- version number of the form X.Y- Returns:
- corresponding version instance, or null
-
byIvoid
Returns the AdqlVersion instance corresponding to an IVOID.- Parameters:
ivoid
- URI, currently of the form ivo://ivoa.net/std/ADQL#vX.Y
-