com.sforce.soap.metadata.EscalationAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of force-metadata-api Show documentation
Show all versions of force-metadata-api Show documentation
Force.com Web Service Connector
package com.sforce.soap.metadata;
/**
* This is a generated class for the SObject Enterprise API.
* Do not edit this file, as your changes will be lost.
*/
public class EscalationAction implements com.sforce.ws.bind.XMLizable {
/**
* Constructor
*/
public EscalationAction() {}
/* Cache the typeInfo instead of declaring static fields throughout*/
private transient java.util.Map typeInfoCache = new java.util.HashMap();
private com.sforce.ws.bind.TypeInfo _lookupTypeInfo(String fieldName, String namespace, String name, String typeNS, String type, int minOcc, int maxOcc, boolean elementForm) {
com.sforce.ws.bind.TypeInfo typeInfo = typeInfoCache.get(fieldName);
if (typeInfo == null) {
typeInfo = new com.sforce.ws.bind.TypeInfo(namespace, name, typeNS, type, minOcc, maxOcc, elementForm);
typeInfoCache.put(fieldName, typeInfo);
}
return typeInfo;
}
/**
* element : assignedTo of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean assignedTo__is_set = false;
private java.lang.String assignedTo;
public java.lang.String getAssignedTo() {
return assignedTo;
}
public void setAssignedTo(java.lang.String assignedTo) {
this.assignedTo = assignedTo;
assignedTo__is_set = true;
}
protected void setAssignedTo(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.isElement(__in, _lookupTypeInfo("assignedTo", "http://soap.sforce.com/2006/04/metadata","assignedTo","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setAssignedTo(__typeMapper.readString(__in, _lookupTypeInfo("assignedTo", "http://soap.sforce.com/2006/04/metadata","assignedTo","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldAssignedTo(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("assignedTo", "http://soap.sforce.com/2006/04/metadata","assignedTo","http://www.w3.org/2001/XMLSchema","string",0,1,true), assignedTo, assignedTo__is_set);
}
/**
* element : assignedToTemplate of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean assignedToTemplate__is_set = false;
private java.lang.String assignedToTemplate;
public java.lang.String getAssignedToTemplate() {
return assignedToTemplate;
}
public void setAssignedToTemplate(java.lang.String assignedToTemplate) {
this.assignedToTemplate = assignedToTemplate;
assignedToTemplate__is_set = true;
}
protected void setAssignedToTemplate(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.isElement(__in, _lookupTypeInfo("assignedToTemplate", "http://soap.sforce.com/2006/04/metadata","assignedToTemplate","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setAssignedToTemplate(__typeMapper.readString(__in, _lookupTypeInfo("assignedToTemplate", "http://soap.sforce.com/2006/04/metadata","assignedToTemplate","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldAssignedToTemplate(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("assignedToTemplate", "http://soap.sforce.com/2006/04/metadata","assignedToTemplate","http://www.w3.org/2001/XMLSchema","string",0,1,true), assignedToTemplate, assignedToTemplate__is_set);
}
/**
* element : assignedToType of type {http://soap.sforce.com/2006/04/metadata}AssignToLookupValueType
* java type: com.sforce.soap.metadata.AssignToLookupValueType
*/
private boolean assignedToType__is_set = false;
private com.sforce.soap.metadata.AssignToLookupValueType assignedToType;
public com.sforce.soap.metadata.AssignToLookupValueType getAssignedToType() {
return assignedToType;
}
public void setAssignedToType(com.sforce.soap.metadata.AssignToLookupValueType assignedToType) {
this.assignedToType = assignedToType;
assignedToType__is_set = true;
}
protected void setAssignedToType(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.isElement(__in, _lookupTypeInfo("assignedToType", "http://soap.sforce.com/2006/04/metadata","assignedToType","http://soap.sforce.com/2006/04/metadata","AssignToLookupValueType",0,1,true))) {
setAssignedToType((com.sforce.soap.metadata.AssignToLookupValueType)__typeMapper.readObject(__in, _lookupTypeInfo("assignedToType", "http://soap.sforce.com/2006/04/metadata","assignedToType","http://soap.sforce.com/2006/04/metadata","AssignToLookupValueType",0,1,true), com.sforce.soap.metadata.AssignToLookupValueType.class));
}
}
private void writeFieldAssignedToType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("assignedToType", "http://soap.sforce.com/2006/04/metadata","assignedToType","http://soap.sforce.com/2006/04/metadata","AssignToLookupValueType",0,1,true), assignedToType, assignedToType__is_set);
}
/**
* element : minutesToEscalation of type {http://www.w3.org/2001/XMLSchema}int
* java type: int
*/
private boolean minutesToEscalation__is_set = false;
private int minutesToEscalation;
public int getMinutesToEscalation() {
return minutesToEscalation;
}
public void setMinutesToEscalation(int minutesToEscalation) {
this.minutesToEscalation = minutesToEscalation;
minutesToEscalation__is_set = true;
}
protected void setMinutesToEscalation(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.isElement(__in, _lookupTypeInfo("minutesToEscalation", "http://soap.sforce.com/2006/04/metadata","minutesToEscalation","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
setMinutesToEscalation((int)__typeMapper.readInt(__in, _lookupTypeInfo("minutesToEscalation", "http://soap.sforce.com/2006/04/metadata","minutesToEscalation","http://www.w3.org/2001/XMLSchema","int",0,1,true), int.class));
}
}
private void writeFieldMinutesToEscalation(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("minutesToEscalation", "http://soap.sforce.com/2006/04/metadata","minutesToEscalation","http://www.w3.org/2001/XMLSchema","int",0,1,true), minutesToEscalation, minutesToEscalation__is_set);
}
/**
* element : notifyCaseOwner of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean notifyCaseOwner__is_set = false;
private boolean notifyCaseOwner;
public boolean getNotifyCaseOwner() {
return notifyCaseOwner;
}
public boolean isNotifyCaseOwner() {
return notifyCaseOwner;
}
public void setNotifyCaseOwner(boolean notifyCaseOwner) {
this.notifyCaseOwner = notifyCaseOwner;
notifyCaseOwner__is_set = true;
}
protected void setNotifyCaseOwner(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.isElement(__in, _lookupTypeInfo("notifyCaseOwner", "http://soap.sforce.com/2006/04/metadata","notifyCaseOwner","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setNotifyCaseOwner(__typeMapper.readBoolean(__in, _lookupTypeInfo("notifyCaseOwner", "http://soap.sforce.com/2006/04/metadata","notifyCaseOwner","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
}
}
private void writeFieldNotifyCaseOwner(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("notifyCaseOwner", "http://soap.sforce.com/2006/04/metadata","notifyCaseOwner","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), notifyCaseOwner, notifyCaseOwner__is_set);
}
/**
* element : notifyEmail of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String[]
*/
private boolean notifyEmail__is_set = false;
private java.lang.String[] notifyEmail = new java.lang.String[0];
public java.lang.String[] getNotifyEmail() {
return notifyEmail;
}
public void setNotifyEmail(java.lang.String[] notifyEmail) {
this.notifyEmail = notifyEmail;
notifyEmail__is_set = true;
}
protected void setNotifyEmail(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.isElement(__in, _lookupTypeInfo("notifyEmail", "http://soap.sforce.com/2006/04/metadata","notifyEmail","http://www.w3.org/2001/XMLSchema","string",0,-1,true))) {
setNotifyEmail((java.lang.String[])__typeMapper.readObject(__in, _lookupTypeInfo("notifyEmail", "http://soap.sforce.com/2006/04/metadata","notifyEmail","http://www.w3.org/2001/XMLSchema","string",0,-1,true), java.lang.String[].class));
}
}
private void writeFieldNotifyEmail(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("notifyEmail", "http://soap.sforce.com/2006/04/metadata","notifyEmail","http://www.w3.org/2001/XMLSchema","string",0,-1,true), notifyEmail, notifyEmail__is_set);
}
/**
* element : notifyTo of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean notifyTo__is_set = false;
private java.lang.String notifyTo;
public java.lang.String getNotifyTo() {
return notifyTo;
}
public void setNotifyTo(java.lang.String notifyTo) {
this.notifyTo = notifyTo;
notifyTo__is_set = true;
}
protected void setNotifyTo(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.isElement(__in, _lookupTypeInfo("notifyTo", "http://soap.sforce.com/2006/04/metadata","notifyTo","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setNotifyTo(__typeMapper.readString(__in, _lookupTypeInfo("notifyTo", "http://soap.sforce.com/2006/04/metadata","notifyTo","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldNotifyTo(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("notifyTo", "http://soap.sforce.com/2006/04/metadata","notifyTo","http://www.w3.org/2001/XMLSchema","string",0,1,true), notifyTo, notifyTo__is_set);
}
/**
* element : notifyToTemplate of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean notifyToTemplate__is_set = false;
private java.lang.String notifyToTemplate;
public java.lang.String getNotifyToTemplate() {
return notifyToTemplate;
}
public void setNotifyToTemplate(java.lang.String notifyToTemplate) {
this.notifyToTemplate = notifyToTemplate;
notifyToTemplate__is_set = true;
}
protected void setNotifyToTemplate(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.isElement(__in, _lookupTypeInfo("notifyToTemplate", "http://soap.sforce.com/2006/04/metadata","notifyToTemplate","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setNotifyToTemplate(__typeMapper.readString(__in, _lookupTypeInfo("notifyToTemplate", "http://soap.sforce.com/2006/04/metadata","notifyToTemplate","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldNotifyToTemplate(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("notifyToTemplate", "http://soap.sforce.com/2006/04/metadata","notifyToTemplate","http://www.w3.org/2001/XMLSchema","string",0,1,true), notifyToTemplate, notifyToTemplate__is_set);
}
/**
*/
@Override
public void write(javax.xml.namespace.QName __element,
com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
throws java.io.IOException {
__out.writeStartTag(__element.getNamespaceURI(), __element.getLocalPart());
writeFields(__out, __typeMapper);
__out.writeEndTag(__element.getNamespaceURI(), __element.getLocalPart());
}
protected void writeFields(com.sforce.ws.parser.XmlOutputStream __out,
com.sforce.ws.bind.TypeMapper __typeMapper)
throws java.io.IOException {
writeFields1(__out, __typeMapper);
}
@Override
public void load(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__typeMapper.consumeStartTag(__in);
loadFields(__in, __typeMapper);
__typeMapper.consumeEndTag(__in);
}
protected void loadFields(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
loadFields1(__in, __typeMapper);
}
@Override
public String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("[EscalationAction ");
toString1(sb);
sb.append("]\n");
return sb.toString();
}
private void toStringHelper(StringBuilder sb, String name, Object value) {
sb.append(' ').append(name).append("='").append(com.sforce.ws.util.Verbose.toString(value)).append("'\n");
}
private void writeFields1(com.sforce.ws.parser.XmlOutputStream __out,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
writeFieldAssignedTo(__out, __typeMapper);
writeFieldAssignedToTemplate(__out, __typeMapper);
writeFieldAssignedToType(__out, __typeMapper);
writeFieldMinutesToEscalation(__out, __typeMapper);
writeFieldNotifyCaseOwner(__out, __typeMapper);
writeFieldNotifyEmail(__out, __typeMapper);
writeFieldNotifyTo(__out, __typeMapper);
writeFieldNotifyToTemplate(__out, __typeMapper);
}
private void loadFields1(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
setAssignedTo(__in, __typeMapper);
setAssignedToTemplate(__in, __typeMapper);
setAssignedToType(__in, __typeMapper);
setMinutesToEscalation(__in, __typeMapper);
setNotifyCaseOwner(__in, __typeMapper);
setNotifyEmail(__in, __typeMapper);
setNotifyTo(__in, __typeMapper);
setNotifyToTemplate(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "assignedTo", assignedTo);
toStringHelper(sb, "assignedToTemplate", assignedToTemplate);
toStringHelper(sb, "assignedToType", assignedToType);
toStringHelper(sb, "minutesToEscalation", minutesToEscalation);
toStringHelper(sb, "notifyCaseOwner", notifyCaseOwner);
toStringHelper(sb, "notifyEmail", notifyEmail);
toStringHelper(sb, "notifyTo", notifyTo);
toStringHelper(sb, "notifyToTemplate", notifyToTemplate);
}
}