Package adql.parser
Enum Class ADQLParser.ADQLVersion
- All Implemented Interfaces:
Serializable
,Comparable<ADQLParser.ADQLVersion>
,Constable
- Enclosing class:
ADQLParser
Enumeration of all supported versions of the ADQL grammar.
- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionVersion REC-2.0 - http://www.ivoa.net/documents/cover/ADQL-20081030.html.Version PR-2.1 - http://www.ivoa.net/documents/ADQL/20180112/index.html. -
Method Summary
Modifier and TypeMethodDescriptionstatic ADQLParser.ADQLVersion
Parse the given string as an ADQL version number.toString()
static ADQLParser.ADQLVersion
Returns the enum constant of this class with the specified name.static ADQLParser.ADQLVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
V2_0
Version REC-2.0 - http://www.ivoa.net/documents/cover/ADQL-20081030.html. -
V2_1
Version PR-2.1 - http://www.ivoa.net/documents/ADQL/20180112/index.html.
-
-
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
-
toString
- Overrides:
toString
in classEnum<ADQLParser.ADQLVersion>
-
parse
Parse the given string as an ADQL version number.This function should work with the following syntaxes:
2.0
2_0
v2.0
orV2.0
v2_0
orV2_0
- Parameters:
str
- String to parse as an ADQL version specification.- Returns:
- The identified ADQL version.
-