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-Method.
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-Method">
15
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
16
 *     &lt;enumeration value="REPLACE-VALUES"/>
17
 *     &lt;enumeration value="APPEND-VALUES"/>
18
 *     &lt;enumeration value="REMOVE-VALUES"/>
19
 *   &lt;/restriction>
20
 * &lt;/simpleType>
21
 * </pre>
22
 *
23
 */
24
@XmlType(name = "Set-Value-Method")
25
@XmlEnum
26
public enum SetValueMethod {
27
28
 
29
    REPLACE_VALUES("REPLACE-VALUES"),
30
    @XmlEnumValue("APPEND-VALUES")
31
    APPEND_VALUES("APPEND-VALUES"),
32
    @XmlEnumValue("REMOVE-VALUES")
33
    REMOVE_VALUES("REMOVE-VALUES");
34
    private final String value;
35
36
 
37
        value = v;
38
    }
39
40
 
41
        return value;
42
    }
43
44
 
45
        for (SetValueMethod c: SetValueMethod.values()) {
46
            if (c.value.equals(v)) {
47
                return c;
48
            }
49
        }
50
        throw new IllegalArgumentException(v);
51
    }
52
53
 
54