Subversion Repositories XServices

Rev

Details | 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 Attachment-Access-Type.
10
 *
11
 * <p>The following schema fragment specifies the expected content contained within this class.
12
 * <p>
13
 * <pre>
14
 * &lt;simpleType name="Attachment-Access-Type">
15
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
16
 *     &lt;enumeration value="ATTACHACCESS-DEFAULT"/>
17
 *     &lt;enumeration value="ATTACHACCESS-RESTRICTED"/>
18
 *     &lt;enumeration value="ATTACHACCESS-UNRESTRICTED"/>
19
 *   &lt;/restriction>
20
 * &lt;/simpleType>
21
 * </pre>
22
 *
23
 */
24
@XmlType(name = "Attachment-Access-Type")
25
@XmlEnum
26
public enum AttachmentAccessType {
27
28
 
29
    ATTACHACCESS_DEFAULT("ATTACHACCESS-DEFAULT"),
30
    @XmlEnumValue("ATTACHACCESS-RESTRICTED")
31
    ATTACHACCESS_RESTRICTED("ATTACHACCESS-RESTRICTED"),
32
    @XmlEnumValue("ATTACHACCESS-UNRESTRICTED")
33
    ATTACHACCESS_UNRESTRICTED("ATTACHACCESS-UNRESTRICTED");
34
    private final String value;
35
36
 
37
        value = v;
38
    }
39
40
 
41
        return value;
42
    }
43
44
 
45
        for (AttachmentAccessType c: AttachmentAccessType.values()) {
46
            if (c.value.equals(v)) {
47
                return c;
48
            }
49
        }
50
        throw new IllegalArgumentException(v);
51
    }
52
53
 
54