com.sforce.soap.tooling.ExternalReference Maven / Gradle / Ivy
package com.sforce.soap.tooling;
/**
* Generated by ComplexTypeCodeGenerator.java. Please do not edit.
*/
public class ExternalReference implements com.sforce.ws.bind.XMLizable {
/**
* Constructor
*/
public ExternalReference() {}
/**
* element : methods of type {urn:tooling.soap.sforce.com}ExternalMethod
* java type: com.sforce.soap.tooling.ExternalMethod[]
*/
private static final com.sforce.ws.bind.TypeInfo methods__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","methods","urn:tooling.soap.sforce.com","ExternalMethod",0,-1,true);
private boolean methods__is_set = false;
private com.sforce.soap.tooling.ExternalMethod[] methods = new com.sforce.soap.tooling.ExternalMethod[0];
public com.sforce.soap.tooling.ExternalMethod[] getMethods() {
return methods;
}
public void setMethods(com.sforce.soap.tooling.ExternalMethod[] methods) {
this.methods = methods;
methods__is_set = true;
}
/**
* element : name of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private static final com.sforce.ws.bind.TypeInfo name__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","name","http://www.w3.org/2001/XMLSchema","string",1,1,true);
private boolean name__is_set = false;
private java.lang.String name;
public java.lang.String getName() {
return name;
}
public void setName(java.lang.String name) {
this.name = name;
name__is_set = true;
}
/**
* element : namespace of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private static final com.sforce.ws.bind.TypeInfo namespace__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","namespace","http://www.w3.org/2001/XMLSchema","string",1,1,true);
private boolean namespace__is_set = false;
private java.lang.String namespace;
public java.lang.String getNamespace() {
return namespace;
}
public void setNamespace(java.lang.String namespace) {
this.namespace = namespace;
namespace__is_set = true;
}
/**
* element : references of type {urn:tooling.soap.sforce.com}Position
* java type: com.sforce.soap.tooling.Position[]
*/
private static final com.sforce.ws.bind.TypeInfo references__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","references","urn:tooling.soap.sforce.com","Position",0,-1,true);
private boolean references__is_set = false;
private com.sforce.soap.tooling.Position[] references = new com.sforce.soap.tooling.Position[0];
public com.sforce.soap.tooling.Position[] getReferences() {
return references;
}
public void setReferences(com.sforce.soap.tooling.Position[] references) {
this.references = references;
references__is_set = true;
}
/**
* element : variables of type {urn:tooling.soap.sforce.com}ExternalSymbol
* java type: com.sforce.soap.tooling.ExternalSymbol[]
*/
private static final com.sforce.ws.bind.TypeInfo variables__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","variables","urn:tooling.soap.sforce.com","ExternalSymbol",0,-1,true);
private boolean variables__is_set = false;
private com.sforce.soap.tooling.ExternalSymbol[] variables = new com.sforce.soap.tooling.ExternalSymbol[0];
public com.sforce.soap.tooling.ExternalSymbol[] getVariables() {
return variables;
}
public void setVariables(com.sforce.soap.tooling.ExternalSymbol[] variables) {
this.variables = variables;
variables__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.writeObject(__out, methods__typeInfo, methods, methods__is_set);
__typeMapper.writeString(__out, name__typeInfo, name, name__is_set);
__typeMapper.writeString(__out, namespace__typeInfo, namespace, namespace__is_set);
__typeMapper.writeObject(__out, references__typeInfo, references, references__is_set);
__typeMapper.writeObject(__out, variables__typeInfo, variables, variables__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.isElement(__in, methods__typeInfo)) {
setMethods((com.sforce.soap.tooling.ExternalMethod[])__typeMapper.readObject(__in, methods__typeInfo, com.sforce.soap.tooling.ExternalMethod[].class));
}
__in.peekTag();
if (__typeMapper.verifyElement(__in, name__typeInfo)) {
setName(__typeMapper.readString(__in, name__typeInfo, java.lang.String.class));
}
__in.peekTag();
if (__typeMapper.verifyElement(__in, namespace__typeInfo)) {
setNamespace(__typeMapper.readString(__in, namespace__typeInfo, java.lang.String.class));
}
__in.peekTag();
if (__typeMapper.isElement(__in, references__typeInfo)) {
setReferences((com.sforce.soap.tooling.Position[])__typeMapper.readObject(__in, references__typeInfo, com.sforce.soap.tooling.Position[].class));
}
__in.peekTag();
if (__typeMapper.isElement(__in, variables__typeInfo)) {
setVariables((com.sforce.soap.tooling.ExternalSymbol[])__typeMapper.readObject(__in, variables__typeInfo, com.sforce.soap.tooling.ExternalSymbol[].class));
}
}
@Override
public String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("[ExternalReference ");
sb.append(" methods=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(methods)+"'\n");
sb.append(" name=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(name)+"'\n");
sb.append(" namespace=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(namespace)+"'\n");
sb.append(" references=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(references)+"'\n");
sb.append(" variables=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(variables)+"'\n");
sb.append("]\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy