energyml.common2_1.PressureSquaredUom Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of energyml-prodml20 Show documentation
Show all versions of energyml-prodml20 Show documentation
API to interract with energyml (resqml, witml, prodml)
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2022.10.13 at 08:02:05 PM UTC
//
package energyml.common2_1;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* Java class for PressureSquaredUom.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="PressureSquaredUom">
* <restriction base="{http://www.energistics.org/energyml/data/commonv2}UomEnum">
* <enumeration value="bar2"/>
* <enumeration value="GPa2"/>
* <enumeration value="kPa2"/>
* <enumeration value="kpsi2"/>
* <enumeration value="Pa2"/>
* <enumeration value="psi2"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "PressureSquaredUom")
@XmlEnum
public enum PressureSquaredUom {
/**
* bar squared
*
*/
@XmlEnumValue("bar2")
BAR_2("bar2"),
/**
* gigapascal squared
*
*/
@XmlEnumValue("GPa2")
G_PA_2("GPa2"),
/**
* kilopascal squared
*
*/
@XmlEnumValue("kPa2")
K_PA_2("kPa2"),
/**
* (thousand psi) squared
*
*/
@XmlEnumValue("kpsi2")
KPSI_2("kpsi2"),
/**
* pascal squared
*
*/
@XmlEnumValue("Pa2")
PA_2("Pa2"),
/**
* psi squared
*
*/
@XmlEnumValue("psi2")
PSI_2("psi2");
private final String value;
PressureSquaredUom(String v) {
value = v;
}
public String value() {
return value;
}
public static PressureSquaredUom fromValue(String v) {
for (PressureSquaredUom c: PressureSquaredUom.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}