Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7487 kshitij.so 1
//
2
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
3
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4
// Any modifications to this file will be lost upon recompilation of the source schema. 
5
// Generated on: 2013.03.04 at 03:49:29 PM IST 
6
//
7
 
8
 
9
package in.shop2020.feeds.products;
10
 
11
import javax.xml.bind.annotation.XmlEnum;
12
import javax.xml.bind.annotation.XmlEnumValue;
13
import javax.xml.bind.annotation.XmlType;
14
 
15
 
16
/**
17
 * <p>Java class for SourceCountryCodeValues.
18
 * 
19
 * <p>The following schema fragment specifies the expected content contained within this class.
20
 * <p>
21
 * <pre>
22
 * &lt;simpleType name="SourceCountryCodeValues">
23
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
24
 *     &lt;enumeration value="JP"/>
25
 *     &lt;enumeration value="US"/>
26
 *     &lt;enumeration value="GB"/>
27
 *     &lt;enumeration value="DE"/>
28
 *     &lt;enumeration value="Unknown"/>
29
 *   &lt;/restriction>
30
 * &lt;/simpleType>
31
 * </pre>
32
 * 
33
 */
34
@XmlType(name = "SourceCountryCodeValues")
35
@XmlEnum
36
public enum SourceCountryCodeValues {
37
 
38
    JP("JP"),
39
    US("US"),
40
    GB("GB"),
41
    DE("DE"),
42
    @XmlEnumValue("Unknown")
43
    UNKNOWN("Unknown");
44
    private final String value;
45
 
46
    SourceCountryCodeValues(String v) {
47
        value = v;
48
    }
49
 
50
    public String value() {
51
        return value;
52
    }
53
 
54
    public static SourceCountryCodeValues fromValue(String v) {
55
        for (SourceCountryCodeValues c: SourceCountryCodeValues.values()) {
56
            if (c.value.equals(v)) {
57
                return c;
58
            }
59
        }
60
        throw new IllegalArgumentException(v);
61
    }
62
 
63
}