public enum WitsmlVersion extends Enum<WitsmlVersion>
Enum Constant and Description |
---|
VERSION_1_2
Version 1.2.0.
|
VERSION_1_3
Version 1.3.1.1.
|
VERSION_1_4
Version 1.4.0.
|
VERSION_2_0
Version 2.0.
|
Modifier and Type | Method and Description |
---|---|
static WitsmlVersion |
get(String version)
Return WITSML version enumeration value for the specified string.
|
String |
getMainVersion()
Return the main version (such as "1.3" or "1.4") of this version as a string.
|
String |
getNamespace()
Return namespace for this specific WITSML version.
|
String |
getVersion()
Return exact version of this instance as a string.
|
boolean |
isEqualOrNewer(WitsmlVersion version)
Check if this version is the same or newer than the specified version.
|
String |
toString() |
static WitsmlVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WitsmlVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WitsmlVersion VERSION_1_2
public static final WitsmlVersion VERSION_1_3
public static final WitsmlVersion VERSION_1_4
public static final WitsmlVersion VERSION_2_0
public static WitsmlVersion[] values()
for (WitsmlVersion c : WitsmlVersion.values()) System.out.println(c);
public static WitsmlVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getVersion()
public String getMainVersion()
public String getNamespace()
public boolean isEqualOrNewer(WitsmlVersion version)
version
- Version to compare with, Non-null.IllegalArgumentException
- If version is null.public static WitsmlVersion get(String version)
version
- Version string, such as "1.3.1.1" etc. Non-null.public String toString()
toString
in class Enum<WitsmlVersion>
Copyright © 2023 Petroware AS - https://petroware.no