242 lines
11 KiB
Java
242 lines
11 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 PriceRuleAction implements com.sforce.ws.bind.XMLizable {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*/
|
||
|
|
public PriceRuleAction() {}
|
||
|
|
|
||
|
|
/* 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 : conditionVariable of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean conditionVariable__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String conditionVariable;
|
||
|
|
|
||
|
|
public java.lang.String getConditionVariable() {
|
||
|
|
return conditionVariable;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setConditionVariable(java.lang.String conditionVariable) {
|
||
|
|
this.conditionVariable = conditionVariable;
|
||
|
|
conditionVariable__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setConditionVariable(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("conditionVariable", "http://soap.sforce.com/2006/04/metadata","conditionVariable","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setConditionVariable(__typeMapper.readString(__in, _lookupTypeInfo("conditionVariable", "http://soap.sforce.com/2006/04/metadata","conditionVariable","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldConditionVariable(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("conditionVariable", "http://soap.sforce.com/2006/04/metadata","conditionVariable","http://www.w3.org/2001/XMLSchema","string",0,1,true), conditionVariable, conditionVariable__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : priceRuleActionItems of type {http://soap.sforce.com/2006/04/metadata}PriceRuleActionItem
|
||
|
|
* java type: com.sforce.soap.metadata.PriceRuleActionItem[]
|
||
|
|
*/
|
||
|
|
private boolean priceRuleActionItems__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.metadata.PriceRuleActionItem[] priceRuleActionItems = new com.sforce.soap.metadata.PriceRuleActionItem[0];
|
||
|
|
|
||
|
|
public com.sforce.soap.metadata.PriceRuleActionItem[] getPriceRuleActionItems() {
|
||
|
|
return priceRuleActionItems;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setPriceRuleActionItems(com.sforce.soap.metadata.PriceRuleActionItem[] priceRuleActionItems) {
|
||
|
|
this.priceRuleActionItems = priceRuleActionItems;
|
||
|
|
priceRuleActionItems__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setPriceRuleActionItems(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("priceRuleActionItems", "http://soap.sforce.com/2006/04/metadata","priceRuleActionItems","http://soap.sforce.com/2006/04/metadata","PriceRuleActionItem",0,-1,true))) {
|
||
|
|
setPriceRuleActionItems((com.sforce.soap.metadata.PriceRuleActionItem[])__typeMapper.readObject(__in, _lookupTypeInfo("priceRuleActionItems", "http://soap.sforce.com/2006/04/metadata","priceRuleActionItems","http://soap.sforce.com/2006/04/metadata","PriceRuleActionItem",0,-1,true), com.sforce.soap.metadata.PriceRuleActionItem[].class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldPriceRuleActionItems(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("priceRuleActionItems", "http://soap.sforce.com/2006/04/metadata","priceRuleActionItems","http://soap.sforce.com/2006/04/metadata","PriceRuleActionItem",0,-1,true), priceRuleActionItems, priceRuleActionItems__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 : targetObject of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean targetObject__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String targetObject;
|
||
|
|
|
||
|
|
public java.lang.String getTargetObject() {
|
||
|
|
return targetObject;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTargetObject(java.lang.String targetObject) {
|
||
|
|
this.targetObject = targetObject;
|
||
|
|
targetObject__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setTargetObject(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("targetObject", "http://soap.sforce.com/2006/04/metadata","targetObject","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setTargetObject(__typeMapper.readString(__in, _lookupTypeInfo("targetObject", "http://soap.sforce.com/2006/04/metadata","targetObject","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldTargetObject(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("targetObject", "http://soap.sforce.com/2006/04/metadata","targetObject","http://www.w3.org/2001/XMLSchema","string",0,1,true), targetObject, targetObject__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : type of type {http://soap.sforce.com/2006/04/metadata}TypeOfAction
|
||
|
|
* java type: com.sforce.soap.metadata.TypeOfAction
|
||
|
|
*/
|
||
|
|
private boolean type__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.metadata.TypeOfAction type;
|
||
|
|
|
||
|
|
public com.sforce.soap.metadata.TypeOfAction getType() {
|
||
|
|
return type;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setType(com.sforce.soap.metadata.TypeOfAction 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.verifyElement(__in, _lookupTypeInfo("type", "http://soap.sforce.com/2006/04/metadata","type","http://soap.sforce.com/2006/04/metadata","TypeOfAction",1,1,true))) {
|
||
|
|
setType((com.sforce.soap.metadata.TypeOfAction)__typeMapper.readObject(__in, _lookupTypeInfo("type", "http://soap.sforce.com/2006/04/metadata","type","http://soap.sforce.com/2006/04/metadata","TypeOfAction",1,1,true), com.sforce.soap.metadata.TypeOfAction.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://soap.sforce.com/2006/04/metadata","TypeOfAction",1,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());
|
||
|
|
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("[PriceRuleAction ");
|
||
|
|
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 {
|
||
|
|
writeFieldConditionVariable(__out, __typeMapper);
|
||
|
|
writeFieldPriceRuleActionItems(__out, __typeMapper);
|
||
|
|
writeFieldSequence(__out, __typeMapper);
|
||
|
|
writeFieldTargetObject(__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 {
|
||
|
|
setConditionVariable(__in, __typeMapper);
|
||
|
|
setPriceRuleActionItems(__in, __typeMapper);
|
||
|
|
setSequence(__in, __typeMapper);
|
||
|
|
setTargetObject(__in, __typeMapper);
|
||
|
|
setType(__in, __typeMapper);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void toString1(StringBuilder sb) {
|
||
|
|
toStringHelper(sb, "conditionVariable", conditionVariable);
|
||
|
|
toStringHelper(sb, "priceRuleActionItems", priceRuleActionItems);
|
||
|
|
toStringHelper(sb, "sequence", sequence);
|
||
|
|
toStringHelper(sb, "targetObject", targetObject);
|
||
|
|
toStringHelper(sb, "type", type);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|