IncomeLevelCategory.java
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.10.06 at 11:54:38 AM CEST
//
package com.hack23.cia.model.external.worldbank.countries.impl;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for IncomeLevelCategory.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="IncomeLevelCategory">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Low income"/>
* <enumeration value="Lower middle income"/>
* <enumeration value="Aggregates"/>
* <enumeration value="High income: nonOECD"/>
* <enumeration value="NA"/>
* <enumeration value="High income: OECD"/>
* <enumeration value="Upper middle income"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "IncomeLevelCategory")
@XmlEnum
public enum IncomeLevelCategory {
@XmlEnumValue("Low income")
LOW_INCOME("Low income"),
@XmlEnumValue("Lower middle income")
LOWER_MIDDLE_INCOME("Lower middle income"),
@XmlEnumValue("Aggregates")
AGGREGATES("Aggregates"),
@XmlEnumValue("High income: nonOECD")
HIGH_INCOME_NON_OECD("High income: nonOECD"),
NA("NA"),
@XmlEnumValue("High income: OECD")
HIGH_INCOME_OECD("High income: OECD"),
@XmlEnumValue("Upper middle income")
UPPER_MIDDLE_INCOME("Upper middle income");
private final String value;
IncomeLevelCategory(String v) {
value = v;
}
public String value() {
return value;
}
public static IncomeLevelCategory fromValue(String v) {
for (IncomeLevelCategory c: IncomeLevelCategory.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}