com.sforce.soap.tooling.Method Maven / Gradle / Ivy
package com.sforce.soap.tooling;
/**
* Generated by ComplexTypeCodeGenerator.java. Please do not edit.
*/
public class Method extends com.sforce.soap.tooling.Constructor {
/**
* Constructor
*/
public Method() {}
/**
* element : returnType of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private static final com.sforce.ws.bind.TypeInfo returnType__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","returnType","http://www.w3.org/2001/XMLSchema","string",1,1,true);
private boolean returnType__is_set = false;
private java.lang.String returnType;
public java.lang.String getReturnType() {
return returnType;
}
public void setReturnType(java.lang.String returnType) {
this.returnType = returnType;
returnType__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());
__typeMapper.writeXsiType(__out, "urn:tooling.soap.sforce.com", "Method");
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);
__typeMapper.writeString(__out, returnType__typeInfo, returnType, returnType__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 {
super.loadFields(__in, __typeMapper);
__in.peekTag();
if (__typeMapper.verifyElement(__in, returnType__typeInfo)) {
setReturnType(__typeMapper.readString(__in, returnType__typeInfo, java.lang.String.class));
}
}
@Override
public String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("[Method ");
sb.append(super.toString());sb.append(" returnType=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(returnType)+"'\n");
sb.append("]\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy