datai/docs/reference-code/com/sforce/soap/partner/DescribeLayout.java

434 lines
23 KiB
Java
Raw Normal View History

2026-01-22 10:52:30 +08:00
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() {}
/* Cache the typeInfo instead of declaring static fields throughout*/
private transient java.util.Map<String, com.sforce.ws.bind.TypeInfo> typeInfoCache = new java.util.HashMap<String, com.sforce.ws.bind.TypeInfo>();
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 : buttonLayoutSection of type {urn:partner.soap.sforce.com}DescribeLayoutButtonSection
* java type: com.sforce.soap.partner.DescribeLayoutButtonSection
*/
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, _lookupTypeInfo("buttonLayoutSection", "urn:partner.soap.sforce.com","buttonLayoutSection","urn:partner.soap.sforce.com","DescribeLayoutButtonSection",0,1,true))) {
setButtonLayoutSection((com.sforce.soap.partner.DescribeLayoutButtonSection)__typeMapper.readObject(__in, _lookupTypeInfo("buttonLayoutSection", "urn:partner.soap.sforce.com","buttonLayoutSection","urn:partner.soap.sforce.com","DescribeLayoutButtonSection",0,1,true), com.sforce.soap.partner.DescribeLayoutButtonSection.class));
}
}
private void writeFieldButtonLayoutSection(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("buttonLayoutSection", "urn:partner.soap.sforce.com","buttonLayoutSection","urn:partner.soap.sforce.com","DescribeLayoutButtonSection",0,1,true), buttonLayoutSection, buttonLayoutSection__is_set);
}
/**
* element : detailLayoutSections of type {urn:partner.soap.sforce.com}DescribeLayoutSection
* java type: com.sforce.soap.partner.DescribeLayoutSection[]
*/
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, _lookupTypeInfo("detailLayoutSections", "urn:partner.soap.sforce.com","detailLayoutSections","urn:partner.soap.sforce.com","DescribeLayoutSection",0,-1,true))) {
setDetailLayoutSections((com.sforce.soap.partner.DescribeLayoutSection[])__typeMapper.readObject(__in, _lookupTypeInfo("detailLayoutSections", "urn:partner.soap.sforce.com","detailLayoutSections","urn:partner.soap.sforce.com","DescribeLayoutSection",0,-1,true), com.sforce.soap.partner.DescribeLayoutSection[].class));
}
}
private void writeFieldDetailLayoutSections(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("detailLayoutSections", "urn:partner.soap.sforce.com","detailLayoutSections","urn:partner.soap.sforce.com","DescribeLayoutSection",0,-1,true), detailLayoutSections, detailLayoutSections__is_set);
}
/**
* element : editLayoutSections of type {urn:partner.soap.sforce.com}DescribeLayoutSection
* java type: com.sforce.soap.partner.DescribeLayoutSection[]
*/
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, _lookupTypeInfo("editLayoutSections", "urn:partner.soap.sforce.com","editLayoutSections","urn:partner.soap.sforce.com","DescribeLayoutSection",0,-1,true))) {
setEditLayoutSections((com.sforce.soap.partner.DescribeLayoutSection[])__typeMapper.readObject(__in, _lookupTypeInfo("editLayoutSections", "urn:partner.soap.sforce.com","editLayoutSections","urn:partner.soap.sforce.com","DescribeLayoutSection",0,-1,true), com.sforce.soap.partner.DescribeLayoutSection[].class));
}
}
private void writeFieldEditLayoutSections(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("editLayoutSections", "urn:partner.soap.sforce.com","editLayoutSections","urn:partner.soap.sforce.com","DescribeLayoutSection",0,-1,true), editLayoutSections, editLayoutSections__is_set);
}
/**
* element : feedView of type {urn:partner.soap.sforce.com}DescribeLayoutFeedView
* java type: com.sforce.soap.partner.DescribeLayoutFeedView
*/
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, _lookupTypeInfo("feedView", "urn:partner.soap.sforce.com","feedView","urn:partner.soap.sforce.com","DescribeLayoutFeedView",0,1,true))) {
setFeedView((com.sforce.soap.partner.DescribeLayoutFeedView)__typeMapper.readObject(__in, _lookupTypeInfo("feedView", "urn:partner.soap.sforce.com","feedView","urn:partner.soap.sforce.com","DescribeLayoutFeedView",0,1,true), com.sforce.soap.partner.DescribeLayoutFeedView.class));
}
}
private void writeFieldFeedView(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("feedView", "urn:partner.soap.sforce.com","feedView","urn:partner.soap.sforce.com","DescribeLayoutFeedView",0,1,true), feedView, feedView__is_set);
}
/**
* element : highlightsPanelLayoutSection of type {urn:partner.soap.sforce.com}DescribeLayoutSection
* java type: com.sforce.soap.partner.DescribeLayoutSection
*/
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, _lookupTypeInfo("highlightsPanelLayoutSection", "urn:partner.soap.sforce.com","highlightsPanelLayoutSection","urn:partner.soap.sforce.com","DescribeLayoutSection",0,1,true))) {
setHighlightsPanelLayoutSection((com.sforce.soap.partner.DescribeLayoutSection)__typeMapper.readObject(__in, _lookupTypeInfo("highlightsPanelLayoutSection", "urn:partner.soap.sforce.com","highlightsPanelLayoutSection","urn:partner.soap.sforce.com","DescribeLayoutSection",0,1,true), com.sforce.soap.partner.DescribeLayoutSection.class));
}
}
private void writeFieldHighlightsPanelLayoutSection(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("highlightsPanelLayoutSection", "urn:partner.soap.sforce.com","highlightsPanelLayoutSection","urn:partner.soap.sforce.com","DescribeLayoutSection",0,1,true), highlightsPanelLayoutSection, highlightsPanelLayoutSection__is_set);
}
/**
* element : id of type {urn:partner.soap.sforce.com}ID
* java type: java.lang.String
*/
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, _lookupTypeInfo("id", "urn:partner.soap.sforce.com","id","urn:partner.soap.sforce.com","ID",1,1,true))) {
setId(__typeMapper.readString(__in, _lookupTypeInfo("id", "urn:partner.soap.sforce.com","id","urn:partner.soap.sforce.com","ID",1,1,true), java.lang.String.class));
}
}
private void writeFieldId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("id", "urn:partner.soap.sforce.com","id","urn:partner.soap.sforce.com","ID",1,1,true), id, id__is_set);
}
/**
* element : quickActionList of type {urn:partner.soap.sforce.com}DescribeQuickActionListResult
* java type: com.sforce.soap.partner.DescribeQuickActionListResult
*/
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, _lookupTypeInfo("quickActionList", "urn:partner.soap.sforce.com","quickActionList","urn:partner.soap.sforce.com","DescribeQuickActionListResult",0,1,true))) {
setQuickActionList((com.sforce.soap.partner.DescribeQuickActionListResult)__typeMapper.readObject(__in, _lookupTypeInfo("quickActionList", "urn:partner.soap.sforce.com","quickActionList","urn:partner.soap.sforce.com","DescribeQuickActionListResult",0,1,true), com.sforce.soap.partner.DescribeQuickActionListResult.class));
}
}
private void writeFieldQuickActionList(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("quickActionList", "urn:partner.soap.sforce.com","quickActionList","urn:partner.soap.sforce.com","DescribeQuickActionListResult",0,1,true), quickActionList, quickActionList__is_set);
}
/**
* element : relatedContent of type {urn:partner.soap.sforce.com}RelatedContent
* java type: com.sforce.soap.partner.RelatedContent
*/
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, _lookupTypeInfo("relatedContent", "urn:partner.soap.sforce.com","relatedContent","urn:partner.soap.sforce.com","RelatedContent",0,1,true))) {
setRelatedContent((com.sforce.soap.partner.RelatedContent)__typeMapper.readObject(__in, _lookupTypeInfo("relatedContent", "urn:partner.soap.sforce.com","relatedContent","urn:partner.soap.sforce.com","RelatedContent",0,1,true), com.sforce.soap.partner.RelatedContent.class));
}
}
private void writeFieldRelatedContent(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("relatedContent", "urn:partner.soap.sforce.com","relatedContent","urn:partner.soap.sforce.com","RelatedContent",0,1,true), relatedContent, relatedContent__is_set);
}
/**
* element : relatedLists of type {urn:partner.soap.sforce.com}RelatedList
* java type: com.sforce.soap.partner.RelatedList[]
*/
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, _lookupTypeInfo("relatedLists", "urn:partner.soap.sforce.com","relatedLists","urn:partner.soap.sforce.com","RelatedList",0,-1,true))) {
setRelatedLists((com.sforce.soap.partner.RelatedList[])__typeMapper.readObject(__in, _lookupTypeInfo("relatedLists", "urn:partner.soap.sforce.com","relatedLists","urn:partner.soap.sforce.com","RelatedList",0,-1,true), com.sforce.soap.partner.RelatedList[].class));
}
}
private void writeFieldRelatedLists(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("relatedLists", "urn:partner.soap.sforce.com","relatedLists","urn:partner.soap.sforce.com","RelatedList",0,-1,true), relatedLists, relatedLists__is_set);
}
/**
* element : saveOptions of type {urn:partner.soap.sforce.com}DescribeLayoutSaveOption
* java type: com.sforce.soap.partner.DescribeLayoutSaveOption[]
*/
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, _lookupTypeInfo("saveOptions", "urn:partner.soap.sforce.com","saveOptions","urn:partner.soap.sforce.com","DescribeLayoutSaveOption",0,-1,true))) {
setSaveOptions((com.sforce.soap.partner.DescribeLayoutSaveOption[])__typeMapper.readObject(__in, _lookupTypeInfo("saveOptions", "urn:partner.soap.sforce.com","saveOptions","urn:partner.soap.sforce.com","DescribeLayoutSaveOption",0,-1,true), com.sforce.soap.partner.DescribeLayoutSaveOption[].class));
}
}
private void writeFieldSaveOptions(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("saveOptions", "urn:partner.soap.sforce.com","saveOptions","urn:partner.soap.sforce.com","DescribeLayoutSaveOption",0,-1,true), saveOptions, saveOptions__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("[DescribeLayout ");
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 {
writeFieldButtonLayoutSection(__out, __typeMapper);
writeFieldDetailLayoutSections(__out, __typeMapper);
writeFieldEditLayoutSections(__out, __typeMapper);
writeFieldFeedView(__out, __typeMapper);
writeFieldHighlightsPanelLayoutSection(__out, __typeMapper);
writeFieldId(__out, __typeMapper);
writeFieldQuickActionList(__out, __typeMapper);
writeFieldRelatedContent(__out, __typeMapper);
writeFieldRelatedLists(__out, __typeMapper);
writeFieldSaveOptions(__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 {
setButtonLayoutSection(__in, __typeMapper);
setDetailLayoutSections(__in, __typeMapper);
setEditLayoutSections(__in, __typeMapper);
setFeedView(__in, __typeMapper);
setHighlightsPanelLayoutSection(__in, __typeMapper);
setId(__in, __typeMapper);
setQuickActionList(__in, __typeMapper);
setRelatedContent(__in, __typeMapper);
setRelatedLists(__in, __typeMapper);
setSaveOptions(__in, __typeMapper);
}
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, "quickActionList", quickActionList);
toStringHelper(sb, "relatedContent", relatedContent);
toStringHelper(sb, "relatedLists", relatedLists);
toStringHelper(sb, "saveOptions", saveOptions);
}
@SuppressWarnings("unchecked")
private <T,U> T[] castArray(Class<T> 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;
}
}