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

com.sforce.soap.tooling.HeapAddress 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 HeapAddress implements com.sforce.ws.bind.XMLizable {

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

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

    private boolean address__is_set = false;

    private java.lang.String address;

    public java.lang.String getAddress() {
      return address;
    }

    public void setAddress(java.lang.String address) {
      this.address = address;
      address__is_set = true;
    }

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

    private boolean size__is_set = false;

    private int size;

    public int getSize() {
      return size;
    }

    public void setSize(int size) {
      this.size = size;
      size__is_set = true;
    }

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

    private boolean symbols__is_set = false;

    private java.lang.String[] symbols = new java.lang.String[0];

    public java.lang.String[] getSymbols() {
      return symbols;
    }

    public void setSymbols(java.lang.String[] symbols) {
      this.symbols = symbols;
      symbols__is_set = true;
    }

    /**
     * element : value of type {urn:tooling.soap.sforce.com}StateValue
     * java type: com.sforce.soap.tooling.StateValue
     */
    private static final com.sforce.ws.bind.TypeInfo value__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","value","urn:tooling.soap.sforce.com","StateValue",1,1,true);

    private boolean value__is_set = false;

    private com.sforce.soap.tooling.StateValue value;

    public com.sforce.soap.tooling.StateValue getValue() {
      return value;
    }

    public void setValue(com.sforce.soap.tooling.StateValue value) {
      this.value = value;
      value__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, address__typeInfo, address, address__is_set);
       __typeMapper.writeInt(__out, size__typeInfo, size, size__is_set);
       __typeMapper.writeObject(__out, symbols__typeInfo, symbols, symbols__is_set);
       __typeMapper.writeObject(__out, value__typeInfo, value, value__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, address__typeInfo)) {
            setAddress(__typeMapper.readString(__in, address__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.verifyElement(__in, size__typeInfo)) {
            setSize((int)__typeMapper.readInt(__in, size__typeInfo, int.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, symbols__typeInfo)) {
            setSymbols((java.lang.String[])__typeMapper.readObject(__in, symbols__typeInfo, java.lang.String[].class));
        }
        __in.peekTag();
        if (__typeMapper.verifyElement(__in, value__typeInfo)) {
            setValue((com.sforce.soap.tooling.StateValue)__typeMapper.readObject(__in, value__typeInfo, com.sforce.soap.tooling.StateValue.class));
        }
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[HeapAddress ");
      sb.append(" address=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(address)+"'\n");
      sb.append(" size=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(size)+"'\n");
      sb.append(" symbols=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(symbols)+"'\n");
      sb.append(" value=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(value)+"'\n");
      sb.append("]\n");
      return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy