Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7481 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 ForceUnitOfMeasure.
18
 * 
19
 * <p>The following schema fragment specifies the expected content contained within this class.
20
 * <p>
21
 * <pre>
22
 * &lt;simpleType name="ForceUnitOfMeasure">
23
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
24
 *     &lt;enumeration value="newtons"/>
25
 *     &lt;enumeration value="Newton"/>
26
 *     &lt;enumeration value="pounds"/>
27
 *     &lt;enumeration value="kilograms"/>
28
 *     &lt;enumeration value="PSI"/>
29
 *   &lt;/restriction>
30
 * &lt;/simpleType>
31
 * </pre>
32
 * 
33
 */
34
@XmlType(name = "ForceUnitOfMeasure")
35
@XmlEnum
36
public enum ForceUnitOfMeasure {
37
 
38
    @XmlEnumValue("newtons")
39
    NEWTONS("newtons"),
40
    @XmlEnumValue("Newton")
41
    NEWTON("Newton"),
42
    @XmlEnumValue("pounds")
43
    POUNDS("pounds"),
44
    @XmlEnumValue("kilograms")
45
    KILOGRAMS("kilograms"),
46
    PSI("PSI");
47
    private final String value;
48
 
49
    ForceUnitOfMeasure(String v) {
50
        value = v;
51
    }
52
 
53
    public String value() {
54
        return value;
55
    }
56
 
57
    public static ForceUnitOfMeasure fromValue(String v) {
58
        for (ForceUnitOfMeasure c: ForceUnitOfMeasure.values()) {
59
            if (c.value.equals(v)) {
60
                return c;
61
            }
62
        }
63
        throw new IllegalArgumentException(v);
64
    }
65
 
66
}