com.sforce.soap.tooling.ApexClassMetadata Maven / Gradle / Ivy
package com.sforce.soap.tooling;
/**
* Generated by ComplexTypeCodeGenerator.java. Please do not edit.
*/
public class ApexClassMetadata implements com.sforce.ws.bind.XMLizable {
/**
* Constructor
*/
public ApexClassMetadata() {}
/**
* element : apiVersion of type {http://www.w3.org/2001/XMLSchema}double
* java type: double
*/
private static final com.sforce.ws.bind.TypeInfo apiVersion__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","apiVersion","http://www.w3.org/2001/XMLSchema","double",1,1,true);
private boolean apiVersion__is_set = false;
private double apiVersion;
public double getApiVersion() {
return apiVersion;
}
public void setApiVersion(double apiVersion) {
this.apiVersion = apiVersion;
apiVersion__is_set = true;
}
/**
* element : packageVersions of type {urn:tooling.soap.sforce.com}PackageVersionMetadata
* java type: com.sforce.soap.tooling.PackageVersionMetadata[]
*/
private static final com.sforce.ws.bind.TypeInfo packageVersions__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","packageVersions","urn:tooling.soap.sforce.com","PackageVersionMetadata",0,-1,true);
private boolean packageVersions__is_set = false;
private com.sforce.soap.tooling.PackageVersionMetadata[] packageVersions = new com.sforce.soap.tooling.PackageVersionMetadata[0];
public com.sforce.soap.tooling.PackageVersionMetadata[] getPackageVersions() {
return packageVersions;
}
public void setPackageVersions(com.sforce.soap.tooling.PackageVersionMetadata[] packageVersions) {
this.packageVersions = packageVersions;
packageVersions__is_set = true;
}
/**
* element : status of type {urn:tooling.soap.sforce.com}ApexCodeUnitStatus
* java type: com.sforce.soap.tooling.ApexCodeUnitStatus
*/
private static final com.sforce.ws.bind.TypeInfo status__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","status","urn:tooling.soap.sforce.com","ApexCodeUnitStatus",1,1,true);
private boolean status__is_set = false;
private com.sforce.soap.tooling.ApexCodeUnitStatus status;
public com.sforce.soap.tooling.ApexCodeUnitStatus getStatus() {
return status;
}
public void setStatus(com.sforce.soap.tooling.ApexCodeUnitStatus status) {
this.status = status;
status__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.writeDouble(__out, apiVersion__typeInfo, apiVersion, apiVersion__is_set);
__typeMapper.writeObject(__out, packageVersions__typeInfo, packageVersions, packageVersions__is_set);
__typeMapper.writeObject(__out, status__typeInfo, status, status__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, apiVersion__typeInfo)) {
setApiVersion((double)__typeMapper.readDouble(__in, apiVersion__typeInfo, double.class));
}
__in.peekTag();
if (__typeMapper.isElement(__in, packageVersions__typeInfo)) {
setPackageVersions((com.sforce.soap.tooling.PackageVersionMetadata[])__typeMapper.readObject(__in, packageVersions__typeInfo, com.sforce.soap.tooling.PackageVersionMetadata[].class));
}
__in.peekTag();
if (__typeMapper.verifyElement(__in, status__typeInfo)) {
setStatus((com.sforce.soap.tooling.ApexCodeUnitStatus)__typeMapper.readObject(__in, status__typeInfo, com.sforce.soap.tooling.ApexCodeUnitStatus.class));
}
}
@Override
public String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("[ApexClassMetadata ");
sb.append(" apiVersion=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(apiVersion)+"'\n");
sb.append(" packageVersions=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(packageVersions)+"'\n");
sb.append(" status=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(status)+"'\n");
sb.append("]\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy