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

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

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

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

    /**
     * element : buttonLayoutSection of type {urn:partner.soap.sforce.com}DescribeLayoutButtonSection
     * java type: com.sforce.soap.partner.DescribeLayoutButtonSection
     */
    private static final com.sforce.ws.bind.TypeInfo buttonLayoutSection__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:partner.soap.sforce.com","buttonLayoutSection","urn:partner.soap.sforce.com","DescribeLayoutButtonSection",0,1,true);

    private boolean buttonLayoutSection__is_set = false;

    private com.sforce.soap.partner.DescribeLayoutButtonSection buttonLayoutSection;

    @Override
    public com.sforce.soap.partner.DescribeLayoutButtonSection getButtonLayoutSection() {
      return buttonLayoutSection;
    }

    @Override
    public void setButtonLayoutSection(com.sforce.soap.partner.IDescribeLayoutButtonSection buttonLayoutSection) {
      this.buttonLayoutSection = (com.sforce.soap.partner.DescribeLayoutButtonSection)buttonLayoutSection;
      buttonLayoutSection__is_set = true;
    }

    protected void setButtonLayoutSection(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, buttonLayoutSection__typeInfo)) {
        setButtonLayoutSection((com.sforce.soap.partner.DescribeLayoutButtonSection)__typeMapper.readObject(__in, buttonLayoutSection__typeInfo, com.sforce.soap.partner.DescribeLayoutButtonSection.class));
      }
    }

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

    private boolean detailLayoutSections__is_set = false;

    private com.sforce.soap.partner.DescribeLayoutSection[] detailLayoutSections = new com.sforce.soap.partner.DescribeLayoutSection[0];

    @Override
    public com.sforce.soap.partner.DescribeLayoutSection[] getDetailLayoutSections() {
      return detailLayoutSections;
    }

    @Override
    public void setDetailLayoutSections(com.sforce.soap.partner.IDescribeLayoutSection[] detailLayoutSections) {
      this.detailLayoutSections = castArray(com.sforce.soap.partner.DescribeLayoutSection.class, detailLayoutSections);
      detailLayoutSections__is_set = true;
    }

    protected void setDetailLayoutSections(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, detailLayoutSections__typeInfo)) {
        setDetailLayoutSections((com.sforce.soap.partner.DescribeLayoutSection[])__typeMapper.readObject(__in, detailLayoutSections__typeInfo, com.sforce.soap.partner.DescribeLayoutSection[].class));
      }
    }

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

    private boolean editLayoutSections__is_set = false;

    private com.sforce.soap.partner.DescribeLayoutSection[] editLayoutSections = new com.sforce.soap.partner.DescribeLayoutSection[0];

    @Override
    public com.sforce.soap.partner.DescribeLayoutSection[] getEditLayoutSections() {
      return editLayoutSections;
    }

    @Override
    public void setEditLayoutSections(com.sforce.soap.partner.IDescribeLayoutSection[] editLayoutSections) {
      this.editLayoutSections = castArray(com.sforce.soap.partner.DescribeLayoutSection.class, editLayoutSections);
      editLayoutSections__is_set = true;
    }

    protected void setEditLayoutSections(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, editLayoutSections__typeInfo)) {
        setEditLayoutSections((com.sforce.soap.partner.DescribeLayoutSection[])__typeMapper.readObject(__in, editLayoutSections__typeInfo, com.sforce.soap.partner.DescribeLayoutSection[].class));
      }
    }

    /**
     * element : feedView of type {urn:partner.soap.sforce.com}DescribeLayoutFeedView
     * java type: com.sforce.soap.partner.DescribeLayoutFeedView
     */
    private static final com.sforce.ws.bind.TypeInfo feedView__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:partner.soap.sforce.com","feedView","urn:partner.soap.sforce.com","DescribeLayoutFeedView",0,1,true);

    private boolean feedView__is_set = false;

    private com.sforce.soap.partner.DescribeLayoutFeedView feedView;

    @Override
    public com.sforce.soap.partner.DescribeLayoutFeedView getFeedView() {
      return feedView;
    }

    @Override
    public void setFeedView(com.sforce.soap.partner.IDescribeLayoutFeedView feedView) {
      this.feedView = (com.sforce.soap.partner.DescribeLayoutFeedView)feedView;
      feedView__is_set = true;
    }

    protected void setFeedView(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, feedView__typeInfo)) {
        setFeedView((com.sforce.soap.partner.DescribeLayoutFeedView)__typeMapper.readObject(__in, feedView__typeInfo, com.sforce.soap.partner.DescribeLayoutFeedView.class));
      }
    }

    /**
     * element : highlightsPanelLayoutSection of type {urn:partner.soap.sforce.com}DescribeLayoutSection
     * java type: com.sforce.soap.partner.DescribeLayoutSection
     */
    private static final com.sforce.ws.bind.TypeInfo highlightsPanelLayoutSection__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:partner.soap.sforce.com","highlightsPanelLayoutSection","urn:partner.soap.sforce.com","DescribeLayoutSection",0,1,true);

    private boolean highlightsPanelLayoutSection__is_set = false;

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

    @Override
    public com.sforce.soap.partner.DescribeLayoutSection getHighlightsPanelLayoutSection() {
      return highlightsPanelLayoutSection;
    }

    @Override
    public void setHighlightsPanelLayoutSection(com.sforce.soap.partner.IDescribeLayoutSection highlightsPanelLayoutSection) {
      this.highlightsPanelLayoutSection = (com.sforce.soap.partner.DescribeLayoutSection)highlightsPanelLayoutSection;
      highlightsPanelLayoutSection__is_set = true;
    }

    protected void setHighlightsPanelLayoutSection(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, highlightsPanelLayoutSection__typeInfo)) {
        setHighlightsPanelLayoutSection((com.sforce.soap.partner.DescribeLayoutSection)__typeMapper.readObject(__in, highlightsPanelLayoutSection__typeInfo, com.sforce.soap.partner.DescribeLayoutSection.class));
      }
    }

    /**
     * element : id of type {urn:partner.soap.sforce.com}ID
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo id__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:partner.soap.sforce.com","id","urn:partner.soap.sforce.com","ID",1,1,true);

    private boolean id__is_set = false;

    private java.lang.String id;

    @Override
    public java.lang.String getId() {
      return id;
    }

    @Override
    public void setId(java.lang.String id) {
      this.id = id;
      id__is_set = true;
    }

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

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

    private boolean multirowEditLayoutSections__is_set = false;

    private com.sforce.soap.partner.DescribeLayoutSection[] multirowEditLayoutSections = new com.sforce.soap.partner.DescribeLayoutSection[0];

    @Override
    public com.sforce.soap.partner.DescribeLayoutSection[] getMultirowEditLayoutSections() {
      return multirowEditLayoutSections;
    }

    @Override
    public void setMultirowEditLayoutSections(com.sforce.soap.partner.IDescribeLayoutSection[] multirowEditLayoutSections) {
      this.multirowEditLayoutSections = castArray(com.sforce.soap.partner.DescribeLayoutSection.class, multirowEditLayoutSections);
      multirowEditLayoutSections__is_set = true;
    }

    protected void setMultirowEditLayoutSections(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, multirowEditLayoutSections__typeInfo)) {
        setMultirowEditLayoutSections((com.sforce.soap.partner.DescribeLayoutSection[])__typeMapper.readObject(__in, multirowEditLayoutSections__typeInfo, com.sforce.soap.partner.DescribeLayoutSection[].class));
      }
    }

    /**
     * element : quickActionList of type {urn:partner.soap.sforce.com}DescribeQuickActionListResult
     * java type: com.sforce.soap.partner.DescribeQuickActionListResult
     */
    private static final com.sforce.ws.bind.TypeInfo quickActionList__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:partner.soap.sforce.com","quickActionList","urn:partner.soap.sforce.com","DescribeQuickActionListResult",0,1,true);

    private boolean quickActionList__is_set = false;

    private com.sforce.soap.partner.DescribeQuickActionListResult quickActionList;

    @Override
    public com.sforce.soap.partner.DescribeQuickActionListResult getQuickActionList() {
      return quickActionList;
    }

    @Override
    public void setQuickActionList(com.sforce.soap.partner.IDescribeQuickActionListResult quickActionList) {
      this.quickActionList = (com.sforce.soap.partner.DescribeQuickActionListResult)quickActionList;
      quickActionList__is_set = true;
    }

    protected void setQuickActionList(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, quickActionList__typeInfo)) {
        setQuickActionList((com.sforce.soap.partner.DescribeQuickActionListResult)__typeMapper.readObject(__in, quickActionList__typeInfo, com.sforce.soap.partner.DescribeQuickActionListResult.class));
      }
    }

    /**
     * element : relatedContent of type {urn:partner.soap.sforce.com}RelatedContent
     * java type: com.sforce.soap.partner.RelatedContent
     */
    private static final com.sforce.ws.bind.TypeInfo relatedContent__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:partner.soap.sforce.com","relatedContent","urn:partner.soap.sforce.com","RelatedContent",0,1,true);

    private boolean relatedContent__is_set = false;

    private com.sforce.soap.partner.RelatedContent relatedContent;

    @Override
    public com.sforce.soap.partner.RelatedContent getRelatedContent() {
      return relatedContent;
    }

    @Override
    public void setRelatedContent(com.sforce.soap.partner.IRelatedContent relatedContent) {
      this.relatedContent = (com.sforce.soap.partner.RelatedContent)relatedContent;
      relatedContent__is_set = true;
    }

    protected void setRelatedContent(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, relatedContent__typeInfo)) {
        setRelatedContent((com.sforce.soap.partner.RelatedContent)__typeMapper.readObject(__in, relatedContent__typeInfo, com.sforce.soap.partner.RelatedContent.class));
      }
    }

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

    private boolean relatedLists__is_set = false;

    private com.sforce.soap.partner.RelatedList[] relatedLists = new com.sforce.soap.partner.RelatedList[0];

    @Override
    public com.sforce.soap.partner.RelatedList[] getRelatedLists() {
      return relatedLists;
    }

    @Override
    public void setRelatedLists(com.sforce.soap.partner.IRelatedList[] relatedLists) {
      this.relatedLists = castArray(com.sforce.soap.partner.RelatedList.class, relatedLists);
      relatedLists__is_set = true;
    }

    protected void setRelatedLists(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, relatedLists__typeInfo)) {
        setRelatedLists((com.sforce.soap.partner.RelatedList[])__typeMapper.readObject(__in, relatedLists__typeInfo, com.sforce.soap.partner.RelatedList[].class));
      }
    }

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

    private boolean saveOptions__is_set = false;

    private com.sforce.soap.partner.DescribeLayoutSaveOption[] saveOptions = new com.sforce.soap.partner.DescribeLayoutSaveOption[0];

    @Override
    public com.sforce.soap.partner.DescribeLayoutSaveOption[] getSaveOptions() {
      return saveOptions;
    }

    @Override
    public void setSaveOptions(com.sforce.soap.partner.IDescribeLayoutSaveOption[] saveOptions) {
      this.saveOptions = castArray(com.sforce.soap.partner.DescribeLayoutSaveOption.class, saveOptions);
      saveOptions__is_set = true;
    }

    protected void setSaveOptions(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, saveOptions__typeInfo)) {
        setSaveOptions((com.sforce.soap.partner.DescribeLayoutSaveOption[])__typeMapper.readObject(__in, saveOptions__typeInfo, com.sforce.soap.partner.DescribeLayoutSaveOption[].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, buttonLayoutSection__typeInfo, buttonLayoutSection, buttonLayoutSection__is_set);
       __typeMapper.writeObject(__out, detailLayoutSections__typeInfo, detailLayoutSections, detailLayoutSections__is_set);
       __typeMapper.writeObject(__out, editLayoutSections__typeInfo, editLayoutSections, editLayoutSections__is_set);
       __typeMapper.writeObject(__out, feedView__typeInfo, feedView, feedView__is_set);
       __typeMapper.writeObject(__out, highlightsPanelLayoutSection__typeInfo, highlightsPanelLayoutSection, highlightsPanelLayoutSection__is_set);
       __typeMapper.writeString(__out, id__typeInfo, id, id__is_set);
       __typeMapper.writeObject(__out, multirowEditLayoutSections__typeInfo, multirowEditLayoutSections, multirowEditLayoutSections__is_set);
       __typeMapper.writeObject(__out, quickActionList__typeInfo, quickActionList, quickActionList__is_set);
       __typeMapper.writeObject(__out, relatedContent__typeInfo, relatedContent, relatedContent__is_set);
       __typeMapper.writeObject(__out, relatedLists__typeInfo, relatedLists, relatedLists__is_set);
       __typeMapper.writeObject(__out, saveOptions__typeInfo, saveOptions, saveOptions__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 {
        setButtonLayoutSection(__in, __typeMapper);
        setDetailLayoutSections(__in, __typeMapper);
        setEditLayoutSections(__in, __typeMapper);
        setFeedView(__in, __typeMapper);
        setHighlightsPanelLayoutSection(__in, __typeMapper);
        setId(__in, __typeMapper);
        setMultirowEditLayoutSections(__in, __typeMapper);
        setQuickActionList(__in, __typeMapper);
        setRelatedContent(__in, __typeMapper);
        setRelatedLists(__in, __typeMapper);
        setSaveOptions(__in, __typeMapper);
    }

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

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

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "buttonLayoutSection", buttonLayoutSection);
      toStringHelper(sb, "detailLayoutSections", detailLayoutSections);
      toStringHelper(sb, "editLayoutSections", editLayoutSections);
      toStringHelper(sb, "feedView", feedView);
      toStringHelper(sb, "highlightsPanelLayoutSection", highlightsPanelLayoutSection);
      toStringHelper(sb, "id", id);
      toStringHelper(sb, "multirowEditLayoutSections", multirowEditLayoutSections);
      toStringHelper(sb, "quickActionList", quickActionList);
      toStringHelper(sb, "relatedContent", relatedContent);
      toStringHelper(sb, "relatedLists", relatedLists);
      toStringHelper(sb, "saveOptions", saveOptions);

    }


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

    @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 - 2024 Weber Informatics LLC | Privacy Policy