public enum Permission extends Enum<Permission> implements Serializable
<xs:simpleType xmlns:ns="http://ns.dataone.org/service/types/v1" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Permission">
<xs:restriction base="xs:string">
<xs:enumeration value="read"/>
<xs:enumeration value="write"/>
<xs:enumeration value="changePermission"/>
</xs:restriction>
</xs:simpleType>
| Enum Constant and Description |
|---|
CHANGE_PERMISSION |
READ |
WRITE |
| Modifier and Type | Method and Description |
|---|---|
static Permission |
convert(String value) |
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
String |
xmlValue() |
public static final Permission READ
public static final Permission WRITE
public static final Permission CHANGE_PERMISSION
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String xmlValue()
public static Permission convert(String value)
Copyright © 2014. All Rights Reserved.