io.hawt.dozer.schema.Relationship Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hawtio-dozer-schemagen Show documentation
Show all versions of hawtio-dozer-schemagen Show documentation
hawtio :: hawtio-dozer-schema
//
// 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: 2017.08.01 at 07:31:55 AM EDT
//
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);
}
}