242 lines
12 KiB
Java
242 lines
12 KiB
Java
|
|
package com.sforce.soap.metadata;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This is a generated class for the SObject Enterprise API.
|
||
|
|
* Do not edit this file, as your changes will be lost.
|
||
|
|
*/
|
||
|
|
public class ContentAssetRelationships implements com.sforce.ws.bind.XMLizable {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*/
|
||
|
|
public ContentAssetRelationships() {}
|
||
|
|
|
||
|
|
/* 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 : emailTemplate of type {http://soap.sforce.com/2006/04/metadata}ContentAssetLink
|
||
|
|
* java type: com.sforce.soap.metadata.ContentAssetLink[]
|
||
|
|
*/
|
||
|
|
private boolean emailTemplate__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.metadata.ContentAssetLink[] emailTemplate = new com.sforce.soap.metadata.ContentAssetLink[0];
|
||
|
|
|
||
|
|
public com.sforce.soap.metadata.ContentAssetLink[] getEmailTemplate() {
|
||
|
|
return emailTemplate;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEmailTemplate(com.sforce.soap.metadata.ContentAssetLink[] emailTemplate) {
|
||
|
|
this.emailTemplate = emailTemplate;
|
||
|
|
emailTemplate__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEmailTemplate(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("emailTemplate", "http://soap.sforce.com/2006/04/metadata","emailTemplate","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true))) {
|
||
|
|
setEmailTemplate((com.sforce.soap.metadata.ContentAssetLink[])__typeMapper.readObject(__in, _lookupTypeInfo("emailTemplate", "http://soap.sforce.com/2006/04/metadata","emailTemplate","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true), com.sforce.soap.metadata.ContentAssetLink[].class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEmailTemplate(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("emailTemplate", "http://soap.sforce.com/2006/04/metadata","emailTemplate","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true), emailTemplate, emailTemplate__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : insightsApplication of type {http://soap.sforce.com/2006/04/metadata}ContentAssetLink
|
||
|
|
* java type: com.sforce.soap.metadata.ContentAssetLink[]
|
||
|
|
*/
|
||
|
|
private boolean insightsApplication__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.metadata.ContentAssetLink[] insightsApplication = new com.sforce.soap.metadata.ContentAssetLink[0];
|
||
|
|
|
||
|
|
public com.sforce.soap.metadata.ContentAssetLink[] getInsightsApplication() {
|
||
|
|
return insightsApplication;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setInsightsApplication(com.sforce.soap.metadata.ContentAssetLink[] insightsApplication) {
|
||
|
|
this.insightsApplication = insightsApplication;
|
||
|
|
insightsApplication__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setInsightsApplication(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("insightsApplication", "http://soap.sforce.com/2006/04/metadata","insightsApplication","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true))) {
|
||
|
|
setInsightsApplication((com.sforce.soap.metadata.ContentAssetLink[])__typeMapper.readObject(__in, _lookupTypeInfo("insightsApplication", "http://soap.sforce.com/2006/04/metadata","insightsApplication","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true), com.sforce.soap.metadata.ContentAssetLink[].class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldInsightsApplication(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("insightsApplication", "http://soap.sforce.com/2006/04/metadata","insightsApplication","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true), insightsApplication, insightsApplication__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : network of type {http://soap.sforce.com/2006/04/metadata}ContentAssetLink
|
||
|
|
* java type: com.sforce.soap.metadata.ContentAssetLink[]
|
||
|
|
*/
|
||
|
|
private boolean network__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.metadata.ContentAssetLink[] network = new com.sforce.soap.metadata.ContentAssetLink[0];
|
||
|
|
|
||
|
|
public com.sforce.soap.metadata.ContentAssetLink[] getNetwork() {
|
||
|
|
return network;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setNetwork(com.sforce.soap.metadata.ContentAssetLink[] network) {
|
||
|
|
this.network = network;
|
||
|
|
network__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setNetwork(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("network", "http://soap.sforce.com/2006/04/metadata","network","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true))) {
|
||
|
|
setNetwork((com.sforce.soap.metadata.ContentAssetLink[])__typeMapper.readObject(__in, _lookupTypeInfo("network", "http://soap.sforce.com/2006/04/metadata","network","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true), com.sforce.soap.metadata.ContentAssetLink[].class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldNetwork(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("network", "http://soap.sforce.com/2006/04/metadata","network","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true), network, network__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : organization of type {http://soap.sforce.com/2006/04/metadata}ContentAssetLink
|
||
|
|
* java type: com.sforce.soap.metadata.ContentAssetLink
|
||
|
|
*/
|
||
|
|
private boolean organization__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.metadata.ContentAssetLink organization;
|
||
|
|
|
||
|
|
public com.sforce.soap.metadata.ContentAssetLink getOrganization() {
|
||
|
|
return organization;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setOrganization(com.sforce.soap.metadata.ContentAssetLink organization) {
|
||
|
|
this.organization = organization;
|
||
|
|
organization__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setOrganization(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("organization", "http://soap.sforce.com/2006/04/metadata","organization","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,1,true))) {
|
||
|
|
setOrganization((com.sforce.soap.metadata.ContentAssetLink)__typeMapper.readObject(__in, _lookupTypeInfo("organization", "http://soap.sforce.com/2006/04/metadata","organization","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,1,true), com.sforce.soap.metadata.ContentAssetLink.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldOrganization(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("organization", "http://soap.sforce.com/2006/04/metadata","organization","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,1,true), organization, organization__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : workspace of type {http://soap.sforce.com/2006/04/metadata}ContentAssetLink
|
||
|
|
* java type: com.sforce.soap.metadata.ContentAssetLink[]
|
||
|
|
*/
|
||
|
|
private boolean workspace__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.metadata.ContentAssetLink[] workspace = new com.sforce.soap.metadata.ContentAssetLink[0];
|
||
|
|
|
||
|
|
public com.sforce.soap.metadata.ContentAssetLink[] getWorkspace() {
|
||
|
|
return workspace;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setWorkspace(com.sforce.soap.metadata.ContentAssetLink[] workspace) {
|
||
|
|
this.workspace = workspace;
|
||
|
|
workspace__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setWorkspace(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("workspace", "http://soap.sforce.com/2006/04/metadata","workspace","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true))) {
|
||
|
|
setWorkspace((com.sforce.soap.metadata.ContentAssetLink[])__typeMapper.readObject(__in, _lookupTypeInfo("workspace", "http://soap.sforce.com/2006/04/metadata","workspace","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true), com.sforce.soap.metadata.ContentAssetLink[].class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldWorkspace(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("workspace", "http://soap.sforce.com/2006/04/metadata","workspace","http://soap.sforce.com/2006/04/metadata","ContentAssetLink",0,-1,true), workspace, workspace__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("[ContentAssetRelationships ");
|
||
|
|
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 {
|
||
|
|
writeFieldEmailTemplate(__out, __typeMapper);
|
||
|
|
writeFieldInsightsApplication(__out, __typeMapper);
|
||
|
|
writeFieldNetwork(__out, __typeMapper);
|
||
|
|
writeFieldOrganization(__out, __typeMapper);
|
||
|
|
writeFieldWorkspace(__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 {
|
||
|
|
setEmailTemplate(__in, __typeMapper);
|
||
|
|
setInsightsApplication(__in, __typeMapper);
|
||
|
|
setNetwork(__in, __typeMapper);
|
||
|
|
setOrganization(__in, __typeMapper);
|
||
|
|
setWorkspace(__in, __typeMapper);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void toString1(StringBuilder sb) {
|
||
|
|
toStringHelper(sb, "emailTemplate", emailTemplate);
|
||
|
|
toStringHelper(sb, "insightsApplication", insightsApplication);
|
||
|
|
toStringHelper(sb, "network", network);
|
||
|
|
toStringHelper(sb, "organization", organization);
|
||
|
|
toStringHelper(sb, "workspace", workspace);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|