Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7480 vikram.rag 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:57:00 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 AmperageUnitOfMeasure.
18
 * 
19
 * <p>The following schema fragment specifies the expected content contained within this class.
20
 * <p>
21
 * <pre>
22
 * &lt;simpleType name="AmperageUnitOfMeasure">
23
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
24
 *     &lt;enumeration value="amps"/>
25
 *     &lt;enumeration value="kiloamps"/>
26
 *     &lt;enumeration value="microamps"/>
27
 *     &lt;enumeration value="milliamps"/>
28
 *     &lt;enumeration value="nanoamps"/>
29
 *     &lt;enumeration value="picoamps"/>
30
 *   &lt;/restriction>
31
 * &lt;/simpleType>
32
 * </pre>
33
 * 
34
 */
35
@XmlType(name = "AmperageUnitOfMeasure")
36
@XmlEnum
37
public enum AmperageUnitOfMeasure {
38
 
39
    @XmlEnumValue("amps")
40
    AMPS("amps"),
41
    @XmlEnumValue("kiloamps")
42
    KILOAMPS("kiloamps"),
43
    @XmlEnumValue("microamps")
44
    MICROAMPS("microamps"),
45
    @XmlEnumValue("milliamps")
46
    MILLIAMPS("milliamps"),
47
    @XmlEnumValue("nanoamps")
48
    NANOAMPS("nanoamps"),
49
    @XmlEnumValue("picoamps")
50
    PICOAMPS("picoamps");
51
    private final String value;
52
 
53
    AmperageUnitOfMeasure(String v) {
54
        value = v;
55
    }
56
 
57
    public String value() {
58
        return value;
59
    }
60
 
61
    public static AmperageUnitOfMeasure fromValue(String v) {
62
        for (AmperageUnitOfMeasure c: AmperageUnitOfMeasure.values()) {
63
            if (c.value.equals(v)) {
64
                return c;
65
            }
66
        }
67
        throw new IllegalArgumentException(v);
68
    }
69
 
70
}