com.sforce.soap.partner.SingleEmailMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of force-partner-api Show documentation
Show all versions of force-partner-api Show documentation
Force.com Web Service Connector
The newest version!
package com.sforce.soap.partner;
/**
* This is a generated class for the SObject Enterprise API.
* Do not edit this file, as your changes will be lost.
*/
public class SingleEmailMessage extends com.sforce.soap.partner.Email implements ISingleEmailMessage{
/**
* Constructor
*/
public SingleEmailMessage() {}
/* 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 : bccAddresses of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String[]
*/
private boolean bccAddresses__is_set = false;
private java.lang.String[] bccAddresses = new java.lang.String[0];
@Override
public java.lang.String[] getBccAddresses() {
return bccAddresses;
}
@Override
public void setBccAddresses(java.lang.String[] bccAddresses) {
this.bccAddresses = castArray(java.lang.String.class, bccAddresses);
bccAddresses__is_set = true;
}
protected void setBccAddresses(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("bccAddresses", "urn:partner.soap.sforce.com","bccAddresses","http://www.w3.org/2001/XMLSchema","string",0,25,true))) {
setBccAddresses((java.lang.String[])__typeMapper.readObject(__in, _lookupTypeInfo("bccAddresses", "urn:partner.soap.sforce.com","bccAddresses","http://www.w3.org/2001/XMLSchema","string",0,25,true), java.lang.String[].class));
}
}
private void writeFieldBccAddresses(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("bccAddresses", "urn:partner.soap.sforce.com","bccAddresses","http://www.w3.org/2001/XMLSchema","string",0,25,true), bccAddresses, bccAddresses__is_set);
}
/**
* element : ccAddresses of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String[]
*/
private boolean ccAddresses__is_set = false;
private java.lang.String[] ccAddresses = new java.lang.String[0];
@Override
public java.lang.String[] getCcAddresses() {
return ccAddresses;
}
@Override
public void setCcAddresses(java.lang.String[] ccAddresses) {
this.ccAddresses = castArray(java.lang.String.class, ccAddresses);
ccAddresses__is_set = true;
}
protected void setCcAddresses(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("ccAddresses", "urn:partner.soap.sforce.com","ccAddresses","http://www.w3.org/2001/XMLSchema","string",0,25,true))) {
setCcAddresses((java.lang.String[])__typeMapper.readObject(__in, _lookupTypeInfo("ccAddresses", "urn:partner.soap.sforce.com","ccAddresses","http://www.w3.org/2001/XMLSchema","string",0,25,true), java.lang.String[].class));
}
}
private void writeFieldCcAddresses(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("ccAddresses", "urn:partner.soap.sforce.com","ccAddresses","http://www.w3.org/2001/XMLSchema","string",0,25,true), ccAddresses, ccAddresses__is_set);
}
/**
* element : charset of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean charset__is_set = false;
private java.lang.String charset;
@Override
public java.lang.String getCharset() {
return charset;
}
@Override
public void setCharset(java.lang.String charset) {
this.charset = charset;
charset__is_set = true;
}
protected void setCharset(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, _lookupTypeInfo("charset", "urn:partner.soap.sforce.com","charset","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setCharset(__typeMapper.readString(__in, _lookupTypeInfo("charset", "urn:partner.soap.sforce.com","charset","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldCharset(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("charset", "urn:partner.soap.sforce.com","charset","http://www.w3.org/2001/XMLSchema","string",1,1,true), charset, charset__is_set);
}
/**
* element : documentAttachments of type {urn:partner.soap.sforce.com}ID
* java type: java.lang.String[]
*/
private boolean documentAttachments__is_set = false;
private java.lang.String[] documentAttachments = new java.lang.String[0];
@Override
public java.lang.String[] getDocumentAttachments() {
return documentAttachments;
}
@Override
public void setDocumentAttachments(java.lang.String[] documentAttachments) {
this.documentAttachments = castArray(java.lang.String.class, documentAttachments);
documentAttachments__is_set = true;
}
protected void setDocumentAttachments(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("documentAttachments", "urn:partner.soap.sforce.com","documentAttachments","urn:partner.soap.sforce.com","ID",0,-1,true))) {
setDocumentAttachments((java.lang.String[])__typeMapper.readObject(__in, _lookupTypeInfo("documentAttachments", "urn:partner.soap.sforce.com","documentAttachments","urn:partner.soap.sforce.com","ID",0,-1,true), java.lang.String[].class));
}
}
private void writeFieldDocumentAttachments(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("documentAttachments", "urn:partner.soap.sforce.com","documentAttachments","urn:partner.soap.sforce.com","ID",0,-1,true), documentAttachments, documentAttachments__is_set);
}
/**
* element : entityAttachments of type {urn:partner.soap.sforce.com}ID
* java type: java.lang.String[]
*/
private boolean entityAttachments__is_set = false;
private java.lang.String[] entityAttachments = new java.lang.String[0];
@Override
public java.lang.String[] getEntityAttachments() {
return entityAttachments;
}
@Override
public void setEntityAttachments(java.lang.String[] entityAttachments) {
this.entityAttachments = castArray(java.lang.String.class, entityAttachments);
entityAttachments__is_set = true;
}
protected void setEntityAttachments(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("entityAttachments", "urn:partner.soap.sforce.com","entityAttachments","urn:partner.soap.sforce.com","ID",0,-1,true))) {
setEntityAttachments((java.lang.String[])__typeMapper.readObject(__in, _lookupTypeInfo("entityAttachments", "urn:partner.soap.sforce.com","entityAttachments","urn:partner.soap.sforce.com","ID",0,-1,true), java.lang.String[].class));
}
}
private void writeFieldEntityAttachments(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("entityAttachments", "urn:partner.soap.sforce.com","entityAttachments","urn:partner.soap.sforce.com","ID",0,-1,true), entityAttachments, entityAttachments__is_set);
}
/**
* element : fileAttachments of type {urn:partner.soap.sforce.com}EmailFileAttachment
* java type: com.sforce.soap.partner.EmailFileAttachment[]
*/
private boolean fileAttachments__is_set = false;
private com.sforce.soap.partner.EmailFileAttachment[] fileAttachments = new com.sforce.soap.partner.EmailFileAttachment[0];
@Override
public com.sforce.soap.partner.EmailFileAttachment[] getFileAttachments() {
return fileAttachments;
}
@Override
public void setFileAttachments(com.sforce.soap.partner.IEmailFileAttachment[] fileAttachments) {
this.fileAttachments = castArray(com.sforce.soap.partner.EmailFileAttachment.class, fileAttachments);
fileAttachments__is_set = true;
}
protected void setFileAttachments(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("fileAttachments", "urn:partner.soap.sforce.com","fileAttachments","urn:partner.soap.sforce.com","EmailFileAttachment",0,-1,true))) {
setFileAttachments((com.sforce.soap.partner.EmailFileAttachment[])__typeMapper.readObject(__in, _lookupTypeInfo("fileAttachments", "urn:partner.soap.sforce.com","fileAttachments","urn:partner.soap.sforce.com","EmailFileAttachment",0,-1,true), com.sforce.soap.partner.EmailFileAttachment[].class));
}
}
private void writeFieldFileAttachments(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("fileAttachments", "urn:partner.soap.sforce.com","fileAttachments","urn:partner.soap.sforce.com","EmailFileAttachment",0,-1,true), fileAttachments, fileAttachments__is_set);
}
/**
* element : htmlBody of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean htmlBody__is_set = false;
private java.lang.String htmlBody;
@Override
public java.lang.String getHtmlBody() {
return htmlBody;
}
@Override
public void setHtmlBody(java.lang.String htmlBody) {
this.htmlBody = htmlBody;
htmlBody__is_set = true;
}
protected void setHtmlBody(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, _lookupTypeInfo("htmlBody", "urn:partner.soap.sforce.com","htmlBody","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setHtmlBody(__typeMapper.readString(__in, _lookupTypeInfo("htmlBody", "urn:partner.soap.sforce.com","htmlBody","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldHtmlBody(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("htmlBody", "urn:partner.soap.sforce.com","htmlBody","http://www.w3.org/2001/XMLSchema","string",1,1,true), htmlBody, htmlBody__is_set);
}
/**
* element : inReplyTo of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean inReplyTo__is_set = false;
private java.lang.String inReplyTo;
@Override
public java.lang.String getInReplyTo() {
return inReplyTo;
}
@Override
public void setInReplyTo(java.lang.String inReplyTo) {
this.inReplyTo = inReplyTo;
inReplyTo__is_set = true;
}
protected void setInReplyTo(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("inReplyTo", "urn:partner.soap.sforce.com","inReplyTo","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setInReplyTo(__typeMapper.readString(__in, _lookupTypeInfo("inReplyTo", "urn:partner.soap.sforce.com","inReplyTo","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldInReplyTo(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("inReplyTo", "urn:partner.soap.sforce.com","inReplyTo","http://www.w3.org/2001/XMLSchema","string",0,1,true), inReplyTo, inReplyTo__is_set);
}
/**
* element : oneClickPost of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: java.lang.Boolean
*/
private boolean oneClickPost__is_set = false;
private java.lang.Boolean oneClickPost;
@Override
public java.lang.Boolean getOneClickPost() {
return oneClickPost;
}
@Override
public void setOneClickPost(java.lang.Boolean oneClickPost) {
this.oneClickPost = oneClickPost;
oneClickPost__is_set = true;
}
protected void setOneClickPost(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, _lookupTypeInfo("oneClickPost", "urn:partner.soap.sforce.com","oneClickPost","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
setOneClickPost((java.lang.Boolean)__typeMapper.readObject(__in, _lookupTypeInfo("oneClickPost", "urn:partner.soap.sforce.com","oneClickPost","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), java.lang.Boolean.class));
}
}
private void writeFieldOneClickPost(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("oneClickPost", "urn:partner.soap.sforce.com","oneClickPost","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), oneClickPost, oneClickPost__is_set);
}
/**
* element : optOutPolicy of type {urn:partner.soap.sforce.com}SendEmailOptOutPolicy
* java type: com.sforce.soap.partner.SendEmailOptOutPolicy
*/
private boolean optOutPolicy__is_set = false;
private com.sforce.soap.partner.SendEmailOptOutPolicy optOutPolicy;
@Override
public com.sforce.soap.partner.SendEmailOptOutPolicy getOptOutPolicy() {
return optOutPolicy;
}
@Override
public void setOptOutPolicy(com.sforce.soap.partner.SendEmailOptOutPolicy optOutPolicy) {
this.optOutPolicy = optOutPolicy;
optOutPolicy__is_set = true;
}
protected void setOptOutPolicy(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, _lookupTypeInfo("optOutPolicy", "urn:partner.soap.sforce.com","optOutPolicy","urn:partner.soap.sforce.com","SendEmailOptOutPolicy",1,1,true))) {
setOptOutPolicy((com.sforce.soap.partner.SendEmailOptOutPolicy)__typeMapper.readObject(__in, _lookupTypeInfo("optOutPolicy", "urn:partner.soap.sforce.com","optOutPolicy","urn:partner.soap.sforce.com","SendEmailOptOutPolicy",1,1,true), com.sforce.soap.partner.SendEmailOptOutPolicy.class));
}
}
private void writeFieldOptOutPolicy(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("optOutPolicy", "urn:partner.soap.sforce.com","optOutPolicy","urn:partner.soap.sforce.com","SendEmailOptOutPolicy",1,1,true), optOutPolicy, optOutPolicy__is_set);
}
/**
* element : orgWideEmailAddressId of type {urn:partner.soap.sforce.com}ID
* java type: java.lang.String
*/
private boolean orgWideEmailAddressId__is_set = false;
private java.lang.String orgWideEmailAddressId;
@Override
public java.lang.String getOrgWideEmailAddressId() {
return orgWideEmailAddressId;
}
@Override
public void setOrgWideEmailAddressId(java.lang.String orgWideEmailAddressId) {
this.orgWideEmailAddressId = orgWideEmailAddressId;
orgWideEmailAddressId__is_set = true;
}
protected void setOrgWideEmailAddressId(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("orgWideEmailAddressId", "urn:partner.soap.sforce.com","orgWideEmailAddressId","urn:partner.soap.sforce.com","ID",0,1,true))) {
setOrgWideEmailAddressId(__typeMapper.readString(__in, _lookupTypeInfo("orgWideEmailAddressId", "urn:partner.soap.sforce.com","orgWideEmailAddressId","urn:partner.soap.sforce.com","ID",0,1,true), java.lang.String.class));
}
}
private void writeFieldOrgWideEmailAddressId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("orgWideEmailAddressId", "urn:partner.soap.sforce.com","orgWideEmailAddressId","urn:partner.soap.sforce.com","ID",0,1,true), orgWideEmailAddressId, orgWideEmailAddressId__is_set);
}
/**
* element : plainTextBody of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean plainTextBody__is_set = false;
private java.lang.String plainTextBody;
@Override
public java.lang.String getPlainTextBody() {
return plainTextBody;
}
@Override
public void setPlainTextBody(java.lang.String plainTextBody) {
this.plainTextBody = plainTextBody;
plainTextBody__is_set = true;
}
protected void setPlainTextBody(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, _lookupTypeInfo("plainTextBody", "urn:partner.soap.sforce.com","plainTextBody","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setPlainTextBody(__typeMapper.readString(__in, _lookupTypeInfo("plainTextBody", "urn:partner.soap.sforce.com","plainTextBody","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldPlainTextBody(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("plainTextBody", "urn:partner.soap.sforce.com","plainTextBody","http://www.w3.org/2001/XMLSchema","string",1,1,true), plainTextBody, plainTextBody__is_set);
}
/**
* element : references of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean references__is_set = false;
private java.lang.String references;
@Override
public java.lang.String getReferences() {
return references;
}
@Override
public void setReferences(java.lang.String references) {
this.references = references;
references__is_set = true;
}
protected void setReferences(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("references", "urn:partner.soap.sforce.com","references","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setReferences(__typeMapper.readString(__in, _lookupTypeInfo("references", "urn:partner.soap.sforce.com","references","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldReferences(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("references", "urn:partner.soap.sforce.com","references","http://www.w3.org/2001/XMLSchema","string",0,1,true), references, references__is_set);
}
/**
* element : targetObjectId of type {urn:partner.soap.sforce.com}ID
* java type: java.lang.String
*/
private boolean targetObjectId__is_set = false;
private java.lang.String targetObjectId;
@Override
public java.lang.String getTargetObjectId() {
return targetObjectId;
}
@Override
public void setTargetObjectId(java.lang.String targetObjectId) {
this.targetObjectId = targetObjectId;
targetObjectId__is_set = true;
}
protected void setTargetObjectId(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, _lookupTypeInfo("targetObjectId", "urn:partner.soap.sforce.com","targetObjectId","urn:partner.soap.sforce.com","ID",1,1,true))) {
setTargetObjectId(__typeMapper.readString(__in, _lookupTypeInfo("targetObjectId", "urn:partner.soap.sforce.com","targetObjectId","urn:partner.soap.sforce.com","ID",1,1,true), java.lang.String.class));
}
}
private void writeFieldTargetObjectId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("targetObjectId", "urn:partner.soap.sforce.com","targetObjectId","urn:partner.soap.sforce.com","ID",1,1,true), targetObjectId, targetObjectId__is_set);
}
/**
* element : templateId of type {urn:partner.soap.sforce.com}ID
* java type: java.lang.String
*/
private boolean templateId__is_set = false;
private java.lang.String templateId;
@Override
public java.lang.String getTemplateId() {
return templateId;
}
@Override
public void setTemplateId(java.lang.String templateId) {
this.templateId = templateId;
templateId__is_set = true;
}
protected void setTemplateId(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, _lookupTypeInfo("templateId", "urn:partner.soap.sforce.com","templateId","urn:partner.soap.sforce.com","ID",1,1,true))) {
setTemplateId(__typeMapper.readString(__in, _lookupTypeInfo("templateId", "urn:partner.soap.sforce.com","templateId","urn:partner.soap.sforce.com","ID",1,1,true), java.lang.String.class));
}
}
private void writeFieldTemplateId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("templateId", "urn:partner.soap.sforce.com","templateId","urn:partner.soap.sforce.com","ID",1,1,true), templateId, templateId__is_set);
}
/**
* element : templateName of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean templateName__is_set = false;
private java.lang.String templateName;
@Override
public java.lang.String getTemplateName() {
return templateName;
}
@Override
public void setTemplateName(java.lang.String templateName) {
this.templateName = templateName;
templateName__is_set = true;
}
protected void setTemplateName(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("templateName", "urn:partner.soap.sforce.com","templateName","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setTemplateName(__typeMapper.readString(__in, _lookupTypeInfo("templateName", "urn:partner.soap.sforce.com","templateName","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldTemplateName(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("templateName", "urn:partner.soap.sforce.com","templateName","http://www.w3.org/2001/XMLSchema","string",0,1,true), templateName, templateName__is_set);
}
/**
* element : toAddresses of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String[]
*/
private boolean toAddresses__is_set = false;
private java.lang.String[] toAddresses = new java.lang.String[0];
@Override
public java.lang.String[] getToAddresses() {
return toAddresses;
}
@Override
public void setToAddresses(java.lang.String[] toAddresses) {
this.toAddresses = castArray(java.lang.String.class, toAddresses);
toAddresses__is_set = true;
}
protected void setToAddresses(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("toAddresses", "urn:partner.soap.sforce.com","toAddresses","http://www.w3.org/2001/XMLSchema","string",0,100,true))) {
setToAddresses((java.lang.String[])__typeMapper.readObject(__in, _lookupTypeInfo("toAddresses", "urn:partner.soap.sforce.com","toAddresses","http://www.w3.org/2001/XMLSchema","string",0,100,true), java.lang.String[].class));
}
}
private void writeFieldToAddresses(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("toAddresses", "urn:partner.soap.sforce.com","toAddresses","http://www.w3.org/2001/XMLSchema","string",0,100,true), toAddresses, toAddresses__is_set);
}
/**
* element : treatBodiesAsTemplate of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: java.lang.Boolean
*/
private boolean treatBodiesAsTemplate__is_set = false;
private java.lang.Boolean treatBodiesAsTemplate;
@Override
public java.lang.Boolean getTreatBodiesAsTemplate() {
return treatBodiesAsTemplate;
}
@Override
public void setTreatBodiesAsTemplate(java.lang.Boolean treatBodiesAsTemplate) {
this.treatBodiesAsTemplate = treatBodiesAsTemplate;
treatBodiesAsTemplate__is_set = true;
}
protected void setTreatBodiesAsTemplate(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, _lookupTypeInfo("treatBodiesAsTemplate", "urn:partner.soap.sforce.com","treatBodiesAsTemplate","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
setTreatBodiesAsTemplate((java.lang.Boolean)__typeMapper.readObject(__in, _lookupTypeInfo("treatBodiesAsTemplate", "urn:partner.soap.sforce.com","treatBodiesAsTemplate","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), java.lang.Boolean.class));
}
}
private void writeFieldTreatBodiesAsTemplate(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("treatBodiesAsTemplate", "urn:partner.soap.sforce.com","treatBodiesAsTemplate","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), treatBodiesAsTemplate, treatBodiesAsTemplate__is_set);
}
/**
* element : treatTargetObjectAsRecipient of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: java.lang.Boolean
*/
private boolean treatTargetObjectAsRecipient__is_set = false;
private java.lang.Boolean treatTargetObjectAsRecipient;
@Override
public java.lang.Boolean getTreatTargetObjectAsRecipient() {
return treatTargetObjectAsRecipient;
}
@Override
public void setTreatTargetObjectAsRecipient(java.lang.Boolean treatTargetObjectAsRecipient) {
this.treatTargetObjectAsRecipient = treatTargetObjectAsRecipient;
treatTargetObjectAsRecipient__is_set = true;
}
protected void setTreatTargetObjectAsRecipient(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, _lookupTypeInfo("treatTargetObjectAsRecipient", "urn:partner.soap.sforce.com","treatTargetObjectAsRecipient","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
setTreatTargetObjectAsRecipient((java.lang.Boolean)__typeMapper.readObject(__in, _lookupTypeInfo("treatTargetObjectAsRecipient", "urn:partner.soap.sforce.com","treatTargetObjectAsRecipient","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), java.lang.Boolean.class));
}
}
private void writeFieldTreatTargetObjectAsRecipient(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("treatTargetObjectAsRecipient", "urn:partner.soap.sforce.com","treatTargetObjectAsRecipient","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), treatTargetObjectAsRecipient, treatTargetObjectAsRecipient__is_set);
}
/**
* element : unsubscribeComment of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean unsubscribeComment__is_set = false;
private java.lang.String unsubscribeComment;
@Override
public java.lang.String getUnsubscribeComment() {
return unsubscribeComment;
}
@Override
public void setUnsubscribeComment(java.lang.String unsubscribeComment) {
this.unsubscribeComment = unsubscribeComment;
unsubscribeComment__is_set = true;
}
protected void setUnsubscribeComment(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, _lookupTypeInfo("unsubscribeComment", "urn:partner.soap.sforce.com","unsubscribeComment","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setUnsubscribeComment(__typeMapper.readString(__in, _lookupTypeInfo("unsubscribeComment", "urn:partner.soap.sforce.com","unsubscribeComment","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldUnsubscribeComment(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("unsubscribeComment", "urn:partner.soap.sforce.com","unsubscribeComment","http://www.w3.org/2001/XMLSchema","string",1,1,true), unsubscribeComment, unsubscribeComment__is_set);
}
/**
* element : unsubscribeUrls of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String[]
*/
private boolean unsubscribeUrls__is_set = false;
private java.lang.String[] unsubscribeUrls = new java.lang.String[0];
@Override
public java.lang.String[] getUnsubscribeUrls() {
return unsubscribeUrls;
}
@Override
public void setUnsubscribeUrls(java.lang.String[] unsubscribeUrls) {
this.unsubscribeUrls = castArray(java.lang.String.class, unsubscribeUrls);
unsubscribeUrls__is_set = true;
}
protected void setUnsubscribeUrls(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("unsubscribeUrls", "urn:partner.soap.sforce.com","unsubscribeUrls","http://www.w3.org/2001/XMLSchema","string",0,-1,true))) {
setUnsubscribeUrls((java.lang.String[])__typeMapper.readObject(__in, _lookupTypeInfo("unsubscribeUrls", "urn:partner.soap.sforce.com","unsubscribeUrls","http://www.w3.org/2001/XMLSchema","string",0,-1,true), java.lang.String[].class));
}
}
private void writeFieldUnsubscribeUrls(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("unsubscribeUrls", "urn:partner.soap.sforce.com","unsubscribeUrls","http://www.w3.org/2001/XMLSchema","string",0,-1,true), unsubscribeUrls, unsubscribeUrls__is_set);
}
/**
* element : whatId of type {urn:partner.soap.sforce.com}ID
* java type: java.lang.String
*/
private boolean whatId__is_set = false;
private java.lang.String whatId;
@Override
public java.lang.String getWhatId() {
return whatId;
}
@Override
public void setWhatId(java.lang.String whatId) {
this.whatId = whatId;
whatId__is_set = true;
}
protected void setWhatId(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, _lookupTypeInfo("whatId", "urn:partner.soap.sforce.com","whatId","urn:partner.soap.sforce.com","ID",1,1,true))) {
setWhatId(__typeMapper.readString(__in, _lookupTypeInfo("whatId", "urn:partner.soap.sforce.com","whatId","urn:partner.soap.sforce.com","ID",1,1,true), java.lang.String.class));
}
}
private void writeFieldWhatId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("whatId", "urn:partner.soap.sforce.com","whatId","urn:partner.soap.sforce.com","ID",1,1,true), whatId, whatId__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());
__typeMapper.writeXsiType(__out, "urn:partner.soap.sforce.com", "SingleEmailMessage");
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 {
super.writeFields(__out, __typeMapper);
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 {
super.loadFields(__in, __typeMapper);
loadFields1(__in, __typeMapper);
}
@Override
public String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("[SingleEmailMessage ");
sb.append(super.toString());
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 {
writeFieldBccAddresses(__out, __typeMapper);
writeFieldCcAddresses(__out, __typeMapper);
writeFieldCharset(__out, __typeMapper);
writeFieldDocumentAttachments(__out, __typeMapper);
writeFieldEntityAttachments(__out, __typeMapper);
writeFieldFileAttachments(__out, __typeMapper);
writeFieldHtmlBody(__out, __typeMapper);
writeFieldInReplyTo(__out, __typeMapper);
writeFieldOneClickPost(__out, __typeMapper);
writeFieldOptOutPolicy(__out, __typeMapper);
writeFieldOrgWideEmailAddressId(__out, __typeMapper);
writeFieldPlainTextBody(__out, __typeMapper);
writeFieldReferences(__out, __typeMapper);
writeFieldTargetObjectId(__out, __typeMapper);
writeFieldTemplateId(__out, __typeMapper);
writeFieldTemplateName(__out, __typeMapper);
writeFieldToAddresses(__out, __typeMapper);
writeFieldTreatBodiesAsTemplate(__out, __typeMapper);
writeFieldTreatTargetObjectAsRecipient(__out, __typeMapper);
writeFieldUnsubscribeComment(__out, __typeMapper);
writeFieldUnsubscribeUrls(__out, __typeMapper);
writeFieldWhatId(__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 {
setBccAddresses(__in, __typeMapper);
setCcAddresses(__in, __typeMapper);
setCharset(__in, __typeMapper);
setDocumentAttachments(__in, __typeMapper);
setEntityAttachments(__in, __typeMapper);
setFileAttachments(__in, __typeMapper);
setHtmlBody(__in, __typeMapper);
setInReplyTo(__in, __typeMapper);
setOneClickPost(__in, __typeMapper);
setOptOutPolicy(__in, __typeMapper);
setOrgWideEmailAddressId(__in, __typeMapper);
setPlainTextBody(__in, __typeMapper);
setReferences(__in, __typeMapper);
setTargetObjectId(__in, __typeMapper);
setTemplateId(__in, __typeMapper);
setTemplateName(__in, __typeMapper);
setToAddresses(__in, __typeMapper);
setTreatBodiesAsTemplate(__in, __typeMapper);
setTreatTargetObjectAsRecipient(__in, __typeMapper);
setUnsubscribeComment(__in, __typeMapper);
setUnsubscribeUrls(__in, __typeMapper);
setWhatId(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "bccAddresses", bccAddresses);
toStringHelper(sb, "ccAddresses", ccAddresses);
toStringHelper(sb, "charset", charset);
toStringHelper(sb, "documentAttachments", documentAttachments);
toStringHelper(sb, "entityAttachments", entityAttachments);
toStringHelper(sb, "fileAttachments", fileAttachments);
toStringHelper(sb, "htmlBody", htmlBody);
toStringHelper(sb, "inReplyTo", inReplyTo);
toStringHelper(sb, "oneClickPost", oneClickPost);
toStringHelper(sb, "optOutPolicy", optOutPolicy);
toStringHelper(sb, "orgWideEmailAddressId", orgWideEmailAddressId);
toStringHelper(sb, "plainTextBody", plainTextBody);
toStringHelper(sb, "references", references);
toStringHelper(sb, "targetObjectId", targetObjectId);
toStringHelper(sb, "templateId", templateId);
toStringHelper(sb, "templateName", templateName);
toStringHelper(sb, "toAddresses", toAddresses);
toStringHelper(sb, "treatBodiesAsTemplate", treatBodiesAsTemplate);
toStringHelper(sb, "treatTargetObjectAsRecipient", treatTargetObjectAsRecipient);
toStringHelper(sb, "unsubscribeComment", unsubscribeComment);
toStringHelper(sb, "unsubscribeUrls", unsubscribeUrls);
toStringHelper(sb, "whatId", whatId);
}
@SuppressWarnings("unchecked")
private T[] castArray(Class clazz, U[] array) {
if (array == null) {
return null;
}
T[] retVal = (T[]) java.lang.reflect.Array.newInstance(clazz, array.length);
for (int i=0; i < array.length; i++) {
retVal[i] = (T)array[i];
}
return retVal;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy