urn.ebay.apis.eBLBaseComponents.UnitOfMeasure Maven / Gradle / Ivy
package urn.ebay.apis.eBLBaseComponents;
/**
* Based on NRF-ARTS Specification for Units of Measure
*
*/
public enum UnitOfMeasure {
EA("EA"),
HOURS("Hours"),
DAYS("Days"),
SECONDS("Seconds"),
CRATEOF("CrateOf12"),
PACK("6Pack"),
GLI("GLI"),
GLL("GLL"),
LTR("LTR"),
INH("INH"),
FOT("FOT"),
MMT("MMT"),
CMQ("CMQ"),
MTR("MTR"),
MTK("MTK"),
MTQ("MTQ"),
GRM("GRM"),
KGM("KGM"),
KG("KG"),
LBR("LBR"),
ANN("ANN"),
CEL("CEL"),
FAH("FAH"),
RESERVED("RESERVED");
private String value;
private UnitOfMeasure (String value) {
this.value = value;
}
public String getValue(){
return value;
}
public static UnitOfMeasure fromValue(String v) {
for (UnitOfMeasure c : values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy