178 lines
8.4 KiB
Java
178 lines
8.4 KiB
Java
|
|
package com.sforce.soap.tooling;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This is a generated class for the SObject Enterprise API.
|
||
|
|
* Do not edit this file, as your changes will be lost.
|
||
|
|
*/
|
||
|
|
public class SearchResultsMetadata implements com.sforce.ws.bind.XMLizable {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*/
|
||
|
|
public SearchResultsMetadata() {}
|
||
|
|
|
||
|
|
/* 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 : entityLabelMetadata of type {urn:tooling.soap.sforce.com}LabelsSearchMetadata
|
||
|
|
* java type: com.sforce.soap.tooling.LabelsSearchMetadata[]
|
||
|
|
*/
|
||
|
|
private boolean entityLabelMetadata__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.tooling.LabelsSearchMetadata[] entityLabelMetadata = new com.sforce.soap.tooling.LabelsSearchMetadata[0];
|
||
|
|
|
||
|
|
public com.sforce.soap.tooling.LabelsSearchMetadata[] getEntityLabelMetadata() {
|
||
|
|
return entityLabelMetadata;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEntityLabelMetadata(com.sforce.soap.tooling.LabelsSearchMetadata[] entityLabelMetadata) {
|
||
|
|
this.entityLabelMetadata = entityLabelMetadata;
|
||
|
|
entityLabelMetadata__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEntityLabelMetadata(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("entityLabelMetadata", "urn:tooling.soap.sforce.com","entityLabelMetadata","urn:tooling.soap.sforce.com","LabelsSearchMetadata",0,-1,true))) {
|
||
|
|
setEntityLabelMetadata((com.sforce.soap.tooling.LabelsSearchMetadata[])__typeMapper.readObject(__in, _lookupTypeInfo("entityLabelMetadata", "urn:tooling.soap.sforce.com","entityLabelMetadata","urn:tooling.soap.sforce.com","LabelsSearchMetadata",0,-1,true), com.sforce.soap.tooling.LabelsSearchMetadata[].class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEntityLabelMetadata(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("entityLabelMetadata", "urn:tooling.soap.sforce.com","entityLabelMetadata","urn:tooling.soap.sforce.com","LabelsSearchMetadata",0,-1,true), entityLabelMetadata, entityLabelMetadata__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : entityMetadata of type {urn:tooling.soap.sforce.com}EntitySearchMetadata
|
||
|
|
* java type: com.sforce.soap.tooling.EntitySearchMetadata[]
|
||
|
|
*/
|
||
|
|
private boolean entityMetadata__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.tooling.EntitySearchMetadata[] entityMetadata = new com.sforce.soap.tooling.EntitySearchMetadata[0];
|
||
|
|
|
||
|
|
public com.sforce.soap.tooling.EntitySearchMetadata[] getEntityMetadata() {
|
||
|
|
return entityMetadata;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEntityMetadata(com.sforce.soap.tooling.EntitySearchMetadata[] entityMetadata) {
|
||
|
|
this.entityMetadata = entityMetadata;
|
||
|
|
entityMetadata__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEntityMetadata(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("entityMetadata", "urn:tooling.soap.sforce.com","entityMetadata","urn:tooling.soap.sforce.com","EntitySearchMetadata",0,-1,true))) {
|
||
|
|
setEntityMetadata((com.sforce.soap.tooling.EntitySearchMetadata[])__typeMapper.readObject(__in, _lookupTypeInfo("entityMetadata", "urn:tooling.soap.sforce.com","entityMetadata","urn:tooling.soap.sforce.com","EntitySearchMetadata",0,-1,true), com.sforce.soap.tooling.EntitySearchMetadata[].class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEntityMetadata(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("entityMetadata", "urn:tooling.soap.sforce.com","entityMetadata","urn:tooling.soap.sforce.com","EntitySearchMetadata",0,-1,true), entityMetadata, entityMetadata__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : status of type {urn:tooling.soap.sforce.com}SearchStatus
|
||
|
|
* java type: com.sforce.soap.tooling.SearchStatus
|
||
|
|
*/
|
||
|
|
private boolean status__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.tooling.SearchStatus status;
|
||
|
|
|
||
|
|
public com.sforce.soap.tooling.SearchStatus getStatus() {
|
||
|
|
return status;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setStatus(com.sforce.soap.tooling.SearchStatus status) {
|
||
|
|
this.status = status;
|
||
|
|
status__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setStatus(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("status", "urn:tooling.soap.sforce.com","status","urn:tooling.soap.sforce.com","SearchStatus",0,1,true))) {
|
||
|
|
setStatus((com.sforce.soap.tooling.SearchStatus)__typeMapper.readObject(__in, _lookupTypeInfo("status", "urn:tooling.soap.sforce.com","status","urn:tooling.soap.sforce.com","SearchStatus",0,1,true), com.sforce.soap.tooling.SearchStatus.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldStatus(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("status", "urn:tooling.soap.sforce.com","status","urn:tooling.soap.sforce.com","SearchStatus",0,1,true), status, status__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("[SearchResultsMetadata ");
|
||
|
|
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 {
|
||
|
|
writeFieldEntityLabelMetadata(__out, __typeMapper);
|
||
|
|
writeFieldEntityMetadata(__out, __typeMapper);
|
||
|
|
writeFieldStatus(__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 {
|
||
|
|
setEntityLabelMetadata(__in, __typeMapper);
|
||
|
|
setEntityMetadata(__in, __typeMapper);
|
||
|
|
setStatus(__in, __typeMapper);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void toString1(StringBuilder sb) {
|
||
|
|
toStringHelper(sb, "entityLabelMetadata", entityLabelMetadata);
|
||
|
|
toStringHelper(sb, "entityMetadata", entityMetadata);
|
||
|
|
toStringHelper(sb, "status", status);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|