com.sforce.soap.tooling.SharingModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sforce-tooling-api Show documentation
Show all versions of sforce-tooling-api Show documentation
Salesforce Tooling API client
The newest version!
package com.sforce.soap.tooling;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for SharingModel.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="SharingModel">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Private"/>
* <enumeration value="Read"/>
* <enumeration value="ReadSelect"/>
* <enumeration value="ReadWrite"/>
* <enumeration value="ReadWriteTransfer"/>
* <enumeration value="FullAccess"/>
* <enumeration value="ControlledByParent"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "SharingModel")
@XmlEnum
public enum SharingModel {
@XmlEnumValue("Private")
PRIVATE("Private"),
@XmlEnumValue("Read")
READ("Read"),
@XmlEnumValue("ReadSelect")
READ_SELECT("ReadSelect"),
@XmlEnumValue("ReadWrite")
READ_WRITE("ReadWrite"),
@XmlEnumValue("ReadWriteTransfer")
READ_WRITE_TRANSFER("ReadWriteTransfer"),
@XmlEnumValue("FullAccess")
FULL_ACCESS("FullAccess"),
@XmlEnumValue("ControlledByParent")
CONTROLLED_BY_PARENT("ControlledByParent");
private final String value;
SharingModel(String v) {
value = v;
}
public String value() {
return value;
}
public static SharingModel fromValue(String v) {
for (SharingModel c: SharingModel.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}