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

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

package com.sforce.soap.tooling;

/**
 * Generated by ComplexTypeCodeGenerator.java. Please do not edit.
 */
public class MapValue extends com.sforce.soap.tooling.StateValue {

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

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

    private boolean entry__is_set = false;

    private com.sforce.soap.tooling.MapEntry[] entry = new com.sforce.soap.tooling.MapEntry[0];

    public com.sforce.soap.tooling.MapEntry[] getEntry() {
      return entry;
    }

    public void setEntry(com.sforce.soap.tooling.MapEntry[] entry) {
      this.entry = entry;
      entry__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());
      __typeMapper.writeXsiType(__out, "urn:tooling.soap.sforce.com", "MapValue");
      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);
       __typeMapper.writeObject(__out, entry__typeInfo, entry, entry__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 {
        super.loadFields(__in, __typeMapper);
        __in.peekTag();
        if (__typeMapper.isElement(__in, entry__typeInfo)) {
            setEntry((com.sforce.soap.tooling.MapEntry[])__typeMapper.readObject(__in, entry__typeInfo, com.sforce.soap.tooling.MapEntry[].class));
        }
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy