enumerations.BookType Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.03.31 at 04:48:39 AM UTC
//
package enumerations;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for BookType.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="BookType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
* <enumeration value="kindle"/>
* <enumeration value="paperback"/>
* <enumeration value="hardcover"/>
* <enumeration value="audiobook"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "BookType")
@XmlEnum
public enum BookType {
@XmlEnumValue("kindle")
KINDLE("kindle"),
@XmlEnumValue("paperback")
PAPERBACK("paperback"),
@XmlEnumValue("hardcover")
HARDCOVER("hardcover"),
@XmlEnumValue("audiobook")
AUDIOBOOK("audiobook");
private final String value;
BookType(String v) {
value = v;
}
public String value() {
return value;
}
public static BookType fromValue(String v) {
for (BookType c: BookType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy