public enum OsduWellLogVersion extends Enum<OsduWellLogVersion>
Enum Constant and Description |
---|
VERSION_1_0_0
Version 1.0.0
|
VERSION_1_1_0
Version 1.1.0
|
VERSION_1_2_0
Version 1.2.0
|
VERSION_1_3_0
Version 1.3.0
|
VERSION_1_4_0
Version 1.4.0
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalOrAfter(OsduWellLogVersion version)
Check if this version is the same or newer than the specified version.
|
boolean |
equalOrBefore(OsduWellLogVersion version)
Check if this version is the same or older than the specified version.
|
static OsduWellLogVersion |
get(String version)
Return OSDU Well Log version enumeration value for the specified string.
|
String |
getSchemaUrl()
Return URL of the JSON schema for this version.
|
String |
getVersion()
Return exact version of this instance as a string.
|
String |
toString() |
static OsduWellLogVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OsduWellLogVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OsduWellLogVersion VERSION_1_0_0
public static final OsduWellLogVersion VERSION_1_1_0
public static final OsduWellLogVersion VERSION_1_2_0
public static final OsduWellLogVersion VERSION_1_3_0
public static final OsduWellLogVersion VERSION_1_4_0
public static OsduWellLogVersion[] values()
for (OsduWellLogVersion c : OsduWellLogVersion.values()) System.out.println(c);
public static OsduWellLogVersion 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 getSchemaUrl()
public boolean equalOrAfter(OsduWellLogVersion version)
version
- Version to compare with, Non-null.IllegalArgumentException
- If version is null.public boolean equalOrBefore(OsduWellLogVersion version)
version
- Version to compare with, Non-null.IllegalArgumentException
- If version is null.public static OsduWellLogVersion get(String version)
version
- Version string, such as "1.2.0" etc. Non-null.IllegalArgumentException
- If version is null.public String toString()
toString
in class Enum<OsduWellLogVersion>
Copyright © 2024 Petroware AS - https://petroware.no