com.sforce.soap.metadata.EmailTemplate 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 EmailTemplate extends com.sforce.soap.metadata.MetadataWithContent {
/**
* Constructor
*/
public EmailTemplate() {}
/* 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 : apiVersion of type {http://www.w3.org/2001/XMLSchema}double
* java type: double
*/
private boolean apiVersion__is_set = false;
private double apiVersion;
public double getApiVersion() {
return apiVersion;
}
public void setApiVersion(double apiVersion) {
this.apiVersion = apiVersion;
apiVersion__is_set = true;
}
protected void setApiVersion(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("apiVersion", "http://soap.sforce.com/2006/04/metadata","apiVersion","http://www.w3.org/2001/XMLSchema","double",0,1,true))) {
setApiVersion((double)__typeMapper.readDouble(__in, _lookupTypeInfo("apiVersion", "http://soap.sforce.com/2006/04/metadata","apiVersion","http://www.w3.org/2001/XMLSchema","double",0,1,true), double.class));
}
}
private void writeFieldApiVersion(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("apiVersion", "http://soap.sforce.com/2006/04/metadata","apiVersion","http://www.w3.org/2001/XMLSchema","double",0,1,true), apiVersion, apiVersion__is_set);
}
/**
* element : attachedDocuments of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String[]
*/
private boolean attachedDocuments__is_set = false;
private java.lang.String[] attachedDocuments = new java.lang.String[0];
public java.lang.String[] getAttachedDocuments() {
return attachedDocuments;
}
public void setAttachedDocuments(java.lang.String[] attachedDocuments) {
this.attachedDocuments = attachedDocuments;
attachedDocuments__is_set = true;
}
protected void setAttachedDocuments(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("attachedDocuments", "http://soap.sforce.com/2006/04/metadata","attachedDocuments","http://www.w3.org/2001/XMLSchema","string",0,-1,true))) {
setAttachedDocuments((java.lang.String[])__typeMapper.readObject(__in, _lookupTypeInfo("attachedDocuments", "http://soap.sforce.com/2006/04/metadata","attachedDocuments","http://www.w3.org/2001/XMLSchema","string",0,-1,true), java.lang.String[].class));
}
}
private void writeFieldAttachedDocuments(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("attachedDocuments", "http://soap.sforce.com/2006/04/metadata","attachedDocuments","http://www.w3.org/2001/XMLSchema","string",0,-1,true), attachedDocuments, attachedDocuments__is_set);
}
/**
* element : attachments of type {http://soap.sforce.com/2006/04/metadata}Attachment
* java type: com.sforce.soap.metadata.Attachment[]
*/
private boolean attachments__is_set = false;
private com.sforce.soap.metadata.Attachment[] attachments = new com.sforce.soap.metadata.Attachment[0];
public com.sforce.soap.metadata.Attachment[] getAttachments() {
return attachments;
}
public void setAttachments(com.sforce.soap.metadata.Attachment[] attachments) {
this.attachments = attachments;
attachments__is_set = true;
}
protected void setAttachments(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("attachments", "http://soap.sforce.com/2006/04/metadata","attachments","http://soap.sforce.com/2006/04/metadata","Attachment",0,-1,true))) {
setAttachments((com.sforce.soap.metadata.Attachment[])__typeMapper.readObject(__in, _lookupTypeInfo("attachments", "http://soap.sforce.com/2006/04/metadata","attachments","http://soap.sforce.com/2006/04/metadata","Attachment",0,-1,true), com.sforce.soap.metadata.Attachment[].class));
}
}
private void writeFieldAttachments(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("attachments", "http://soap.sforce.com/2006/04/metadata","attachments","http://soap.sforce.com/2006/04/metadata","Attachment",0,-1,true), attachments, attachments__is_set);
}
/**
* element : available of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean available__is_set = false;
private boolean available;
public boolean getAvailable() {
return available;
}
public boolean isAvailable() {
return available;
}
public void setAvailable(boolean available) {
this.available = available;
available__is_set = true;
}
protected void setAvailable(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("available", "http://soap.sforce.com/2006/04/metadata","available","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
setAvailable(__typeMapper.readBoolean(__in, _lookupTypeInfo("available", "http://soap.sforce.com/2006/04/metadata","available","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
}
}
private void writeFieldAvailable(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("available", "http://soap.sforce.com/2006/04/metadata","available","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), available, available__is_set);
}
/**
* element : description of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean description__is_set = false;
private java.lang.String description;
public java.lang.String getDescription() {
return description;
}
public void setDescription(java.lang.String description) {
this.description = description;
description__is_set = true;
}
protected void setDescription(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("description", "http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setDescription(__typeMapper.readString(__in, _lookupTypeInfo("description", "http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldDescription(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("description", "http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true), description, description__is_set);
}
/**
* element : encodingKey of type {http://soap.sforce.com/2006/04/metadata}Encoding
* java type: com.sforce.soap.metadata.Encoding
*/
private boolean encodingKey__is_set = false;
private com.sforce.soap.metadata.Encoding encodingKey;
public com.sforce.soap.metadata.Encoding getEncodingKey() {
return encodingKey;
}
public void setEncodingKey(com.sforce.soap.metadata.Encoding encodingKey) {
this.encodingKey = encodingKey;
encodingKey__is_set = true;
}
protected void setEncodingKey(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("encodingKey", "http://soap.sforce.com/2006/04/metadata","encodingKey","http://soap.sforce.com/2006/04/metadata","Encoding",1,1,true))) {
setEncodingKey((com.sforce.soap.metadata.Encoding)__typeMapper.readObject(__in, _lookupTypeInfo("encodingKey", "http://soap.sforce.com/2006/04/metadata","encodingKey","http://soap.sforce.com/2006/04/metadata","Encoding",1,1,true), com.sforce.soap.metadata.Encoding.class));
}
}
private void writeFieldEncodingKey(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("encodingKey", "http://soap.sforce.com/2006/04/metadata","encodingKey","http://soap.sforce.com/2006/04/metadata","Encoding",1,1,true), encodingKey, encodingKey__is_set);
}
/**
* element : letterhead of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean letterhead__is_set = false;
private java.lang.String letterhead;
public java.lang.String getLetterhead() {
return letterhead;
}
public void setLetterhead(java.lang.String letterhead) {
this.letterhead = letterhead;
letterhead__is_set = true;
}
protected void setLetterhead(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("letterhead", "http://soap.sforce.com/2006/04/metadata","letterhead","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setLetterhead(__typeMapper.readString(__in, _lookupTypeInfo("letterhead", "http://soap.sforce.com/2006/04/metadata","letterhead","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldLetterhead(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("letterhead", "http://soap.sforce.com/2006/04/metadata","letterhead","http://www.w3.org/2001/XMLSchema","string",0,1,true), letterhead, letterhead__is_set);
}
/**
* element : name of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean name__is_set = false;
private java.lang.String name;
public java.lang.String getName() {
return name;
}
public void setName(java.lang.String name) {
this.name = name;
name__is_set = true;
}
protected void setName(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("name", "http://soap.sforce.com/2006/04/metadata","name","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setName(__typeMapper.readString(__in, _lookupTypeInfo("name", "http://soap.sforce.com/2006/04/metadata","name","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldName(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("name", "http://soap.sforce.com/2006/04/metadata","name","http://www.w3.org/2001/XMLSchema","string",1,1,true), name, name__is_set);
}
/**
* element : packageVersions of type {http://soap.sforce.com/2006/04/metadata}PackageVersion
* java type: com.sforce.soap.metadata.PackageVersion[]
*/
private boolean packageVersions__is_set = false;
private com.sforce.soap.metadata.PackageVersion[] packageVersions = new com.sforce.soap.metadata.PackageVersion[0];
public com.sforce.soap.metadata.PackageVersion[] getPackageVersions() {
return packageVersions;
}
public void setPackageVersions(com.sforce.soap.metadata.PackageVersion[] packageVersions) {
this.packageVersions = packageVersions;
packageVersions__is_set = true;
}
protected void setPackageVersions(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("packageVersions", "http://soap.sforce.com/2006/04/metadata","packageVersions","http://soap.sforce.com/2006/04/metadata","PackageVersion",0,-1,true))) {
setPackageVersions((com.sforce.soap.metadata.PackageVersion[])__typeMapper.readObject(__in, _lookupTypeInfo("packageVersions", "http://soap.sforce.com/2006/04/metadata","packageVersions","http://soap.sforce.com/2006/04/metadata","PackageVersion",0,-1,true), com.sforce.soap.metadata.PackageVersion[].class));
}
}
private void writeFieldPackageVersions(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("packageVersions", "http://soap.sforce.com/2006/04/metadata","packageVersions","http://soap.sforce.com/2006/04/metadata","PackageVersion",0,-1,true), packageVersions, packageVersions__is_set);
}
/**
* element : pageDevName of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean pageDevName__is_set = false;
private java.lang.String pageDevName;
public java.lang.String getPageDevName() {
return pageDevName;
}
public void setPageDevName(java.lang.String pageDevName) {
this.pageDevName = pageDevName;
pageDevName__is_set = true;
}
protected void setPageDevName(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("pageDevName", "http://soap.sforce.com/2006/04/metadata","pageDevName","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setPageDevName(__typeMapper.readString(__in, _lookupTypeInfo("pageDevName", "http://soap.sforce.com/2006/04/metadata","pageDevName","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldPageDevName(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("pageDevName", "http://soap.sforce.com/2006/04/metadata","pageDevName","http://www.w3.org/2001/XMLSchema","string",0,1,true), pageDevName, pageDevName__is_set);
}
/**
* element : relatedEntityType of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean relatedEntityType__is_set = false;
private java.lang.String relatedEntityType;
public java.lang.String getRelatedEntityType() {
return relatedEntityType;
}
public void setRelatedEntityType(java.lang.String relatedEntityType) {
this.relatedEntityType = relatedEntityType;
relatedEntityType__is_set = true;
}
protected void setRelatedEntityType(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("relatedEntityType", "http://soap.sforce.com/2006/04/metadata","relatedEntityType","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setRelatedEntityType(__typeMapper.readString(__in, _lookupTypeInfo("relatedEntityType", "http://soap.sforce.com/2006/04/metadata","relatedEntityType","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldRelatedEntityType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("relatedEntityType", "http://soap.sforce.com/2006/04/metadata","relatedEntityType","http://www.w3.org/2001/XMLSchema","string",0,1,true), relatedEntityType, relatedEntityType__is_set);
}
/**
* element : style of type {http://soap.sforce.com/2006/04/metadata}EmailTemplateStyle
* java type: com.sforce.soap.metadata.EmailTemplateStyle
*/
private boolean style__is_set = false;
private com.sforce.soap.metadata.EmailTemplateStyle style;
public com.sforce.soap.metadata.EmailTemplateStyle getStyle() {
return style;
}
public void setStyle(com.sforce.soap.metadata.EmailTemplateStyle style) {
this.style = style;
style__is_set = true;
}
protected void setStyle(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("style", "http://soap.sforce.com/2006/04/metadata","style","http://soap.sforce.com/2006/04/metadata","EmailTemplateStyle",1,1,true))) {
setStyle((com.sforce.soap.metadata.EmailTemplateStyle)__typeMapper.readObject(__in, _lookupTypeInfo("style", "http://soap.sforce.com/2006/04/metadata","style","http://soap.sforce.com/2006/04/metadata","EmailTemplateStyle",1,1,true), com.sforce.soap.metadata.EmailTemplateStyle.class));
}
}
private void writeFieldStyle(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("style", "http://soap.sforce.com/2006/04/metadata","style","http://soap.sforce.com/2006/04/metadata","EmailTemplateStyle",1,1,true), style, style__is_set);
}
/**
* element : subject of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean subject__is_set = false;
private java.lang.String subject;
public java.lang.String getSubject() {
return subject;
}
public void setSubject(java.lang.String subject) {
this.subject = subject;
subject__is_set = true;
}
protected void setSubject(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("subject", "http://soap.sforce.com/2006/04/metadata","subject","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setSubject(__typeMapper.readString(__in, _lookupTypeInfo("subject", "http://soap.sforce.com/2006/04/metadata","subject","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldSubject(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("subject", "http://soap.sforce.com/2006/04/metadata","subject","http://www.w3.org/2001/XMLSchema","string",0,1,true), subject, subject__is_set);
}
/**
* element : textOnly of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean textOnly__is_set = false;
private java.lang.String textOnly;
public java.lang.String getTextOnly() {
return textOnly;
}
public void setTextOnly(java.lang.String textOnly) {
this.textOnly = textOnly;
textOnly__is_set = true;
}
protected void setTextOnly(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("textOnly", "http://soap.sforce.com/2006/04/metadata","textOnly","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setTextOnly(__typeMapper.readString(__in, _lookupTypeInfo("textOnly", "http://soap.sforce.com/2006/04/metadata","textOnly","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldTextOnly(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("textOnly", "http://soap.sforce.com/2006/04/metadata","textOnly","http://www.w3.org/2001/XMLSchema","string",0,1,true), textOnly, textOnly__is_set);
}
/**
* element : type of type {http://soap.sforce.com/2006/04/metadata}EmailTemplateType
* java type: com.sforce.soap.metadata.EmailTemplateType
*/
private boolean type__is_set = false;
private com.sforce.soap.metadata.EmailTemplateType type;
public com.sforce.soap.metadata.EmailTemplateType getType() {
return type;
}
public void setType(com.sforce.soap.metadata.EmailTemplateType type) {
this.type = type;
type__is_set = true;
}
protected void setType(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("type", "http://soap.sforce.com/2006/04/metadata","type","http://soap.sforce.com/2006/04/metadata","EmailTemplateType",1,1,true))) {
setType((com.sforce.soap.metadata.EmailTemplateType)__typeMapper.readObject(__in, _lookupTypeInfo("type", "http://soap.sforce.com/2006/04/metadata","type","http://soap.sforce.com/2006/04/metadata","EmailTemplateType",1,1,true), com.sforce.soap.metadata.EmailTemplateType.class));
}
}
private void writeFieldType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("type", "http://soap.sforce.com/2006/04/metadata","type","http://soap.sforce.com/2006/04/metadata","EmailTemplateType",1,1,true), type, type__is_set);
}
/**
* element : uiType of type {http://soap.sforce.com/2006/04/metadata}EmailTemplateUiType
* java type: com.sforce.soap.metadata.EmailTemplateUiType
*/
private boolean uiType__is_set = false;
private com.sforce.soap.metadata.EmailTemplateUiType uiType;
public com.sforce.soap.metadata.EmailTemplateUiType getUiType() {
return uiType;
}
public void setUiType(com.sforce.soap.metadata.EmailTemplateUiType uiType) {
this.uiType = uiType;
uiType__is_set = true;
}
protected void setUiType(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("uiType", "http://soap.sforce.com/2006/04/metadata","uiType","http://soap.sforce.com/2006/04/metadata","EmailTemplateUiType",0,1,true))) {
setUiType((com.sforce.soap.metadata.EmailTemplateUiType)__typeMapper.readObject(__in, _lookupTypeInfo("uiType", "http://soap.sforce.com/2006/04/metadata","uiType","http://soap.sforce.com/2006/04/metadata","EmailTemplateUiType",0,1,true), com.sforce.soap.metadata.EmailTemplateUiType.class));
}
}
private void writeFieldUiType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("uiType", "http://soap.sforce.com/2006/04/metadata","uiType","http://soap.sforce.com/2006/04/metadata","EmailTemplateUiType",0,1,true), uiType, uiType__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, "http://soap.sforce.com/2006/04/metadata", "EmailTemplate");
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("[EmailTemplate ");
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 {
writeFieldApiVersion(__out, __typeMapper);
writeFieldAttachedDocuments(__out, __typeMapper);
writeFieldAttachments(__out, __typeMapper);
writeFieldAvailable(__out, __typeMapper);
writeFieldDescription(__out, __typeMapper);
writeFieldEncodingKey(__out, __typeMapper);
writeFieldLetterhead(__out, __typeMapper);
writeFieldName(__out, __typeMapper);
writeFieldPackageVersions(__out, __typeMapper);
writeFieldPageDevName(__out, __typeMapper);
writeFieldRelatedEntityType(__out, __typeMapper);
writeFieldStyle(__out, __typeMapper);
writeFieldSubject(__out, __typeMapper);
writeFieldTextOnly(__out, __typeMapper);
writeFieldType(__out, __typeMapper);
writeFieldUiType(__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 {
setApiVersion(__in, __typeMapper);
setAttachedDocuments(__in, __typeMapper);
setAttachments(__in, __typeMapper);
setAvailable(__in, __typeMapper);
setDescription(__in, __typeMapper);
setEncodingKey(__in, __typeMapper);
setLetterhead(__in, __typeMapper);
setName(__in, __typeMapper);
setPackageVersions(__in, __typeMapper);
setPageDevName(__in, __typeMapper);
setRelatedEntityType(__in, __typeMapper);
setStyle(__in, __typeMapper);
setSubject(__in, __typeMapper);
setTextOnly(__in, __typeMapper);
setType(__in, __typeMapper);
setUiType(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "apiVersion", apiVersion);
toStringHelper(sb, "attachedDocuments", attachedDocuments);
toStringHelper(sb, "attachments", attachments);
toStringHelper(sb, "available", available);
toStringHelper(sb, "description", description);
toStringHelper(sb, "encodingKey", encodingKey);
toStringHelper(sb, "letterhead", letterhead);
toStringHelper(sb, "name", name);
toStringHelper(sb, "packageVersions", packageVersions);
toStringHelper(sb, "pageDevName", pageDevName);
toStringHelper(sb, "relatedEntityType", relatedEntityType);
toStringHelper(sb, "style", style);
toStringHelper(sb, "subject", subject);
toStringHelper(sb, "textOnly", textOnly);
toStringHelper(sb, "type", type);
toStringHelper(sb, "uiType", uiType);
}
}