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

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

There is a newer version: 7.4.3.112-ga112
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 CustomDataTypeTranslation implements com.sforce.ws.bind.XMLizable {

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

    /**
     * element : components of type {http://soap.sforce.com/2006/04/metadata}CustomDataTypeComponentTranslation
     * java type: com.sforce.soap.metadata.CustomDataTypeComponentTranslation[]
     */
    private static final com.sforce.ws.bind.TypeInfo components__typeInfo =
      new com.sforce.ws.bind.TypeInfo("http://soap.sforce.com/2006/04/metadata","components","http://soap.sforce.com/2006/04/metadata","CustomDataTypeComponentTranslation",0,-1,true);

    private boolean components__is_set = false;

    private com.sforce.soap.metadata.CustomDataTypeComponentTranslation[] components = new com.sforce.soap.metadata.CustomDataTypeComponentTranslation[0];

    public com.sforce.soap.metadata.CustomDataTypeComponentTranslation[] getComponents() {
      return components;
    }

    public void setComponents(com.sforce.soap.metadata.CustomDataTypeComponentTranslation[] components) {
      this.components = components;
      components__is_set = true;
    }

    protected void setComponents(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, components__typeInfo)) {
        setComponents((com.sforce.soap.metadata.CustomDataTypeComponentTranslation[])__typeMapper.readObject(__in, components__typeInfo, com.sforce.soap.metadata.CustomDataTypeComponentTranslation[].class));
      }
    }

    /**
     * element : customDataTypeName of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo customDataTypeName__typeInfo =
      new com.sforce.ws.bind.TypeInfo("http://soap.sforce.com/2006/04/metadata","customDataTypeName","http://www.w3.org/2001/XMLSchema","string",1,1,true);

    private boolean customDataTypeName__is_set = false;

    private java.lang.String customDataTypeName;

    public java.lang.String getCustomDataTypeName() {
      return customDataTypeName;
    }

    public void setCustomDataTypeName(java.lang.String customDataTypeName) {
      this.customDataTypeName = customDataTypeName;
      customDataTypeName__is_set = true;
    }

    protected void setCustomDataTypeName(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, customDataTypeName__typeInfo)) {
        setCustomDataTypeName(__typeMapper.readString(__in, customDataTypeName__typeInfo, java.lang.String.class));
      }
    }

    /**
     * element : description of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo description__typeInfo =
      new com.sforce.ws.bind.TypeInfo("http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true);

    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, description__typeInfo)) {
        setDescription(__typeMapper.readString(__in, description__typeInfo, java.lang.String.class));
      }
    }

    /**
     * element : label of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo label__typeInfo =
      new com.sforce.ws.bind.TypeInfo("http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",0,1,true);

    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, label__typeInfo)) {
        setLabel(__typeMapper.readString(__in, label__typeInfo, java.lang.String.class));
      }
    }

    /**
     */
    @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 {
       __typeMapper.writeObject(__out, components__typeInfo, components, components__is_set);
       __typeMapper.writeString(__out, customDataTypeName__typeInfo, customDataTypeName, customDataTypeName__is_set);
       __typeMapper.writeString(__out, description__typeInfo, description, description__is_set);
       __typeMapper.writeString(__out, label__typeInfo, label, label__is_set);
    }

    @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 {
        setComponents(__in, __typeMapper);
        setCustomDataTypeName(__in, __typeMapper);
        setDescription(__in, __typeMapper);
        setLabel(__in, __typeMapper);
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[CustomDataTypeTranslation ");
      toString1(sb);

      sb.append("]\n");
      return sb.toString();
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "components", components);
      toStringHelper(sb, "customDataTypeName", customDataTypeName);
      toStringHelper(sb, "description", description);
      toStringHelper(sb, "label", label);

    }


    private void toStringHelper(StringBuilder sb, String name, Object value) {
      sb.append(' ').append(name).append("='").append(com.sforce.ws.util.Verbose.toString(value)).append("'\n");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy