All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sforce.soap.metadata.Translations Maven / Gradle / Ivy

There is a newer version: 62.0.0
Show newest version
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 Translations extends com.sforce.soap.metadata.Metadata {

    /**
     * Constructor
     */
    public Translations() {}

    /* 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 : customApplications of type {http://soap.sforce.com/2006/04/metadata}CustomApplicationTranslation
     * java type: com.sforce.soap.metadata.CustomApplicationTranslation[]
     */
    private boolean customApplications__is_set = false;

    private com.sforce.soap.metadata.CustomApplicationTranslation[] customApplications = new com.sforce.soap.metadata.CustomApplicationTranslation[0];

    public com.sforce.soap.metadata.CustomApplicationTranslation[] getCustomApplications() {
      return customApplications;
    }

    public void setCustomApplications(com.sforce.soap.metadata.CustomApplicationTranslation[] customApplications) {
      this.customApplications = customApplications;
      customApplications__is_set = true;
    }

    protected void setCustomApplications(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("customApplications", "http://soap.sforce.com/2006/04/metadata","customApplications","http://soap.sforce.com/2006/04/metadata","CustomApplicationTranslation",0,-1,true))) {
        setCustomApplications((com.sforce.soap.metadata.CustomApplicationTranslation[])__typeMapper.readObject(__in, _lookupTypeInfo("customApplications", "http://soap.sforce.com/2006/04/metadata","customApplications","http://soap.sforce.com/2006/04/metadata","CustomApplicationTranslation",0,-1,true), com.sforce.soap.metadata.CustomApplicationTranslation[].class));
      }
    }

    private void writeFieldCustomApplications(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("customApplications", "http://soap.sforce.com/2006/04/metadata","customApplications","http://soap.sforce.com/2006/04/metadata","CustomApplicationTranslation",0,-1,true), customApplications, customApplications__is_set);
    }

    /**
     * element : customLabels of type {http://soap.sforce.com/2006/04/metadata}CustomLabelTranslation
     * java type: com.sforce.soap.metadata.CustomLabelTranslation[]
     */
    private boolean customLabels__is_set = false;

    private com.sforce.soap.metadata.CustomLabelTranslation[] customLabels = new com.sforce.soap.metadata.CustomLabelTranslation[0];

    public com.sforce.soap.metadata.CustomLabelTranslation[] getCustomLabels() {
      return customLabels;
    }

    public void setCustomLabels(com.sforce.soap.metadata.CustomLabelTranslation[] customLabels) {
      this.customLabels = customLabels;
      customLabels__is_set = true;
    }

    protected void setCustomLabels(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("customLabels", "http://soap.sforce.com/2006/04/metadata","customLabels","http://soap.sforce.com/2006/04/metadata","CustomLabelTranslation",0,-1,true))) {
        setCustomLabels((com.sforce.soap.metadata.CustomLabelTranslation[])__typeMapper.readObject(__in, _lookupTypeInfo("customLabels", "http://soap.sforce.com/2006/04/metadata","customLabels","http://soap.sforce.com/2006/04/metadata","CustomLabelTranslation",0,-1,true), com.sforce.soap.metadata.CustomLabelTranslation[].class));
      }
    }

    private void writeFieldCustomLabels(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("customLabels", "http://soap.sforce.com/2006/04/metadata","customLabels","http://soap.sforce.com/2006/04/metadata","CustomLabelTranslation",0,-1,true), customLabels, customLabels__is_set);
    }

    /**
     * element : customPageWebLinks of type {http://soap.sforce.com/2006/04/metadata}CustomPageWebLinkTranslation
     * java type: com.sforce.soap.metadata.CustomPageWebLinkTranslation[]
     */
    private boolean customPageWebLinks__is_set = false;

    private com.sforce.soap.metadata.CustomPageWebLinkTranslation[] customPageWebLinks = new com.sforce.soap.metadata.CustomPageWebLinkTranslation[0];

    public com.sforce.soap.metadata.CustomPageWebLinkTranslation[] getCustomPageWebLinks() {
      return customPageWebLinks;
    }

    public void setCustomPageWebLinks(com.sforce.soap.metadata.CustomPageWebLinkTranslation[] customPageWebLinks) {
      this.customPageWebLinks = customPageWebLinks;
      customPageWebLinks__is_set = true;
    }

    protected void setCustomPageWebLinks(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("customPageWebLinks", "http://soap.sforce.com/2006/04/metadata","customPageWebLinks","http://soap.sforce.com/2006/04/metadata","CustomPageWebLinkTranslation",0,-1,true))) {
        setCustomPageWebLinks((com.sforce.soap.metadata.CustomPageWebLinkTranslation[])__typeMapper.readObject(__in, _lookupTypeInfo("customPageWebLinks", "http://soap.sforce.com/2006/04/metadata","customPageWebLinks","http://soap.sforce.com/2006/04/metadata","CustomPageWebLinkTranslation",0,-1,true), com.sforce.soap.metadata.CustomPageWebLinkTranslation[].class));
      }
    }

    private void writeFieldCustomPageWebLinks(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("customPageWebLinks", "http://soap.sforce.com/2006/04/metadata","customPageWebLinks","http://soap.sforce.com/2006/04/metadata","CustomPageWebLinkTranslation",0,-1,true), customPageWebLinks, customPageWebLinks__is_set);
    }

    /**
     * element : customTabs of type {http://soap.sforce.com/2006/04/metadata}CustomTabTranslation
     * java type: com.sforce.soap.metadata.CustomTabTranslation[]
     */
    private boolean customTabs__is_set = false;

    private com.sforce.soap.metadata.CustomTabTranslation[] customTabs = new com.sforce.soap.metadata.CustomTabTranslation[0];

    public com.sforce.soap.metadata.CustomTabTranslation[] getCustomTabs() {
      return customTabs;
    }

    public void setCustomTabs(com.sforce.soap.metadata.CustomTabTranslation[] customTabs) {
      this.customTabs = customTabs;
      customTabs__is_set = true;
    }

    protected void setCustomTabs(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("customTabs", "http://soap.sforce.com/2006/04/metadata","customTabs","http://soap.sforce.com/2006/04/metadata","CustomTabTranslation",0,-1,true))) {
        setCustomTabs((com.sforce.soap.metadata.CustomTabTranslation[])__typeMapper.readObject(__in, _lookupTypeInfo("customTabs", "http://soap.sforce.com/2006/04/metadata","customTabs","http://soap.sforce.com/2006/04/metadata","CustomTabTranslation",0,-1,true), com.sforce.soap.metadata.CustomTabTranslation[].class));
      }
    }

    private void writeFieldCustomTabs(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("customTabs", "http://soap.sforce.com/2006/04/metadata","customTabs","http://soap.sforce.com/2006/04/metadata","CustomTabTranslation",0,-1,true), customTabs, customTabs__is_set);
    }

    /**
     * element : flowDefinitions of type {http://soap.sforce.com/2006/04/metadata}FlowDefinitionTranslation
     * java type: com.sforce.soap.metadata.FlowDefinitionTranslation[]
     */
    private boolean flowDefinitions__is_set = false;

    private com.sforce.soap.metadata.FlowDefinitionTranslation[] flowDefinitions = new com.sforce.soap.metadata.FlowDefinitionTranslation[0];

    public com.sforce.soap.metadata.FlowDefinitionTranslation[] getFlowDefinitions() {
      return flowDefinitions;
    }

    public void setFlowDefinitions(com.sforce.soap.metadata.FlowDefinitionTranslation[] flowDefinitions) {
      this.flowDefinitions = flowDefinitions;
      flowDefinitions__is_set = true;
    }

    protected void setFlowDefinitions(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("flowDefinitions", "http://soap.sforce.com/2006/04/metadata","flowDefinitions","http://soap.sforce.com/2006/04/metadata","FlowDefinitionTranslation",0,-1,true))) {
        setFlowDefinitions((com.sforce.soap.metadata.FlowDefinitionTranslation[])__typeMapper.readObject(__in, _lookupTypeInfo("flowDefinitions", "http://soap.sforce.com/2006/04/metadata","flowDefinitions","http://soap.sforce.com/2006/04/metadata","FlowDefinitionTranslation",0,-1,true), com.sforce.soap.metadata.FlowDefinitionTranslation[].class));
      }
    }

    private void writeFieldFlowDefinitions(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("flowDefinitions", "http://soap.sforce.com/2006/04/metadata","flowDefinitions","http://soap.sforce.com/2006/04/metadata","FlowDefinitionTranslation",0,-1,true), flowDefinitions, flowDefinitions__is_set);
    }

    /**
     * element : prompts of type {http://soap.sforce.com/2006/04/metadata}PromptTranslation
     * java type: com.sforce.soap.metadata.PromptTranslation[]
     */
    private boolean prompts__is_set = false;

    private com.sforce.soap.metadata.PromptTranslation[] prompts = new com.sforce.soap.metadata.PromptTranslation[0];

    public com.sforce.soap.metadata.PromptTranslation[] getPrompts() {
      return prompts;
    }

    public void setPrompts(com.sforce.soap.metadata.PromptTranslation[] prompts) {
      this.prompts = prompts;
      prompts__is_set = true;
    }

    protected void setPrompts(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("prompts", "http://soap.sforce.com/2006/04/metadata","prompts","http://soap.sforce.com/2006/04/metadata","PromptTranslation",0,-1,true))) {
        setPrompts((com.sforce.soap.metadata.PromptTranslation[])__typeMapper.readObject(__in, _lookupTypeInfo("prompts", "http://soap.sforce.com/2006/04/metadata","prompts","http://soap.sforce.com/2006/04/metadata","PromptTranslation",0,-1,true), com.sforce.soap.metadata.PromptTranslation[].class));
      }
    }

    private void writeFieldPrompts(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("prompts", "http://soap.sforce.com/2006/04/metadata","prompts","http://soap.sforce.com/2006/04/metadata","PromptTranslation",0,-1,true), prompts, prompts__is_set);
    }

    /**
     * element : quickActions of type {http://soap.sforce.com/2006/04/metadata}GlobalQuickActionTranslation
     * java type: com.sforce.soap.metadata.GlobalQuickActionTranslation[]
     */
    private boolean quickActions__is_set = false;

    private com.sforce.soap.metadata.GlobalQuickActionTranslation[] quickActions = new com.sforce.soap.metadata.GlobalQuickActionTranslation[0];

    public com.sforce.soap.metadata.GlobalQuickActionTranslation[] getQuickActions() {
      return quickActions;
    }

    public void setQuickActions(com.sforce.soap.metadata.GlobalQuickActionTranslation[] quickActions) {
      this.quickActions = quickActions;
      quickActions__is_set = true;
    }

    protected void setQuickActions(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("quickActions", "http://soap.sforce.com/2006/04/metadata","quickActions","http://soap.sforce.com/2006/04/metadata","GlobalQuickActionTranslation",0,-1,true))) {
        setQuickActions((com.sforce.soap.metadata.GlobalQuickActionTranslation[])__typeMapper.readObject(__in, _lookupTypeInfo("quickActions", "http://soap.sforce.com/2006/04/metadata","quickActions","http://soap.sforce.com/2006/04/metadata","GlobalQuickActionTranslation",0,-1,true), com.sforce.soap.metadata.GlobalQuickActionTranslation[].class));
      }
    }

    private void writeFieldQuickActions(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("quickActions", "http://soap.sforce.com/2006/04/metadata","quickActions","http://soap.sforce.com/2006/04/metadata","GlobalQuickActionTranslation",0,-1,true), quickActions, quickActions__is_set);
    }

    /**
     * element : reportTypes of type {http://soap.sforce.com/2006/04/metadata}ReportTypeTranslation
     * java type: com.sforce.soap.metadata.ReportTypeTranslation[]
     */
    private boolean reportTypes__is_set = false;

    private com.sforce.soap.metadata.ReportTypeTranslation[] reportTypes = new com.sforce.soap.metadata.ReportTypeTranslation[0];

    public com.sforce.soap.metadata.ReportTypeTranslation[] getReportTypes() {
      return reportTypes;
    }

    public void setReportTypes(com.sforce.soap.metadata.ReportTypeTranslation[] reportTypes) {
      this.reportTypes = reportTypes;
      reportTypes__is_set = true;
    }

    protected void setReportTypes(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("reportTypes", "http://soap.sforce.com/2006/04/metadata","reportTypes","http://soap.sforce.com/2006/04/metadata","ReportTypeTranslation",0,-1,true))) {
        setReportTypes((com.sforce.soap.metadata.ReportTypeTranslation[])__typeMapper.readObject(__in, _lookupTypeInfo("reportTypes", "http://soap.sforce.com/2006/04/metadata","reportTypes","http://soap.sforce.com/2006/04/metadata","ReportTypeTranslation",0,-1,true), com.sforce.soap.metadata.ReportTypeTranslation[].class));
      }
    }

    private void writeFieldReportTypes(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("reportTypes", "http://soap.sforce.com/2006/04/metadata","reportTypes","http://soap.sforce.com/2006/04/metadata","ReportTypeTranslation",0,-1,true), reportTypes, reportTypes__is_set);
    }

    /**
     * element : scontrols of type {http://soap.sforce.com/2006/04/metadata}ScontrolTranslation
     * java type: com.sforce.soap.metadata.ScontrolTranslation[]
     */
    private boolean scontrols__is_set = false;

    private com.sforce.soap.metadata.ScontrolTranslation[] scontrols = new com.sforce.soap.metadata.ScontrolTranslation[0];

    public com.sforce.soap.metadata.ScontrolTranslation[] getScontrols() {
      return scontrols;
    }

    public void setScontrols(com.sforce.soap.metadata.ScontrolTranslation[] scontrols) {
      this.scontrols = scontrols;
      scontrols__is_set = true;
    }

    protected void setScontrols(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("scontrols", "http://soap.sforce.com/2006/04/metadata","scontrols","http://soap.sforce.com/2006/04/metadata","ScontrolTranslation",0,-1,true))) {
        setScontrols((com.sforce.soap.metadata.ScontrolTranslation[])__typeMapper.readObject(__in, _lookupTypeInfo("scontrols", "http://soap.sforce.com/2006/04/metadata","scontrols","http://soap.sforce.com/2006/04/metadata","ScontrolTranslation",0,-1,true), com.sforce.soap.metadata.ScontrolTranslation[].class));
      }
    }

    private void writeFieldScontrols(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("scontrols", "http://soap.sforce.com/2006/04/metadata","scontrols","http://soap.sforce.com/2006/04/metadata","ScontrolTranslation",0,-1,true), scontrols, scontrols__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", "Translations");
      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("[Translations ");
      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 {
      writeFieldCustomApplications(__out, __typeMapper);
      writeFieldCustomLabels(__out, __typeMapper);
      writeFieldCustomPageWebLinks(__out, __typeMapper);
      writeFieldCustomTabs(__out, __typeMapper);
      writeFieldFlowDefinitions(__out, __typeMapper);
      writeFieldPrompts(__out, __typeMapper);
      writeFieldQuickActions(__out, __typeMapper);
      writeFieldReportTypes(__out, __typeMapper);
      writeFieldScontrols(__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 {
      setCustomApplications(__in, __typeMapper);
      setCustomLabels(__in, __typeMapper);
      setCustomPageWebLinks(__in, __typeMapper);
      setCustomTabs(__in, __typeMapper);
      setFlowDefinitions(__in, __typeMapper);
      setPrompts(__in, __typeMapper);
      setQuickActions(__in, __typeMapper);
      setReportTypes(__in, __typeMapper);
      setScontrols(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "customApplications", customApplications);
      toStringHelper(sb, "customLabels", customLabels);
      toStringHelper(sb, "customPageWebLinks", customPageWebLinks);
      toStringHelper(sb, "customTabs", customTabs);
      toStringHelper(sb, "flowDefinitions", flowDefinitions);
      toStringHelper(sb, "prompts", prompts);
      toStringHelper(sb, "quickActions", quickActions);
      toStringHelper(sb, "reportTypes", reportTypes);
      toStringHelper(sb, "scontrols", scontrols);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy