com.sforce.soap.tooling.MapEntry Maven / Gradle / Ivy
package com.sforce.soap.tooling;
/**
* Generated by ComplexTypeCodeGenerator.java. Please do not edit.
*/
public class MapEntry implements com.sforce.ws.bind.XMLizable {
/**
* Constructor
*/
public MapEntry() {}
/**
* element : keyDisplayValue of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private static final com.sforce.ws.bind.TypeInfo keyDisplayValue__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","keyDisplayValue","http://www.w3.org/2001/XMLSchema","string",1,1,true);
private boolean keyDisplayValue__is_set = false;
private java.lang.String keyDisplayValue;
public java.lang.String getKeyDisplayValue() {
return keyDisplayValue;
}
public void setKeyDisplayValue(java.lang.String keyDisplayValue) {
this.keyDisplayValue = keyDisplayValue;
keyDisplayValue__is_set = true;
}
/**
* element : value of type {urn:tooling.soap.sforce.com}StateValue
* java type: com.sforce.soap.tooling.StateValue
*/
private static final com.sforce.ws.bind.TypeInfo value__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","value","urn:tooling.soap.sforce.com","StateValue",1,1,true);
private boolean value__is_set = false;
private com.sforce.soap.tooling.StateValue value;
public com.sforce.soap.tooling.StateValue getValue() {
return value;
}
public void setValue(com.sforce.soap.tooling.StateValue value) {
this.value = value;
value__is_set = true;
}
/**
*/
@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 {
__typeMapper.writeString(__out, keyDisplayValue__typeInfo, keyDisplayValue, keyDisplayValue__is_set);
__typeMapper.writeObject(__out, value__typeInfo, value, value__is_set);
}
@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 {
__in.peekTag();
if (__typeMapper.verifyElement(__in, keyDisplayValue__typeInfo)) {
setKeyDisplayValue(__typeMapper.readString(__in, keyDisplayValue__typeInfo, java.lang.String.class));
}
__in.peekTag();
if (__typeMapper.verifyElement(__in, value__typeInfo)) {
setValue((com.sforce.soap.tooling.StateValue)__typeMapper.readObject(__in, value__typeInfo, com.sforce.soap.tooling.StateValue.class));
}
}
@Override
public String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("[MapEntry ");
sb.append(" keyDisplayValue=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(keyDisplayValue)+"'\n");
sb.append(" value=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(value)+"'\n");
sb.append("]\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy