RegionCategory.java
/*
* Copyright 2010 James Pether Sörling
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* $Id$
* $HeadURL$
*/
// 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: 2019.02.24 at 11:26:40 PM CET
//
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;
/**
* The Enum RegionCategory.
*/
@XmlType(name = "RegionCategory")
@XmlEnum
public enum RegionCategory {
/** The east asia pacific all income levels. */
@XmlEnumValue("East Asia & Pacific (all income levels)")
EAST_ASIA_PACIFIC_ALL_INCOME_LEVELS("East Asia & Pacific (all income levels)"),
/** The europe central asia all income levels. */
@XmlEnumValue("Europe & Central Asia (all income levels)")
EUROPE_CENTRAL_ASIA_ALL_INCOME_LEVELS("Europe & Central Asia (all income levels)"),
/** The latin america caribbean all income levels. */
@XmlEnumValue("Latin America & Caribbean (all income levels)")
LATIN_AMERICA_CARIBBEAN_ALL_INCOME_LEVELS("Latin America & Caribbean (all income levels)"),
/** The middle east north africa all income levels. */
@XmlEnumValue("Middle East & North Africa (all income levels)")
MIDDLE_EAST_NORTH_AFRICA_ALL_INCOME_LEVELS("Middle East & North Africa (all income levels)"),
/** The aggregates. */
@XmlEnumValue("Aggregates")
AGGREGATES("Aggregates"),
/** The north america. */
@XmlEnumValue("North America")
NORTH_AMERICA("North America"),
/** The sub saharan africa all income levels. */
@XmlEnumValue("Sub-Saharan Africa (all income levels)")
SUB_SAHARAN_AFRICA_ALL_INCOME_LEVELS("Sub-Saharan Africa (all income levels)"),
/** The south asia. */
@XmlEnumValue("South Asia")
SOUTH_ASIA("South Asia");
/** The value. */
private final String value;
/**
* Instantiates a new region category.
*
* @param v the v
*/
RegionCategory(final String v) {
value = v;
}
/**
* Value.
*
* @return the string
*/
public String value() {
return value;
}
/**
* From value.
*
* @param v the v
* @return the region category
*/
public static RegionCategory fromValue(final String v) {
for (final RegionCategory c: RegionCategory.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}