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

com.sforce.soap.tooling.Upsert_element Maven / Gradle / Ivy

There is a newer version: 30.0.0
Show newest version
package com.sforce.soap.tooling;

/**
 * Generated by ComplexTypeCodeGenerator.java. Please do not edit.
 */
public class Upsert_element implements com.sforce.ws.bind.XMLizable {

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

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

    private boolean fieldName__is_set = false;

    private java.lang.String fieldName;

    public java.lang.String getFieldName() {
      return fieldName;
    }

    public void setFieldName(java.lang.String fieldName) {
      this.fieldName = fieldName;
      fieldName__is_set = true;
    }

    /**
     * element : entities of type {urn:tooling.soap.sforce.com}sObject
     * java type: com.sforce.soap.tooling.SObject[]
     */
    private static final com.sforce.ws.bind.TypeInfo entities__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","entities","urn:tooling.soap.sforce.com","sObject",0,-1,true);

    private boolean entities__is_set = false;

    private com.sforce.soap.tooling.SObject[] entities = new com.sforce.soap.tooling.SObject[0];

    public com.sforce.soap.tooling.SObject[] getEntities() {
      return entities;
    }

    public void setEntities(com.sforce.soap.tooling.SObject[] entities) {
      this.entities = entities;
      entities__is_set = true;
    }

    /**
     */
    @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.writeString(__out, fieldName__typeInfo, fieldName, fieldName__is_set);
       __typeMapper.writeObject(__out, entities__typeInfo, entities, entities__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 {
        __in.peekTag();
        if (__typeMapper.verifyElement(__in, fieldName__typeInfo)) {
            setFieldName(__typeMapper.readString(__in, fieldName__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, entities__typeInfo)) {
            setEntities((com.sforce.soap.tooling.SObject[])__typeMapper.readObject(__in, entities__typeInfo, com.sforce.soap.tooling.SObject[].class));
        }
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[Upsert_element ");
      sb.append(" fieldName=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(fieldName)+"'\n");
      sb.append(" entities=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(entities)+"'\n");
      sb.append("]\n");
      return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy