com.sforce.soap.metadata.PriceRule 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 PriceRule extends com.sforce.soap.metadata.Metadata {
/**
* Constructor
*/
public PriceRule() {}
/* 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 : conditionLogic of type {http://soap.sforce.com/2006/04/metadata}ConditionLogic
* java type: com.sforce.soap.metadata.ConditionLogic
*/
private boolean conditionLogic__is_set = false;
private com.sforce.soap.metadata.ConditionLogic conditionLogic;
public com.sforce.soap.metadata.ConditionLogic getConditionLogic() {
return conditionLogic;
}
public void setConditionLogic(com.sforce.soap.metadata.ConditionLogic conditionLogic) {
this.conditionLogic = conditionLogic;
conditionLogic__is_set = true;
}
protected void setConditionLogic(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("conditionLogic", "http://soap.sforce.com/2006/04/metadata","conditionLogic","http://soap.sforce.com/2006/04/metadata","ConditionLogic",1,1,true))) {
setConditionLogic((com.sforce.soap.metadata.ConditionLogic)__typeMapper.readObject(__in, _lookupTypeInfo("conditionLogic", "http://soap.sforce.com/2006/04/metadata","conditionLogic","http://soap.sforce.com/2006/04/metadata","ConditionLogic",1,1,true), com.sforce.soap.metadata.ConditionLogic.class));
}
}
private void writeFieldConditionLogic(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("conditionLogic", "http://soap.sforce.com/2006/04/metadata","conditionLogic","http://soap.sforce.com/2006/04/metadata","ConditionLogic",1,1,true), conditionLogic, conditionLogic__is_set);
}
/**
* element : description of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean description__is_set = false;
private java.lang.String description;
public java.lang.String getDescription() {
return description;
}
public void setDescription(java.lang.String description) {
this.description = description;
description__is_set = true;
}
protected void setDescription(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("description", "http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setDescription(__typeMapper.readString(__in, _lookupTypeInfo("description", "http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldDescription(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("description", "http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true), description, description__is_set);
}
/**
* element : effectiveDate of type {http://www.w3.org/2001/XMLSchema}dateTime
* java type: java.util.Calendar
*/
private boolean effectiveDate__is_set = false;
private java.util.Calendar effectiveDate;
public java.util.Calendar getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(java.util.Calendar effectiveDate) {
this.effectiveDate = effectiveDate;
effectiveDate__is_set = true;
}
protected void setEffectiveDate(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("effectiveDate", "http://soap.sforce.com/2006/04/metadata","effectiveDate","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true))) {
setEffectiveDate((java.util.Calendar)__typeMapper.readObject(__in, _lookupTypeInfo("effectiveDate", "http://soap.sforce.com/2006/04/metadata","effectiveDate","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true), java.util.Calendar.class));
}
}
private void writeFieldEffectiveDate(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("effectiveDate", "http://soap.sforce.com/2006/04/metadata","effectiveDate","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true), effectiveDate, effectiveDate__is_set);
}
/**
* element : expirationDate of type {http://www.w3.org/2001/XMLSchema}dateTime
* java type: java.util.Calendar
*/
private boolean expirationDate__is_set = false;
private java.util.Calendar expirationDate;
public java.util.Calendar getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(java.util.Calendar expirationDate) {
this.expirationDate = expirationDate;
expirationDate__is_set = true;
}
protected void setExpirationDate(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("expirationDate", "http://soap.sforce.com/2006/04/metadata","expirationDate","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true))) {
setExpirationDate((java.util.Calendar)__typeMapper.readObject(__in, _lookupTypeInfo("expirationDate", "http://soap.sforce.com/2006/04/metadata","expirationDate","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true), java.util.Calendar.class));
}
}
private void writeFieldExpirationDate(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("expirationDate", "http://soap.sforce.com/2006/04/metadata","expirationDate","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true), expirationDate, expirationDate__is_set);
}
/**
* element : masterLabel of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean masterLabel__is_set = false;
private java.lang.String masterLabel;
public java.lang.String getMasterLabel() {
return masterLabel;
}
public void setMasterLabel(java.lang.String masterLabel) {
this.masterLabel = masterLabel;
masterLabel__is_set = true;
}
protected void setMasterLabel(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("masterLabel", "http://soap.sforce.com/2006/04/metadata","masterLabel","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setMasterLabel(__typeMapper.readString(__in, _lookupTypeInfo("masterLabel", "http://soap.sforce.com/2006/04/metadata","masterLabel","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldMasterLabel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("masterLabel", "http://soap.sforce.com/2006/04/metadata","masterLabel","http://www.w3.org/2001/XMLSchema","string",1,1,true), masterLabel, masterLabel__is_set);
}
/**
* element : priceRuleActions of type {http://soap.sforce.com/2006/04/metadata}PriceRuleAction
* java type: com.sforce.soap.metadata.PriceRuleAction[]
*/
private boolean priceRuleActions__is_set = false;
private com.sforce.soap.metadata.PriceRuleAction[] priceRuleActions = new com.sforce.soap.metadata.PriceRuleAction[0];
public com.sforce.soap.metadata.PriceRuleAction[] getPriceRuleActions() {
return priceRuleActions;
}
public void setPriceRuleActions(com.sforce.soap.metadata.PriceRuleAction[] priceRuleActions) {
this.priceRuleActions = priceRuleActions;
priceRuleActions__is_set = true;
}
protected void setPriceRuleActions(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("priceRuleActions", "http://soap.sforce.com/2006/04/metadata","priceRuleActions","http://soap.sforce.com/2006/04/metadata","PriceRuleAction",0,-1,true))) {
setPriceRuleActions((com.sforce.soap.metadata.PriceRuleAction[])__typeMapper.readObject(__in, _lookupTypeInfo("priceRuleActions", "http://soap.sforce.com/2006/04/metadata","priceRuleActions","http://soap.sforce.com/2006/04/metadata","PriceRuleAction",0,-1,true), com.sforce.soap.metadata.PriceRuleAction[].class));
}
}
private void writeFieldPriceRuleActions(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("priceRuleActions", "http://soap.sforce.com/2006/04/metadata","priceRuleActions","http://soap.sforce.com/2006/04/metadata","PriceRuleAction",0,-1,true), priceRuleActions, priceRuleActions__is_set);
}
/**
* element : priceRuleConditions of type {http://soap.sforce.com/2006/04/metadata}PriceRuleCondition
* java type: com.sforce.soap.metadata.PriceRuleCondition[]
*/
private boolean priceRuleConditions__is_set = false;
private com.sforce.soap.metadata.PriceRuleCondition[] priceRuleConditions = new com.sforce.soap.metadata.PriceRuleCondition[0];
public com.sforce.soap.metadata.PriceRuleCondition[] getPriceRuleConditions() {
return priceRuleConditions;
}
public void setPriceRuleConditions(com.sforce.soap.metadata.PriceRuleCondition[] priceRuleConditions) {
this.priceRuleConditions = priceRuleConditions;
priceRuleConditions__is_set = true;
}
protected void setPriceRuleConditions(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("priceRuleConditions", "http://soap.sforce.com/2006/04/metadata","priceRuleConditions","http://soap.sforce.com/2006/04/metadata","PriceRuleCondition",0,-1,true))) {
setPriceRuleConditions((com.sforce.soap.metadata.PriceRuleCondition[])__typeMapper.readObject(__in, _lookupTypeInfo("priceRuleConditions", "http://soap.sforce.com/2006/04/metadata","priceRuleConditions","http://soap.sforce.com/2006/04/metadata","PriceRuleCondition",0,-1,true), com.sforce.soap.metadata.PriceRuleCondition[].class));
}
}
private void writeFieldPriceRuleConditions(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("priceRuleConditions", "http://soap.sforce.com/2006/04/metadata","priceRuleConditions","http://soap.sforce.com/2006/04/metadata","PriceRuleCondition",0,-1,true), priceRuleConditions, priceRuleConditions__is_set);
}
/**
* element : priceRuleExecutionStages of type {http://soap.sforce.com/2006/04/metadata}PriceRuleExecutionStage
* java type: com.sforce.soap.metadata.PriceRuleExecutionStage[]
*/
private boolean priceRuleExecutionStages__is_set = false;
private com.sforce.soap.metadata.PriceRuleExecutionStage[] priceRuleExecutionStages = new com.sforce.soap.metadata.PriceRuleExecutionStage[0];
public com.sforce.soap.metadata.PriceRuleExecutionStage[] getPriceRuleExecutionStages() {
return priceRuleExecutionStages;
}
public void setPriceRuleExecutionStages(com.sforce.soap.metadata.PriceRuleExecutionStage[] priceRuleExecutionStages) {
this.priceRuleExecutionStages = priceRuleExecutionStages;
priceRuleExecutionStages__is_set = true;
}
protected void setPriceRuleExecutionStages(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("priceRuleExecutionStages", "http://soap.sforce.com/2006/04/metadata","priceRuleExecutionStages","http://soap.sforce.com/2006/04/metadata","PriceRuleExecutionStage",0,-1,true))) {
setPriceRuleExecutionStages((com.sforce.soap.metadata.PriceRuleExecutionStage[])__typeMapper.readObject(__in, _lookupTypeInfo("priceRuleExecutionStages", "http://soap.sforce.com/2006/04/metadata","priceRuleExecutionStages","http://soap.sforce.com/2006/04/metadata","PriceRuleExecutionStage",0,-1,true), com.sforce.soap.metadata.PriceRuleExecutionStage[].class));
}
}
private void writeFieldPriceRuleExecutionStages(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("priceRuleExecutionStages", "http://soap.sforce.com/2006/04/metadata","priceRuleExecutionStages","http://soap.sforce.com/2006/04/metadata","PriceRuleExecutionStage",0,-1,true), priceRuleExecutionStages, priceRuleExecutionStages__is_set);
}
/**
* element : sequence of type {http://www.w3.org/2001/XMLSchema}int
* java type: int
*/
private boolean sequence__is_set = false;
private int sequence;
public int getSequence() {
return sequence;
}
public void setSequence(int sequence) {
this.sequence = sequence;
sequence__is_set = true;
}
protected void setSequence(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("sequence", "http://soap.sforce.com/2006/04/metadata","sequence","http://www.w3.org/2001/XMLSchema","int",1,1,true))) {
setSequence((int)__typeMapper.readInt(__in, _lookupTypeInfo("sequence", "http://soap.sforce.com/2006/04/metadata","sequence","http://www.w3.org/2001/XMLSchema","int",1,1,true), int.class));
}
}
private void writeFieldSequence(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("sequence", "http://soap.sforce.com/2006/04/metadata","sequence","http://www.w3.org/2001/XMLSchema","int",1,1,true), sequence, sequence__is_set);
}
/**
* element : status of type {http://soap.sforce.com/2006/04/metadata}RuleStatus
* java type: com.sforce.soap.metadata.RuleStatus
*/
private boolean status__is_set = false;
private com.sforce.soap.metadata.RuleStatus status;
public com.sforce.soap.metadata.RuleStatus getStatus() {
return status;
}
public void setStatus(com.sforce.soap.metadata.RuleStatus status) {
this.status = status;
status__is_set = true;
}
protected void setStatus(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("status", "http://soap.sforce.com/2006/04/metadata","status","http://soap.sforce.com/2006/04/metadata","RuleStatus",1,1,true))) {
setStatus((com.sforce.soap.metadata.RuleStatus)__typeMapper.readObject(__in, _lookupTypeInfo("status", "http://soap.sforce.com/2006/04/metadata","status","http://soap.sforce.com/2006/04/metadata","RuleStatus",1,1,true), com.sforce.soap.metadata.RuleStatus.class));
}
}
private void writeFieldStatus(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("status", "http://soap.sforce.com/2006/04/metadata","status","http://soap.sforce.com/2006/04/metadata","RuleStatus",1,1,true), status, status__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", "PriceRule");
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("[PriceRule ");
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 {
writeFieldConditionLogic(__out, __typeMapper);
writeFieldDescription(__out, __typeMapper);
writeFieldEffectiveDate(__out, __typeMapper);
writeFieldExpirationDate(__out, __typeMapper);
writeFieldMasterLabel(__out, __typeMapper);
writeFieldPriceRuleActions(__out, __typeMapper);
writeFieldPriceRuleConditions(__out, __typeMapper);
writeFieldPriceRuleExecutionStages(__out, __typeMapper);
writeFieldSequence(__out, __typeMapper);
writeFieldStatus(__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 {
setConditionLogic(__in, __typeMapper);
setDescription(__in, __typeMapper);
setEffectiveDate(__in, __typeMapper);
setExpirationDate(__in, __typeMapper);
setMasterLabel(__in, __typeMapper);
setPriceRuleActions(__in, __typeMapper);
setPriceRuleConditions(__in, __typeMapper);
setPriceRuleExecutionStages(__in, __typeMapper);
setSequence(__in, __typeMapper);
setStatus(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "conditionLogic", conditionLogic);
toStringHelper(sb, "description", description);
toStringHelper(sb, "effectiveDate", effectiveDate);
toStringHelper(sb, "expirationDate", expirationDate);
toStringHelper(sb, "masterLabel", masterLabel);
toStringHelper(sb, "priceRuleActions", priceRuleActions);
toStringHelper(sb, "priceRuleConditions", priceRuleConditions);
toStringHelper(sb, "priceRuleExecutionStages", priceRuleExecutionStages);
toStringHelper(sb, "sequence", sequence);
toStringHelper(sb, "status", status);
}
}