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: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 PixelUnitOfMeasure.
18
 * 
19
 * <p>The following schema fragment specifies the expected content contained within this class.
20
 * <p>
21
 * <pre>
22
 * &lt;simpleType name="PixelUnitOfMeasure">
23
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
24
 *     &lt;enumeration value="pixels"/>
25
 *     &lt;enumeration value="MP"/>
26
 *   &lt;/restriction>
27
 * &lt;/simpleType>
28
 * </pre>
29
 * 
30
 */
31
@XmlType(name = "PixelUnitOfMeasure")
32
@XmlEnum
33
public enum PixelUnitOfMeasure {
34
 
35
    @XmlEnumValue("pixels")
36
    PIXELS("pixels"),
37
    MP("MP");
38
    private final String value;
39
 
40
    PixelUnitOfMeasure(String v) {
41
        value = v;
42
    }
43
 
44
    public String value() {
45
        return value;
46
    }
47
 
48
    public static PixelUnitOfMeasure fromValue(String v) {
49
        for (PixelUnitOfMeasure c: PixelUnitOfMeasure.values()) {
50
            if (c.value.equals(v)) {
51
                return c;
52
            }
53
        }
54
        throw new IllegalArgumentException(v);
55
    }
56
 
57
}