com.sforce.soap.metadata.PromptVersionTranslation 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 PromptVersionTranslation implements com.sforce.ws.bind.XMLizable {
/**
* Constructor
*/
public PromptVersionTranslation() {}
/* 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 : actionButtonLabel of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean actionButtonLabel__is_set = false;
private java.lang.String actionButtonLabel;
public java.lang.String getActionButtonLabel() {
return actionButtonLabel;
}
public void setActionButtonLabel(java.lang.String actionButtonLabel) {
this.actionButtonLabel = actionButtonLabel;
actionButtonLabel__is_set = true;
}
protected void setActionButtonLabel(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("actionButtonLabel", "http://soap.sforce.com/2006/04/metadata","actionButtonLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setActionButtonLabel(__typeMapper.readString(__in, _lookupTypeInfo("actionButtonLabel", "http://soap.sforce.com/2006/04/metadata","actionButtonLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldActionButtonLabel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("actionButtonLabel", "http://soap.sforce.com/2006/04/metadata","actionButtonLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true), actionButtonLabel, actionButtonLabel__is_set);
}
/**
* element : actionButtonLink of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean actionButtonLink__is_set = false;
private java.lang.String actionButtonLink;
public java.lang.String getActionButtonLink() {
return actionButtonLink;
}
public void setActionButtonLink(java.lang.String actionButtonLink) {
this.actionButtonLink = actionButtonLink;
actionButtonLink__is_set = true;
}
protected void setActionButtonLink(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("actionButtonLink", "http://soap.sforce.com/2006/04/metadata","actionButtonLink","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setActionButtonLink(__typeMapper.readString(__in, _lookupTypeInfo("actionButtonLink", "http://soap.sforce.com/2006/04/metadata","actionButtonLink","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldActionButtonLink(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("actionButtonLink", "http://soap.sforce.com/2006/04/metadata","actionButtonLink","http://www.w3.org/2001/XMLSchema","string",0,1,true), actionButtonLink, actionButtonLink__is_set);
}
/**
* element : body of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean body__is_set = false;
private java.lang.String body;
public java.lang.String getBody() {
return body;
}
public void setBody(java.lang.String body) {
this.body = body;
body__is_set = true;
}
protected void setBody(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("body", "http://soap.sforce.com/2006/04/metadata","body","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setBody(__typeMapper.readString(__in, _lookupTypeInfo("body", "http://soap.sforce.com/2006/04/metadata","body","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldBody(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("body", "http://soap.sforce.com/2006/04/metadata","body","http://www.w3.org/2001/XMLSchema","string",0,1,true), body, body__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 : dismissButtonLabel of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean dismissButtonLabel__is_set = false;
private java.lang.String dismissButtonLabel;
public java.lang.String getDismissButtonLabel() {
return dismissButtonLabel;
}
public void setDismissButtonLabel(java.lang.String dismissButtonLabel) {
this.dismissButtonLabel = dismissButtonLabel;
dismissButtonLabel__is_set = true;
}
protected void setDismissButtonLabel(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("dismissButtonLabel", "http://soap.sforce.com/2006/04/metadata","dismissButtonLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setDismissButtonLabel(__typeMapper.readString(__in, _lookupTypeInfo("dismissButtonLabel", "http://soap.sforce.com/2006/04/metadata","dismissButtonLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldDismissButtonLabel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("dismissButtonLabel", "http://soap.sforce.com/2006/04/metadata","dismissButtonLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true), dismissButtonLabel, dismissButtonLabel__is_set);
}
/**
* element : header of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean header__is_set = false;
private java.lang.String header;
public java.lang.String getHeader() {
return header;
}
public void setHeader(java.lang.String header) {
this.header = header;
header__is_set = true;
}
protected void setHeader(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("header", "http://soap.sforce.com/2006/04/metadata","header","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setHeader(__typeMapper.readString(__in, _lookupTypeInfo("header", "http://soap.sforce.com/2006/04/metadata","header","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldHeader(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("header", "http://soap.sforce.com/2006/04/metadata","header","http://www.w3.org/2001/XMLSchema","string",0,1,true), header, header__is_set);
}
/**
* element : imageAltText of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean imageAltText__is_set = false;
private java.lang.String imageAltText;
public java.lang.String getImageAltText() {
return imageAltText;
}
public void setImageAltText(java.lang.String imageAltText) {
this.imageAltText = imageAltText;
imageAltText__is_set = true;
}
protected void setImageAltText(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("imageAltText", "http://soap.sforce.com/2006/04/metadata","imageAltText","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setImageAltText(__typeMapper.readString(__in, _lookupTypeInfo("imageAltText", "http://soap.sforce.com/2006/04/metadata","imageAltText","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldImageAltText(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("imageAltText", "http://soap.sforce.com/2006/04/metadata","imageAltText","http://www.w3.org/2001/XMLSchema","string",0,1,true), imageAltText, imageAltText__is_set);
}
/**
* element : imageLink of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean imageLink__is_set = false;
private java.lang.String imageLink;
public java.lang.String getImageLink() {
return imageLink;
}
public void setImageLink(java.lang.String imageLink) {
this.imageLink = imageLink;
imageLink__is_set = true;
}
protected void setImageLink(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("imageLink", "http://soap.sforce.com/2006/04/metadata","imageLink","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setImageLink(__typeMapper.readString(__in, _lookupTypeInfo("imageLink", "http://soap.sforce.com/2006/04/metadata","imageLink","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldImageLink(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("imageLink", "http://soap.sforce.com/2006/04/metadata","imageLink","http://www.w3.org/2001/XMLSchema","string",0,1,true), imageLink, imageLink__is_set);
}
/**
* element : label of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean label__is_set = false;
private java.lang.String label;
public java.lang.String getLabel() {
return label;
}
public void setLabel(java.lang.String label) {
this.label = label;
label__is_set = true;
}
protected void setLabel(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("label", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setLabel(__typeMapper.readString(__in, _lookupTypeInfo("label", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldLabel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("label", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",0,1,true), label, label__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 : stepNumber of type {http://www.w3.org/2001/XMLSchema}int
* java type: int
*/
private boolean stepNumber__is_set = false;
private int stepNumber;
public int getStepNumber() {
return stepNumber;
}
public void setStepNumber(int stepNumber) {
this.stepNumber = stepNumber;
stepNumber__is_set = true;
}
protected void setStepNumber(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("stepNumber", "http://soap.sforce.com/2006/04/metadata","stepNumber","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
setStepNumber((int)__typeMapper.readInt(__in, _lookupTypeInfo("stepNumber", "http://soap.sforce.com/2006/04/metadata","stepNumber","http://www.w3.org/2001/XMLSchema","int",0,1,true), int.class));
}
}
private void writeFieldStepNumber(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("stepNumber", "http://soap.sforce.com/2006/04/metadata","stepNumber","http://www.w3.org/2001/XMLSchema","int",0,1,true), stepNumber, stepNumber__is_set);
}
/**
* element : title of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean title__is_set = false;
private java.lang.String title;
public java.lang.String getTitle() {
return title;
}
public void setTitle(java.lang.String title) {
this.title = title;
title__is_set = true;
}
protected void setTitle(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("title", "http://soap.sforce.com/2006/04/metadata","title","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setTitle(__typeMapper.readString(__in, _lookupTypeInfo("title", "http://soap.sforce.com/2006/04/metadata","title","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldTitle(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("title", "http://soap.sforce.com/2006/04/metadata","title","http://www.w3.org/2001/XMLSchema","string",0,1,true), title, title__is_set);
}
/**
* element : videoLink of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean videoLink__is_set = false;
private java.lang.String videoLink;
public java.lang.String getVideoLink() {
return videoLink;
}
public void setVideoLink(java.lang.String videoLink) {
this.videoLink = videoLink;
videoLink__is_set = true;
}
protected void setVideoLink(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("videoLink", "http://soap.sforce.com/2006/04/metadata","videoLink","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setVideoLink(__typeMapper.readString(__in, _lookupTypeInfo("videoLink", "http://soap.sforce.com/2006/04/metadata","videoLink","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldVideoLink(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("videoLink", "http://soap.sforce.com/2006/04/metadata","videoLink","http://www.w3.org/2001/XMLSchema","string",0,1,true), videoLink, videoLink__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("[PromptVersionTranslation ");
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 {
writeFieldActionButtonLabel(__out, __typeMapper);
writeFieldActionButtonLink(__out, __typeMapper);
writeFieldBody(__out, __typeMapper);
writeFieldDescription(__out, __typeMapper);
writeFieldDismissButtonLabel(__out, __typeMapper);
writeFieldHeader(__out, __typeMapper);
writeFieldImageAltText(__out, __typeMapper);
writeFieldImageLink(__out, __typeMapper);
writeFieldLabel(__out, __typeMapper);
writeFieldName(__out, __typeMapper);
writeFieldStepNumber(__out, __typeMapper);
writeFieldTitle(__out, __typeMapper);
writeFieldVideoLink(__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 {
setActionButtonLabel(__in, __typeMapper);
setActionButtonLink(__in, __typeMapper);
setBody(__in, __typeMapper);
setDescription(__in, __typeMapper);
setDismissButtonLabel(__in, __typeMapper);
setHeader(__in, __typeMapper);
setImageAltText(__in, __typeMapper);
setImageLink(__in, __typeMapper);
setLabel(__in, __typeMapper);
setName(__in, __typeMapper);
setStepNumber(__in, __typeMapper);
setTitle(__in, __typeMapper);
setVideoLink(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "actionButtonLabel", actionButtonLabel);
toStringHelper(sb, "actionButtonLink", actionButtonLink);
toStringHelper(sb, "body", body);
toStringHelper(sb, "description", description);
toStringHelper(sb, "dismissButtonLabel", dismissButtonLabel);
toStringHelper(sb, "header", header);
toStringHelper(sb, "imageAltText", imageAltText);
toStringHelper(sb, "imageLink", imageLink);
toStringHelper(sb, "label", label);
toStringHelper(sb, "name", name);
toStringHelper(sb, "stepNumber", stepNumber);
toStringHelper(sb, "title", title);
toStringHelper(sb, "videoLink", videoLink);
}
}