214 lines
12 KiB
Java
214 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 SharingRules extends com.sforce.soap.metadata.Metadata {
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public SharingRules() {}
|
|
|
|
/* 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 : sharingCriteriaRules of type {http://soap.sforce.com/2006/04/metadata}SharingCriteriaRule
|
|
* java type: com.sforce.soap.metadata.SharingCriteriaRule[]
|
|
*/
|
|
private boolean sharingCriteriaRules__is_set = false;
|
|
|
|
private com.sforce.soap.metadata.SharingCriteriaRule[] sharingCriteriaRules = new com.sforce.soap.metadata.SharingCriteriaRule[0];
|
|
|
|
public com.sforce.soap.metadata.SharingCriteriaRule[] getSharingCriteriaRules() {
|
|
return sharingCriteriaRules;
|
|
}
|
|
|
|
public void setSharingCriteriaRules(com.sforce.soap.metadata.SharingCriteriaRule[] sharingCriteriaRules) {
|
|
this.sharingCriteriaRules = sharingCriteriaRules;
|
|
sharingCriteriaRules__is_set = true;
|
|
}
|
|
|
|
protected void setSharingCriteriaRules(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("sharingCriteriaRules", "http://soap.sforce.com/2006/04/metadata","sharingCriteriaRules","http://soap.sforce.com/2006/04/metadata","SharingCriteriaRule",0,-1,true))) {
|
|
setSharingCriteriaRules((com.sforce.soap.metadata.SharingCriteriaRule[])__typeMapper.readObject(__in, _lookupTypeInfo("sharingCriteriaRules", "http://soap.sforce.com/2006/04/metadata","sharingCriteriaRules","http://soap.sforce.com/2006/04/metadata","SharingCriteriaRule",0,-1,true), com.sforce.soap.metadata.SharingCriteriaRule[].class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldSharingCriteriaRules(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("sharingCriteriaRules", "http://soap.sforce.com/2006/04/metadata","sharingCriteriaRules","http://soap.sforce.com/2006/04/metadata","SharingCriteriaRule",0,-1,true), sharingCriteriaRules, sharingCriteriaRules__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : sharingGuestRules of type {http://soap.sforce.com/2006/04/metadata}SharingGuestRule
|
|
* java type: com.sforce.soap.metadata.SharingGuestRule[]
|
|
*/
|
|
private boolean sharingGuestRules__is_set = false;
|
|
|
|
private com.sforce.soap.metadata.SharingGuestRule[] sharingGuestRules = new com.sforce.soap.metadata.SharingGuestRule[0];
|
|
|
|
public com.sforce.soap.metadata.SharingGuestRule[] getSharingGuestRules() {
|
|
return sharingGuestRules;
|
|
}
|
|
|
|
public void setSharingGuestRules(com.sforce.soap.metadata.SharingGuestRule[] sharingGuestRules) {
|
|
this.sharingGuestRules = sharingGuestRules;
|
|
sharingGuestRules__is_set = true;
|
|
}
|
|
|
|
protected void setSharingGuestRules(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("sharingGuestRules", "http://soap.sforce.com/2006/04/metadata","sharingGuestRules","http://soap.sforce.com/2006/04/metadata","SharingGuestRule",0,-1,true))) {
|
|
setSharingGuestRules((com.sforce.soap.metadata.SharingGuestRule[])__typeMapper.readObject(__in, _lookupTypeInfo("sharingGuestRules", "http://soap.sforce.com/2006/04/metadata","sharingGuestRules","http://soap.sforce.com/2006/04/metadata","SharingGuestRule",0,-1,true), com.sforce.soap.metadata.SharingGuestRule[].class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldSharingGuestRules(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("sharingGuestRules", "http://soap.sforce.com/2006/04/metadata","sharingGuestRules","http://soap.sforce.com/2006/04/metadata","SharingGuestRule",0,-1,true), sharingGuestRules, sharingGuestRules__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : sharingOwnerRules of type {http://soap.sforce.com/2006/04/metadata}SharingOwnerRule
|
|
* java type: com.sforce.soap.metadata.SharingOwnerRule[]
|
|
*/
|
|
private boolean sharingOwnerRules__is_set = false;
|
|
|
|
private com.sforce.soap.metadata.SharingOwnerRule[] sharingOwnerRules = new com.sforce.soap.metadata.SharingOwnerRule[0];
|
|
|
|
public com.sforce.soap.metadata.SharingOwnerRule[] getSharingOwnerRules() {
|
|
return sharingOwnerRules;
|
|
}
|
|
|
|
public void setSharingOwnerRules(com.sforce.soap.metadata.SharingOwnerRule[] sharingOwnerRules) {
|
|
this.sharingOwnerRules = sharingOwnerRules;
|
|
sharingOwnerRules__is_set = true;
|
|
}
|
|
|
|
protected void setSharingOwnerRules(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("sharingOwnerRules", "http://soap.sforce.com/2006/04/metadata","sharingOwnerRules","http://soap.sforce.com/2006/04/metadata","SharingOwnerRule",0,-1,true))) {
|
|
setSharingOwnerRules((com.sforce.soap.metadata.SharingOwnerRule[])__typeMapper.readObject(__in, _lookupTypeInfo("sharingOwnerRules", "http://soap.sforce.com/2006/04/metadata","sharingOwnerRules","http://soap.sforce.com/2006/04/metadata","SharingOwnerRule",0,-1,true), com.sforce.soap.metadata.SharingOwnerRule[].class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldSharingOwnerRules(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("sharingOwnerRules", "http://soap.sforce.com/2006/04/metadata","sharingOwnerRules","http://soap.sforce.com/2006/04/metadata","SharingOwnerRule",0,-1,true), sharingOwnerRules, sharingOwnerRules__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : sharingTerritoryRules of type {http://soap.sforce.com/2006/04/metadata}SharingTerritoryRule
|
|
* java type: com.sforce.soap.metadata.SharingTerritoryRule[]
|
|
*/
|
|
private boolean sharingTerritoryRules__is_set = false;
|
|
|
|
private com.sforce.soap.metadata.SharingTerritoryRule[] sharingTerritoryRules = new com.sforce.soap.metadata.SharingTerritoryRule[0];
|
|
|
|
public com.sforce.soap.metadata.SharingTerritoryRule[] getSharingTerritoryRules() {
|
|
return sharingTerritoryRules;
|
|
}
|
|
|
|
public void setSharingTerritoryRules(com.sforce.soap.metadata.SharingTerritoryRule[] sharingTerritoryRules) {
|
|
this.sharingTerritoryRules = sharingTerritoryRules;
|
|
sharingTerritoryRules__is_set = true;
|
|
}
|
|
|
|
protected void setSharingTerritoryRules(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("sharingTerritoryRules", "http://soap.sforce.com/2006/04/metadata","sharingTerritoryRules","http://soap.sforce.com/2006/04/metadata","SharingTerritoryRule",0,-1,true))) {
|
|
setSharingTerritoryRules((com.sforce.soap.metadata.SharingTerritoryRule[])__typeMapper.readObject(__in, _lookupTypeInfo("sharingTerritoryRules", "http://soap.sforce.com/2006/04/metadata","sharingTerritoryRules","http://soap.sforce.com/2006/04/metadata","SharingTerritoryRule",0,-1,true), com.sforce.soap.metadata.SharingTerritoryRule[].class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldSharingTerritoryRules(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("sharingTerritoryRules", "http://soap.sforce.com/2006/04/metadata","sharingTerritoryRules","http://soap.sforce.com/2006/04/metadata","SharingTerritoryRule",0,-1,true), sharingTerritoryRules, sharingTerritoryRules__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());
|
|
__typeMapper.writeXsiType(__out, "http://soap.sforce.com/2006/04/metadata", "SharingRules");
|
|
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 {
|
|
super.writeFields(__out, __typeMapper);
|
|
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 {
|
|
super.loadFields(__in, __typeMapper);
|
|
loadFields1(__in, __typeMapper);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
java.lang.StringBuilder sb = new java.lang.StringBuilder();
|
|
sb.append("[SharingRules ");
|
|
sb.append(super.toString());
|
|
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 {
|
|
writeFieldSharingCriteriaRules(__out, __typeMapper);
|
|
writeFieldSharingGuestRules(__out, __typeMapper);
|
|
writeFieldSharingOwnerRules(__out, __typeMapper);
|
|
writeFieldSharingTerritoryRules(__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 {
|
|
setSharingCriteriaRules(__in, __typeMapper);
|
|
setSharingGuestRules(__in, __typeMapper);
|
|
setSharingOwnerRules(__in, __typeMapper);
|
|
setSharingTerritoryRules(__in, __typeMapper);
|
|
}
|
|
|
|
private void toString1(StringBuilder sb) {
|
|
toStringHelper(sb, "sharingCriteriaRules", sharingCriteriaRules);
|
|
toStringHelper(sb, "sharingGuestRules", sharingGuestRules);
|
|
toStringHelper(sb, "sharingOwnerRules", sharingOwnerRules);
|
|
toStringHelper(sb, "sharingTerritoryRules", sharingTerritoryRules);
|
|
}
|
|
|
|
|
|
}
|