io.hawt.dozer.schema.Relationship Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.11.23 at 03:51:31 AM EST
//
package io.hawt.dozer.schema;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for relationship.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="relationship">
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="cumulative"/>
* <enumeration value="non-cumulative"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "relationship")
@XmlEnum
public enum Relationship {
@XmlEnumValue("cumulative")
CUMULATIVE("cumulative"),
@XmlEnumValue("non-cumulative")
NON_CUMULATIVE("non-cumulative");
private final String value;
Relationship(String v) {
value = v;
}
public String value() {
return value;
}
public static Relationship fromValue(String v) {
for (Relationship c: Relationship.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}