gov.nasa.arc.pds.xml.generated.UnitsOfArea 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.9
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.09.27 at 05:20:24 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_Area
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="Units_of_Area">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="m**2"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "Units_of_Area")
@XmlEnum
public enum UnitsOfArea {
@XmlEnumValue("m**2")
M_2("m**2");
private final String value;
UnitsOfArea(String v) {
value = v;
}
/**
* Gets the value associated to the enum constant.
*
* @return
* The value linked to the enum.
*/
public String value() {
return value;
}
/**
* Gets the enum associated to the value passed as parameter.
*
* @param v
* The value to get the enum from.
* @return
* The enum which corresponds to the value, if it exists.
* @throws IllegalArgumentException
* If no value matches in the enum declaration.
*/
public static UnitsOfArea fromValue(String v) {
for (UnitsOfArea c: UnitsOfArea.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}