/******************************************************************************* * Copyright (c) 2006-2010 eBay Inc. All Rights Reserved. * 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 *******************************************************************************/ package org.ebayopensource.turmeric.runtime.tests.service1.sample.errors; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for SeverityCodeType. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <simpleType name="SeverityCodeType"> * <restriction base="{http://www.w3.org/2001/XMLSchema}token"> * <enumeration value="Warning"/> * <enumeration value="Error"/> * <enumeration value="CustomCode"/> * </restriction> * </simpleType> * </pre> * */ @XmlType(name = "SeverityCodeType") @XmlEnum public enum SeverityCodeType { @XmlEnumValue("Warning") WARNING("Warning"), @XmlEnumValue("Error") ERROR("Error"), @XmlEnumValue("CustomCode") CUSTOM_CODE("CustomCode"); private final String value; SeverityCodeType(String v) { value = v; } public String value() { return value; } public static SeverityCodeType fromValue(String v) { for (SeverityCodeType c: SeverityCodeType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }