Subversion Repositories XServices

Rev

Rev 30 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
30 brianR 1
 
2
3
 
4
import javax.xml.bind.annotation.XmlEnumValue;
5
import javax.xml.bind.annotation.XmlType;
6
7
 
8
 
9
 * <p>Java class for Set-Value-By.
10
 *
11
 * <p>The following schema fragment specifies the expected content contained within this class.
12
 * <p>
13
 * <pre>
14
 * &lt;simpleType name="Set-Value-By">
15
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
16
 *     &lt;enumeration value="PRECEDENCE-VALUE"/>
17
 *     &lt;enumeration value="UUID-VALUE"/>
18
 *     &lt;enumeration value="INTERNAL-VALUE"/>
19
 *     &lt;enumeration value="DISPLAY-VALUE"/>
20
 *   &lt;/restriction>
21
 * &lt;/simpleType>
22
 * </pre>
23
 *
24
 */
25
@XmlType(name = "Set-Value-By")
26
@XmlEnum
27
public enum SetValueBy {
28
29
 
30
    PRECEDENCE_VALUE("PRECEDENCE-VALUE"),
31
    @XmlEnumValue("UUID-VALUE")
32
    UUID_VALUE("UUID-VALUE"),
33
    @XmlEnumValue("INTERNAL-VALUE")
34
    INTERNAL_VALUE("INTERNAL-VALUE"),
35
    @XmlEnumValue("DISPLAY-VALUE")
36
    DISPLAY_VALUE("DISPLAY-VALUE");
37
    private final String value;
38
39
 
40
        value = v;
41
    }
42
43
 
44
        return value;
45
    }
46
47
 
48
        for (SetValueBy c: SetValueBy.values()) {
49
            if (c.value.equals(v)) {
50
                return c;
51
            }
52
        }
53
        throw new IllegalArgumentException(v);
54
    }
55
56
 
57