gov.nasa.arc.pds.xml.generated.UnitsOfTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pds4-jparser Show documentation
Show all versions of pds4-jparser Show documentation
This is the parser library for the PDS4 planetary data standard.
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.4
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.12.10 at 07:24:03 AM GMT
//
package gov.nasa.arc.pds.xml.generated;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for Units_of_Time.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="Units_of_Time">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="day"/>
* <enumeration value="hr"/>
* <enumeration value="julian day"/>
* <enumeration value="microseconds"/>
* <enumeration value="min"/>
* <enumeration value="ms"/>
* <enumeration value="ns"/>
* <enumeration value="s"/>
* <enumeration value="yr"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "Units_of_Time")
@XmlEnum
public enum UnitsOfTime {
@XmlEnumValue("day")
DAY("day"),
@XmlEnumValue("hr")
HR("hr"),
@XmlEnumValue("julian day")
JULIAN_DAY("julian day"),
@XmlEnumValue("microseconds")
MICROSECONDS("microseconds"),
@XmlEnumValue("min")
MIN("min"),
@XmlEnumValue("ms")
MS("ms"),
@XmlEnumValue("ns")
NS("ns"),
@XmlEnumValue("s")
S("s"),
@XmlEnumValue("yr")
YR("yr");
private final String value;
UnitsOfTime(String v) {
value = v;
}
public String value() {
return value;
}
public static UnitsOfTime fromValue(String v) {
for (UnitsOfTime c: UnitsOfTime.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}