282 lines
13 KiB
Java
282 lines
13 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 EntitlementTemplate extends com.sforce.soap.metadata.Metadata {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*/
|
||
|
|
public EntitlementTemplate() {}
|
||
|
|
|
||
|
|
/* 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 : businessHours of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean businessHours__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String businessHours;
|
||
|
|
|
||
|
|
public java.lang.String getBusinessHours() {
|
||
|
|
return businessHours;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setBusinessHours(java.lang.String businessHours) {
|
||
|
|
this.businessHours = businessHours;
|
||
|
|
businessHours__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setBusinessHours(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("businessHours", "http://soap.sforce.com/2006/04/metadata","businessHours","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setBusinessHours(__typeMapper.readString(__in, _lookupTypeInfo("businessHours", "http://soap.sforce.com/2006/04/metadata","businessHours","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldBusinessHours(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("businessHours", "http://soap.sforce.com/2006/04/metadata","businessHours","http://www.w3.org/2001/XMLSchema","string",0,1,true), businessHours, businessHours__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : casesPerEntitlement of type {http://www.w3.org/2001/XMLSchema}int
|
||
|
|
* java type: int
|
||
|
|
*/
|
||
|
|
private boolean casesPerEntitlement__is_set = false;
|
||
|
|
|
||
|
|
private int casesPerEntitlement;
|
||
|
|
|
||
|
|
public int getCasesPerEntitlement() {
|
||
|
|
return casesPerEntitlement;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setCasesPerEntitlement(int casesPerEntitlement) {
|
||
|
|
this.casesPerEntitlement = casesPerEntitlement;
|
||
|
|
casesPerEntitlement__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setCasesPerEntitlement(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("casesPerEntitlement", "http://soap.sforce.com/2006/04/metadata","casesPerEntitlement","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
|
||
|
|
setCasesPerEntitlement((int)__typeMapper.readInt(__in, _lookupTypeInfo("casesPerEntitlement", "http://soap.sforce.com/2006/04/metadata","casesPerEntitlement","http://www.w3.org/2001/XMLSchema","int",0,1,true), int.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldCasesPerEntitlement(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("casesPerEntitlement", "http://soap.sforce.com/2006/04/metadata","casesPerEntitlement","http://www.w3.org/2001/XMLSchema","int",0,1,true), casesPerEntitlement, casesPerEntitlement__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : entitlementProcess of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean entitlementProcess__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String entitlementProcess;
|
||
|
|
|
||
|
|
public java.lang.String getEntitlementProcess() {
|
||
|
|
return entitlementProcess;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEntitlementProcess(java.lang.String entitlementProcess) {
|
||
|
|
this.entitlementProcess = entitlementProcess;
|
||
|
|
entitlementProcess__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEntitlementProcess(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("entitlementProcess", "http://soap.sforce.com/2006/04/metadata","entitlementProcess","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setEntitlementProcess(__typeMapper.readString(__in, _lookupTypeInfo("entitlementProcess", "http://soap.sforce.com/2006/04/metadata","entitlementProcess","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEntitlementProcess(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("entitlementProcess", "http://soap.sforce.com/2006/04/metadata","entitlementProcess","http://www.w3.org/2001/XMLSchema","string",0,1,true), entitlementProcess, entitlementProcess__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : isPerIncident of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean isPerIncident__is_set = false;
|
||
|
|
|
||
|
|
private boolean isPerIncident;
|
||
|
|
|
||
|
|
public boolean getIsPerIncident() {
|
||
|
|
return isPerIncident;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isIsPerIncident() {
|
||
|
|
return isPerIncident;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setIsPerIncident(boolean isPerIncident) {
|
||
|
|
this.isPerIncident = isPerIncident;
|
||
|
|
isPerIncident__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setIsPerIncident(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("isPerIncident", "http://soap.sforce.com/2006/04/metadata","isPerIncident","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setIsPerIncident(__typeMapper.readBoolean(__in, _lookupTypeInfo("isPerIncident", "http://soap.sforce.com/2006/04/metadata","isPerIncident","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldIsPerIncident(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("isPerIncident", "http://soap.sforce.com/2006/04/metadata","isPerIncident","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), isPerIncident, isPerIncident__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : term of type {http://www.w3.org/2001/XMLSchema}int
|
||
|
|
* java type: int
|
||
|
|
*/
|
||
|
|
private boolean term__is_set = false;
|
||
|
|
|
||
|
|
private int term;
|
||
|
|
|
||
|
|
public int getTerm() {
|
||
|
|
return term;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTerm(int term) {
|
||
|
|
this.term = term;
|
||
|
|
term__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setTerm(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("term", "http://soap.sforce.com/2006/04/metadata","term","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
|
||
|
|
setTerm((int)__typeMapper.readInt(__in, _lookupTypeInfo("term", "http://soap.sforce.com/2006/04/metadata","term","http://www.w3.org/2001/XMLSchema","int",0,1,true), int.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldTerm(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("term", "http://soap.sforce.com/2006/04/metadata","term","http://www.w3.org/2001/XMLSchema","int",0,1,true), term, term__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : type of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean type__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String type;
|
||
|
|
|
||
|
|
public java.lang.String getType() {
|
||
|
|
return type;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setType(java.lang.String type) {
|
||
|
|
this.type = type;
|
||
|
|
type__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setType(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("type", "http://soap.sforce.com/2006/04/metadata","type","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setType(__typeMapper.readString(__in, _lookupTypeInfo("type", "http://soap.sforce.com/2006/04/metadata","type","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("type", "http://soap.sforce.com/2006/04/metadata","type","http://www.w3.org/2001/XMLSchema","string",0,1,true), type, type__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", "EntitlementTemplate");
|
||
|
|
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("[EntitlementTemplate ");
|
||
|
|
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 {
|
||
|
|
writeFieldBusinessHours(__out, __typeMapper);
|
||
|
|
writeFieldCasesPerEntitlement(__out, __typeMapper);
|
||
|
|
writeFieldEntitlementProcess(__out, __typeMapper);
|
||
|
|
writeFieldIsPerIncident(__out, __typeMapper);
|
||
|
|
writeFieldTerm(__out, __typeMapper);
|
||
|
|
writeFieldType(__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 {
|
||
|
|
setBusinessHours(__in, __typeMapper);
|
||
|
|
setCasesPerEntitlement(__in, __typeMapper);
|
||
|
|
setEntitlementProcess(__in, __typeMapper);
|
||
|
|
setIsPerIncident(__in, __typeMapper);
|
||
|
|
setTerm(__in, __typeMapper);
|
||
|
|
setType(__in, __typeMapper);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void toString1(StringBuilder sb) {
|
||
|
|
toStringHelper(sb, "businessHours", businessHours);
|
||
|
|
toStringHelper(sb, "casesPerEntitlement", casesPerEntitlement);
|
||
|
|
toStringHelper(sb, "entitlementProcess", entitlementProcess);
|
||
|
|
toStringHelper(sb, "isPerIncident", isPerIncident);
|
||
|
|
toStringHelper(sb, "term", term);
|
||
|
|
toStringHelper(sb, "type", type);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|