com.sforce.soap.metadata.BriefcaseRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of force-metadata-api Show documentation
Show all versions of force-metadata-api Show documentation
Force.com Web Service Connector
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 BriefcaseRule implements com.sforce.ws.bind.XMLizable {
/**
* Constructor
*/
public BriefcaseRule() {}
/* 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 : briefcaseRuleFilters of type {http://soap.sforce.com/2006/04/metadata}BriefcaseRuleFilter
* java type: com.sforce.soap.metadata.BriefcaseRuleFilter[]
*/
private boolean briefcaseRuleFilters__is_set = false;
private com.sforce.soap.metadata.BriefcaseRuleFilter[] briefcaseRuleFilters = new com.sforce.soap.metadata.BriefcaseRuleFilter[0];
public com.sforce.soap.metadata.BriefcaseRuleFilter[] getBriefcaseRuleFilters() {
return briefcaseRuleFilters;
}
public void setBriefcaseRuleFilters(com.sforce.soap.metadata.BriefcaseRuleFilter[] briefcaseRuleFilters) {
this.briefcaseRuleFilters = briefcaseRuleFilters;
briefcaseRuleFilters__is_set = true;
}
protected void setBriefcaseRuleFilters(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("briefcaseRuleFilters", "http://soap.sforce.com/2006/04/metadata","briefcaseRuleFilters","http://soap.sforce.com/2006/04/metadata","BriefcaseRuleFilter",0,-1,true))) {
setBriefcaseRuleFilters((com.sforce.soap.metadata.BriefcaseRuleFilter[])__typeMapper.readObject(__in, _lookupTypeInfo("briefcaseRuleFilters", "http://soap.sforce.com/2006/04/metadata","briefcaseRuleFilters","http://soap.sforce.com/2006/04/metadata","BriefcaseRuleFilter",0,-1,true), com.sforce.soap.metadata.BriefcaseRuleFilter[].class));
}
}
private void writeFieldBriefcaseRuleFilters(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("briefcaseRuleFilters", "http://soap.sforce.com/2006/04/metadata","briefcaseRuleFilters","http://soap.sforce.com/2006/04/metadata","BriefcaseRuleFilter",0,-1,true), briefcaseRuleFilters, briefcaseRuleFilters__is_set);
}
/**
* element : filterLogic of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean filterLogic__is_set = false;
private java.lang.String filterLogic;
public java.lang.String getFilterLogic() {
return filterLogic;
}
public void setFilterLogic(java.lang.String filterLogic) {
this.filterLogic = filterLogic;
filterLogic__is_set = true;
}
protected void setFilterLogic(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("filterLogic", "http://soap.sforce.com/2006/04/metadata","filterLogic","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setFilterLogic(__typeMapper.readString(__in, _lookupTypeInfo("filterLogic", "http://soap.sforce.com/2006/04/metadata","filterLogic","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldFilterLogic(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("filterLogic", "http://soap.sforce.com/2006/04/metadata","filterLogic","http://www.w3.org/2001/XMLSchema","string",0,1,true), filterLogic, filterLogic__is_set);
}
/**
* element : isAscendingOrder of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean isAscendingOrder__is_set = false;
private boolean isAscendingOrder;
public boolean getIsAscendingOrder() {
return isAscendingOrder;
}
public boolean isIsAscendingOrder() {
return isAscendingOrder;
}
public void setIsAscendingOrder(boolean isAscendingOrder) {
this.isAscendingOrder = isAscendingOrder;
isAscendingOrder__is_set = true;
}
protected void setIsAscendingOrder(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("isAscendingOrder", "http://soap.sforce.com/2006/04/metadata","isAscendingOrder","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setIsAscendingOrder(__typeMapper.readBoolean(__in, _lookupTypeInfo("isAscendingOrder", "http://soap.sforce.com/2006/04/metadata","isAscendingOrder","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
}
}
private void writeFieldIsAscendingOrder(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("isAscendingOrder", "http://soap.sforce.com/2006/04/metadata","isAscendingOrder","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), isAscendingOrder, isAscendingOrder__is_set);
}
/**
* element : orderBy of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean orderBy__is_set = false;
private java.lang.String orderBy;
public java.lang.String getOrderBy() {
return orderBy;
}
public void setOrderBy(java.lang.String orderBy) {
this.orderBy = orderBy;
orderBy__is_set = true;
}
protected void setOrderBy(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("orderBy", "http://soap.sforce.com/2006/04/metadata","orderBy","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setOrderBy(__typeMapper.readString(__in, _lookupTypeInfo("orderBy", "http://soap.sforce.com/2006/04/metadata","orderBy","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldOrderBy(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("orderBy", "http://soap.sforce.com/2006/04/metadata","orderBy","http://www.w3.org/2001/XMLSchema","string",0,1,true), orderBy, orderBy__is_set);
}
/**
* element : queryScope of type {http://soap.sforce.com/2006/04/metadata}FilterScope
* java type: com.sforce.soap.metadata.FilterScope
*/
private boolean queryScope__is_set = false;
private com.sforce.soap.metadata.FilterScope queryScope;
public com.sforce.soap.metadata.FilterScope getQueryScope() {
return queryScope;
}
public void setQueryScope(com.sforce.soap.metadata.FilterScope queryScope) {
this.queryScope = queryScope;
queryScope__is_set = true;
}
protected void setQueryScope(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("queryScope", "http://soap.sforce.com/2006/04/metadata","queryScope","http://soap.sforce.com/2006/04/metadata","FilterScope",0,1,true))) {
setQueryScope((com.sforce.soap.metadata.FilterScope)__typeMapper.readObject(__in, _lookupTypeInfo("queryScope", "http://soap.sforce.com/2006/04/metadata","queryScope","http://soap.sforce.com/2006/04/metadata","FilterScope",0,1,true), com.sforce.soap.metadata.FilterScope.class));
}
}
private void writeFieldQueryScope(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("queryScope", "http://soap.sforce.com/2006/04/metadata","queryScope","http://soap.sforce.com/2006/04/metadata","FilterScope",0,1,true), queryScope, queryScope__is_set);
}
/**
* element : recordLimit of type {http://www.w3.org/2001/XMLSchema}int
* java type: int
*/
private boolean recordLimit__is_set = false;
private int recordLimit;
public int getRecordLimit() {
return recordLimit;
}
public void setRecordLimit(int recordLimit) {
this.recordLimit = recordLimit;
recordLimit__is_set = true;
}
protected void setRecordLimit(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("recordLimit", "http://soap.sforce.com/2006/04/metadata","recordLimit","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
setRecordLimit((int)__typeMapper.readInt(__in, _lookupTypeInfo("recordLimit", "http://soap.sforce.com/2006/04/metadata","recordLimit","http://www.w3.org/2001/XMLSchema","int",0,1,true), int.class));
}
}
private void writeFieldRecordLimit(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("recordLimit", "http://soap.sforce.com/2006/04/metadata","recordLimit","http://www.w3.org/2001/XMLSchema","int",0,1,true), recordLimit, recordLimit__is_set);
}
/**
* element : relatedRules of type {http://soap.sforce.com/2006/04/metadata}BriefcaseRule
* java type: com.sforce.soap.metadata.BriefcaseRule[]
*/
private boolean relatedRules__is_set = false;
private com.sforce.soap.metadata.BriefcaseRule[] relatedRules = new com.sforce.soap.metadata.BriefcaseRule[0];
public com.sforce.soap.metadata.BriefcaseRule[] getRelatedRules() {
return relatedRules;
}
public void setRelatedRules(com.sforce.soap.metadata.BriefcaseRule[] relatedRules) {
this.relatedRules = relatedRules;
relatedRules__is_set = true;
}
protected void setRelatedRules(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("relatedRules", "http://soap.sforce.com/2006/04/metadata","relatedRules","http://soap.sforce.com/2006/04/metadata","BriefcaseRule",0,-1,true))) {
setRelatedRules((com.sforce.soap.metadata.BriefcaseRule[])__typeMapper.readObject(__in, _lookupTypeInfo("relatedRules", "http://soap.sforce.com/2006/04/metadata","relatedRules","http://soap.sforce.com/2006/04/metadata","BriefcaseRule",0,-1,true), com.sforce.soap.metadata.BriefcaseRule[].class));
}
}
private void writeFieldRelatedRules(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("relatedRules", "http://soap.sforce.com/2006/04/metadata","relatedRules","http://soap.sforce.com/2006/04/metadata","BriefcaseRule",0,-1,true), relatedRules, relatedRules__is_set);
}
/**
* element : relationshipField of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean relationshipField__is_set = false;
private java.lang.String relationshipField;
public java.lang.String getRelationshipField() {
return relationshipField;
}
public void setRelationshipField(java.lang.String relationshipField) {
this.relationshipField = relationshipField;
relationshipField__is_set = true;
}
protected void setRelationshipField(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("relationshipField", "http://soap.sforce.com/2006/04/metadata","relationshipField","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setRelationshipField(__typeMapper.readString(__in, _lookupTypeInfo("relationshipField", "http://soap.sforce.com/2006/04/metadata","relationshipField","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldRelationshipField(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("relationshipField", "http://soap.sforce.com/2006/04/metadata","relationshipField","http://www.w3.org/2001/XMLSchema","string",0,1,true), relationshipField, relationshipField__is_set);
}
/**
* element : relationshipType of type {http://soap.sforce.com/2006/04/metadata}BriefcaseRuleRelationshipType
* java type: com.sforce.soap.metadata.BriefcaseRuleRelationshipType
*/
private boolean relationshipType__is_set = false;
private com.sforce.soap.metadata.BriefcaseRuleRelationshipType relationshipType;
public com.sforce.soap.metadata.BriefcaseRuleRelationshipType getRelationshipType() {
return relationshipType;
}
public void setRelationshipType(com.sforce.soap.metadata.BriefcaseRuleRelationshipType relationshipType) {
this.relationshipType = relationshipType;
relationshipType__is_set = true;
}
protected void setRelationshipType(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("relationshipType", "http://soap.sforce.com/2006/04/metadata","relationshipType","http://soap.sforce.com/2006/04/metadata","BriefcaseRuleRelationshipType",0,1,true))) {
setRelationshipType((com.sforce.soap.metadata.BriefcaseRuleRelationshipType)__typeMapper.readObject(__in, _lookupTypeInfo("relationshipType", "http://soap.sforce.com/2006/04/metadata","relationshipType","http://soap.sforce.com/2006/04/metadata","BriefcaseRuleRelationshipType",0,1,true), com.sforce.soap.metadata.BriefcaseRuleRelationshipType.class));
}
}
private void writeFieldRelationshipType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("relationshipType", "http://soap.sforce.com/2006/04/metadata","relationshipType","http://soap.sforce.com/2006/04/metadata","BriefcaseRuleRelationshipType",0,1,true), relationshipType, relationshipType__is_set);
}
/**
* element : targetEntity of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean targetEntity__is_set = false;
private java.lang.String targetEntity;
public java.lang.String getTargetEntity() {
return targetEntity;
}
public void setTargetEntity(java.lang.String targetEntity) {
this.targetEntity = targetEntity;
targetEntity__is_set = true;
}
protected void setTargetEntity(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("targetEntity", "http://soap.sforce.com/2006/04/metadata","targetEntity","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setTargetEntity(__typeMapper.readString(__in, _lookupTypeInfo("targetEntity", "http://soap.sforce.com/2006/04/metadata","targetEntity","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldTargetEntity(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("targetEntity", "http://soap.sforce.com/2006/04/metadata","targetEntity","http://www.w3.org/2001/XMLSchema","string",1,1,true), targetEntity, targetEntity__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("[BriefcaseRule ");
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 {
writeFieldBriefcaseRuleFilters(__out, __typeMapper);
writeFieldFilterLogic(__out, __typeMapper);
writeFieldIsAscendingOrder(__out, __typeMapper);
writeFieldOrderBy(__out, __typeMapper);
writeFieldQueryScope(__out, __typeMapper);
writeFieldRecordLimit(__out, __typeMapper);
writeFieldRelatedRules(__out, __typeMapper);
writeFieldRelationshipField(__out, __typeMapper);
writeFieldRelationshipType(__out, __typeMapper);
writeFieldTargetEntity(__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 {
setBriefcaseRuleFilters(__in, __typeMapper);
setFilterLogic(__in, __typeMapper);
setIsAscendingOrder(__in, __typeMapper);
setOrderBy(__in, __typeMapper);
setQueryScope(__in, __typeMapper);
setRecordLimit(__in, __typeMapper);
setRelatedRules(__in, __typeMapper);
setRelationshipField(__in, __typeMapper);
setRelationshipType(__in, __typeMapper);
setTargetEntity(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "briefcaseRuleFilters", briefcaseRuleFilters);
toStringHelper(sb, "filterLogic", filterLogic);
toStringHelper(sb, "isAscendingOrder", isAscendingOrder);
toStringHelper(sb, "orderBy", orderBy);
toStringHelper(sb, "queryScope", queryScope);
toStringHelper(sb, "recordLimit", recordLimit);
toStringHelper(sb, "relatedRules", relatedRules);
toStringHelper(sb, "relationshipField", relationshipField);
toStringHelper(sb, "relationshipType", relationshipType);
toStringHelper(sb, "targetEntity", targetEntity);
}
}