Package mil.nga.geopackage.extension
Enum CrsWktExtensionVersion
- java.lang.Object
-
- java.lang.Enum<CrsWktExtensionVersion>
-
- mil.nga.geopackage.extension.CrsWktExtensionVersion
-
- All Implemented Interfaces:
Serializable
,Comparable<CrsWktExtensionVersion>
public enum CrsWktExtensionVersion extends Enum<CrsWktExtensionVersion>
OGC Well known text representation of Coordinate Reference Systems extension version enumeration- Since:
- 6.6.0
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static CrsWktExtensionVersion
FIRST
First versionstatic CrsWktExtensionVersion
LATEST
Latest supported version
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CrsWktExtensionVersion>
atMinimum()
Versions at and above this versionString
getSuffix()
Get the extension name suffixString
getVersion()
Get the versionboolean
isMinimum(CrsWktExtensionVersion version)
Is the version at or above the minimum versionstatic CrsWktExtensionVersion
valueOf(String name)
Returns the enum constant of this type with the specified name.static CrsWktExtensionVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V_1
public static final CrsWktExtensionVersion V_1
1.0
-
V_1_1
public static final CrsWktExtensionVersion V_1_1
1.1
-
-
Field Detail
-
FIRST
public static final CrsWktExtensionVersion FIRST
First version
-
LATEST
public static final CrsWktExtensionVersion LATEST
Latest supported version
-
-
Method Detail
-
values
public static CrsWktExtensionVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CrsWktExtensionVersion c : CrsWktExtensionVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CrsWktExtensionVersion valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getVersion
public String getVersion()
Get the version- Returns:
- version
-
getSuffix
public String getSuffix()
Get the extension name suffix- Returns:
- extension name suffix
-
isMinimum
public boolean isMinimum(CrsWktExtensionVersion version)
Is the version at or above the minimum version- Parameters:
version
- extension version- Returns:
- true if at or above the minimum version
-
atMinimum
public List<CrsWktExtensionVersion> atMinimum()
Versions at and above this version- Returns:
- versions at minimum
-
-