com.hashmapinc.tempus.WitsmlObjects.v1311.ItemState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WitsmlObjects Show documentation
Show all versions of WitsmlObjects Show documentation
This library assists in serializing and deserializing WITSML 1.3.1.1 and 1.4.1.1 Objects
package com.hashmapinc.tempus.WitsmlObjects.v1311;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ItemState.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
{@code
*
*
*
*
*
*
*
*
* }
*
*/
@XmlType(name = "ItemState")
@XmlEnum
public enum ItemState {
/**
* Actual data measured or entered at the well site.
*
*/
@XmlEnumValue("actual")
ACTUAL("actual"),
/**
* Model data used for "what if" calculations.
*
*/
@XmlEnumValue("model")
MODEL("model"),
/**
* A planned object. That is, one which is expected to be executed in the future.
*
*/
@XmlEnumValue("plan")
PLAN("plan"),
/**
* The value is not known. This value should not be used
* in normal situations. All reasonable attempts should be made to determine
* the appropriate value. Use of this value may result in rejection in some situations.
*
*/
@XmlEnumValue("unknown")
UNKNOWN("unknown");
private final String value;
ItemState(String v) {
value = v;
}
public String value() {
return value;
}
public static ItemState fromValue(String v) {
for (ItemState c: ItemState.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}