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

com.sforce.soap.partner.DescribePathAssistantStep Maven / Gradle / Ivy

The newest version!
package com.sforce.soap.partner;

/**
 * This is a generated class for the SObject Enterprise API.
 * Do not edit this file, as your changes will be lost.
 */
public class DescribePathAssistantStep implements com.sforce.ws.bind.XMLizable , IDescribePathAssistantStep{

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

    /* 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 : closed of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean closed__is_set = false;

    private boolean closed;

    @Override
    public boolean getClosed() {
      return closed;
    }

    @Override
    public boolean isClosed() {
      return closed;
    }

    @Override
    public void setClosed(boolean closed) {
      this.closed = closed;
      closed__is_set = true;
    }

    protected void setClosed(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, _lookupTypeInfo("closed", "urn:partner.soap.sforce.com","closed","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
        setClosed(__typeMapper.readBoolean(__in, _lookupTypeInfo("closed", "urn:partner.soap.sforce.com","closed","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
      }
    }

    private void writeFieldClosed(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("closed", "urn:partner.soap.sforce.com","closed","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), closed, closed__is_set);
    }

    /**
     * element : converted of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean converted__is_set = false;

    private boolean converted;

    @Override
    public boolean getConverted() {
      return converted;
    }

    @Override
    public boolean isConverted() {
      return converted;
    }

    @Override
    public void setConverted(boolean converted) {
      this.converted = converted;
      converted__is_set = true;
    }

    protected void setConverted(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, _lookupTypeInfo("converted", "urn:partner.soap.sforce.com","converted","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
        setConverted(__typeMapper.readBoolean(__in, _lookupTypeInfo("converted", "urn:partner.soap.sforce.com","converted","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
      }
    }

    private void writeFieldConverted(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("converted", "urn:partner.soap.sforce.com","converted","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), converted, converted__is_set);
    }

    /**
     * element : fields of type {urn:partner.soap.sforce.com}DescribePathAssistantField
     * java type: com.sforce.soap.partner.DescribePathAssistantField[]
     */
    private boolean fields__is_set = false;

    private com.sforce.soap.partner.DescribePathAssistantField[] fields = new com.sforce.soap.partner.DescribePathAssistantField[0];

    @Override
    public com.sforce.soap.partner.DescribePathAssistantField[] getFields() {
      return fields;
    }

    @Override
    public void setFields(com.sforce.soap.partner.IDescribePathAssistantField[] fields) {
      this.fields = castArray(com.sforce.soap.partner.DescribePathAssistantField.class, fields);
      fields__is_set = true;
    }

    protected void setFields(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("fields", "urn:partner.soap.sforce.com","fields","urn:partner.soap.sforce.com","DescribePathAssistantField",0,-1,true))) {
        setFields((com.sforce.soap.partner.DescribePathAssistantField[])__typeMapper.readObject(__in, _lookupTypeInfo("fields", "urn:partner.soap.sforce.com","fields","urn:partner.soap.sforce.com","DescribePathAssistantField",0,-1,true), com.sforce.soap.partner.DescribePathAssistantField[].class));
      }
    }

    private void writeFieldFields(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("fields", "urn:partner.soap.sforce.com","fields","urn:partner.soap.sforce.com","DescribePathAssistantField",0,-1,true), fields, fields__is_set);
    }

    /**
     * element : info of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean info__is_set = false;

    private java.lang.String info;

    @Override
    public java.lang.String getInfo() {
      return info;
    }

    @Override
    public void setInfo(java.lang.String info) {
      this.info = info;
      info__is_set = true;
    }

    protected void setInfo(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, _lookupTypeInfo("info", "urn:partner.soap.sforce.com","info","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
        setInfo(__typeMapper.readString(__in, _lookupTypeInfo("info", "urn:partner.soap.sforce.com","info","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
      }
    }

    private void writeFieldInfo(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("info", "urn:partner.soap.sforce.com","info","http://www.w3.org/2001/XMLSchema","string",1,1,true), info, info__is_set);
    }

    /**
     * element : layoutSection of type {urn:partner.soap.sforce.com}DescribeLayoutSection
     * java type: com.sforce.soap.partner.DescribeLayoutSection
     */
    private boolean layoutSection__is_set = false;

    private com.sforce.soap.partner.DescribeLayoutSection layoutSection;

    @Override
    public com.sforce.soap.partner.DescribeLayoutSection getLayoutSection() {
      return layoutSection;
    }

    @Override
    public void setLayoutSection(com.sforce.soap.partner.IDescribeLayoutSection layoutSection) {
      this.layoutSection = (com.sforce.soap.partner.DescribeLayoutSection)layoutSection;
      layoutSection__is_set = true;
    }

    protected void setLayoutSection(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, _lookupTypeInfo("layoutSection", "urn:partner.soap.sforce.com","layoutSection","urn:partner.soap.sforce.com","DescribeLayoutSection",1,1,true))) {
        setLayoutSection((com.sforce.soap.partner.DescribeLayoutSection)__typeMapper.readObject(__in, _lookupTypeInfo("layoutSection", "urn:partner.soap.sforce.com","layoutSection","urn:partner.soap.sforce.com","DescribeLayoutSection",1,1,true), com.sforce.soap.partner.DescribeLayoutSection.class));
      }
    }

    private void writeFieldLayoutSection(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("layoutSection", "urn:partner.soap.sforce.com","layoutSection","urn:partner.soap.sforce.com","DescribeLayoutSection",1,1,true), layoutSection, layoutSection__is_set);
    }

    /**
     * element : picklistLabel of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean picklistLabel__is_set = false;

    private java.lang.String picklistLabel;

    @Override
    public java.lang.String getPicklistLabel() {
      return picklistLabel;
    }

    @Override
    public void setPicklistLabel(java.lang.String picklistLabel) {
      this.picklistLabel = picklistLabel;
      picklistLabel__is_set = true;
    }

    protected void setPicklistLabel(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, _lookupTypeInfo("picklistLabel", "urn:partner.soap.sforce.com","picklistLabel","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
        setPicklistLabel(__typeMapper.readString(__in, _lookupTypeInfo("picklistLabel", "urn:partner.soap.sforce.com","picklistLabel","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
      }
    }

    private void writeFieldPicklistLabel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("picklistLabel", "urn:partner.soap.sforce.com","picklistLabel","http://www.w3.org/2001/XMLSchema","string",1,1,true), picklistLabel, picklistLabel__is_set);
    }

    /**
     * element : picklistValue of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean picklistValue__is_set = false;

    private java.lang.String picklistValue;

    @Override
    public java.lang.String getPicklistValue() {
      return picklistValue;
    }

    @Override
    public void setPicklistValue(java.lang.String picklistValue) {
      this.picklistValue = picklistValue;
      picklistValue__is_set = true;
    }

    protected void setPicklistValue(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, _lookupTypeInfo("picklistValue", "urn:partner.soap.sforce.com","picklistValue","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
        setPicklistValue(__typeMapper.readString(__in, _lookupTypeInfo("picklistValue", "urn:partner.soap.sforce.com","picklistValue","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
      }
    }

    private void writeFieldPicklistValue(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("picklistValue", "urn:partner.soap.sforce.com","picklistValue","http://www.w3.org/2001/XMLSchema","string",1,1,true), picklistValue, picklistValue__is_set);
    }

    /**
     * element : won of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean won__is_set = false;

    private boolean won;

    @Override
    public boolean getWon() {
      return won;
    }

    @Override
    public boolean isWon() {
      return won;
    }

    @Override
    public void setWon(boolean won) {
      this.won = won;
      won__is_set = true;
    }

    protected void setWon(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, _lookupTypeInfo("won", "urn:partner.soap.sforce.com","won","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
        setWon(__typeMapper.readBoolean(__in, _lookupTypeInfo("won", "urn:partner.soap.sforce.com","won","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
      }
    }

    private void writeFieldWon(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("won", "urn:partner.soap.sforce.com","won","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), won, won__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());
      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 {
       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 {
        loadFields1(__in, __typeMapper);
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[DescribePathAssistantStep ");
      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 {
      writeFieldClosed(__out, __typeMapper);
      writeFieldConverted(__out, __typeMapper);
      writeFieldFields(__out, __typeMapper);
      writeFieldInfo(__out, __typeMapper);
      writeFieldLayoutSection(__out, __typeMapper);
      writeFieldPicklistLabel(__out, __typeMapper);
      writeFieldPicklistValue(__out, __typeMapper);
      writeFieldWon(__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 {
      setClosed(__in, __typeMapper);
      setConverted(__in, __typeMapper);
      setFields(__in, __typeMapper);
      setInfo(__in, __typeMapper);
      setLayoutSection(__in, __typeMapper);
      setPicklistLabel(__in, __typeMapper);
      setPicklistValue(__in, __typeMapper);
      setWon(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "closed", closed);
      toStringHelper(sb, "converted", converted);
      toStringHelper(sb, "fields", fields);
      toStringHelper(sb, "info", info);
      toStringHelper(sb, "layoutSection", layoutSection);
      toStringHelper(sb, "picklistLabel", picklistLabel);
      toStringHelper(sb, "picklistValue", picklistValue);
      toStringHelper(sb, "won", won);
    }


    @SuppressWarnings("unchecked")
    private  T[] castArray(Class clazz, U[] array) {
        if (array == null) {
            return null;
        }
        T[] retVal = (T[]) java.lang.reflect.Array.newInstance(clazz, array.length);
        for (int i=0; i < array.length; i++) {
            retVal[i] = (T)array[i];
        }

        return retVal;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy