All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.nasa.arc.pds.xml.generated.UnitsOfPower Maven / Gradle / Ivy

There is a newer version: 2.8.4
Show newest version
//
// 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_Power

. * *

The following schema fragment specifies the expected content contained within this class.

*
 * <simpleType name="Units_of_Power">
 *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     <enumeration value="EW"/>
 *     <enumeration value="GW"/>
 *     <enumeration value="MW"/>
 *     <enumeration value="PW"/>
 *     <enumeration value="TW"/>
 *     <enumeration value="W"/>
 *     <enumeration value="YW"/>
 *     <enumeration value="ZW"/>
 *     <enumeration value="aW"/>
 *     <enumeration value="cW"/>
 *     <enumeration value="dBm"/>
 *     <enumeration value="dW"/>
 *     <enumeration value="daW"/>
 *     <enumeration value="fW"/>
 *     <enumeration value="hW"/>
 *     <enumeration value="kW"/>
 *     <enumeration value="mW"/>
 *     <enumeration value="microW"/>
 *     <enumeration value="nW"/>
 *     <enumeration value="pW"/>
 *     <enumeration value="yW"/>
 *     <enumeration value="zW"/>
 *   </restriction>
 * </simpleType>
 * 
* */ @XmlType(name = "Units_of_Power") @XmlEnum public enum UnitsOfPower { EW("EW"), GW("GW"), MW("MW"), PW("PW"), TW("TW"), W("W"), YW("YW"), ZW("ZW"), @XmlEnumValue("aW") A_W("aW"), @XmlEnumValue("cW") C_W("cW"), @XmlEnumValue("dBm") D_BM("dBm"), @XmlEnumValue("dW") D_W("dW"), @XmlEnumValue("daW") DA_W("daW"), @XmlEnumValue("fW") F_W("fW"), @XmlEnumValue("hW") H_W("hW"), @XmlEnumValue("kW") K_W("kW"), @XmlEnumValue("mW") M_W("mW"), @XmlEnumValue("microW") MICRO_W("microW"), @XmlEnumValue("nW") N_W("nW"), @XmlEnumValue("pW") P_W("pW"), @XmlEnumValue("yW") Y_W("yW"), @XmlEnumValue("zW") Z_W("zW"); private final String value; UnitsOfPower(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 UnitsOfPower fromValue(String v) { for (UnitsOfPower c: UnitsOfPower.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy