com.bytekast.netsuite.client.PermissionLevel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netsuite-suitetalk Show documentation
Show all versions of netsuite-suitetalk Show documentation
Client API for NetSuite Suitetalk Web Services
The newest version!
package com.bytekast.netsuite.client;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for PermissionLevel.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="PermissionLevel">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="_create"/>
* <enumeration value="_edit"/>
* <enumeration value="_full"/>
* <enumeration value="_none"/>
* <enumeration value="_view"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "PermissionLevel", namespace = "urn:types.common_2017_1.platform.webservices.netsuite.com")
@XmlEnum
public enum PermissionLevel {
@XmlEnumValue("_create")
CREATE("_create"),
@XmlEnumValue("_edit")
EDIT("_edit"),
@XmlEnumValue("_full")
FULL("_full"),
@XmlEnumValue("_none")
NONE("_none"),
@XmlEnumValue("_view")
VIEW("_view");
private final String value;
PermissionLevel(String v) {
value = v;
}
public String value() {
return value;
}
public static PermissionLevel fromValue(String v) {
for (PermissionLevel c: PermissionLevel.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}