306 lines
16 KiB
Java
306 lines
16 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 EntitySearchMetadata implements com.sforce.ws.bind.XMLizable {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*/
|
||
|
|
public EntitySearchMetadata() {}
|
||
|
|
|
||
|
|
/* 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 : entityName of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean entityName__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String entityName;
|
||
|
|
|
||
|
|
public java.lang.String getEntityName() {
|
||
|
|
return entityName;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEntityName(java.lang.String entityName) {
|
||
|
|
this.entityName = entityName;
|
||
|
|
entityName__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEntityName(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, _lookupTypeInfo("entityName", "urn:tooling.soap.sforce.com","entityName","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
|
||
|
|
setEntityName(__typeMapper.readString(__in, _lookupTypeInfo("entityName", "urn:tooling.soap.sforce.com","entityName","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEntityName(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("entityName", "urn:tooling.soap.sforce.com","entityName","http://www.w3.org/2001/XMLSchema","string",1,1,true), entityName, entityName__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : errorMetadata of type {urn:tooling.soap.sforce.com}EntityErrorMetadata
|
||
|
|
* java type: com.sforce.soap.tooling.EntityErrorMetadata
|
||
|
|
*/
|
||
|
|
private boolean errorMetadata__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.tooling.EntityErrorMetadata errorMetadata;
|
||
|
|
|
||
|
|
public com.sforce.soap.tooling.EntityErrorMetadata getErrorMetadata() {
|
||
|
|
return errorMetadata;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setErrorMetadata(com.sforce.soap.tooling.EntityErrorMetadata errorMetadata) {
|
||
|
|
this.errorMetadata = errorMetadata;
|
||
|
|
errorMetadata__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setErrorMetadata(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("errorMetadata", "urn:tooling.soap.sforce.com","errorMetadata","urn:tooling.soap.sforce.com","EntityErrorMetadata",0,1,true))) {
|
||
|
|
setErrorMetadata((com.sforce.soap.tooling.EntityErrorMetadata)__typeMapper.readObject(__in, _lookupTypeInfo("errorMetadata", "urn:tooling.soap.sforce.com","errorMetadata","urn:tooling.soap.sforce.com","EntityErrorMetadata",0,1,true), com.sforce.soap.tooling.EntityErrorMetadata.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldErrorMetadata(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("errorMetadata", "urn:tooling.soap.sforce.com","errorMetadata","urn:tooling.soap.sforce.com","EntityErrorMetadata",0,1,true), errorMetadata, errorMetadata__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : fieldMetadata of type {urn:tooling.soap.sforce.com}FieldLevelSearchMetadata
|
||
|
|
* java type: com.sforce.soap.tooling.FieldLevelSearchMetadata[]
|
||
|
|
*/
|
||
|
|
private boolean fieldMetadata__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.tooling.FieldLevelSearchMetadata[] fieldMetadata = new com.sforce.soap.tooling.FieldLevelSearchMetadata[0];
|
||
|
|
|
||
|
|
public com.sforce.soap.tooling.FieldLevelSearchMetadata[] getFieldMetadata() {
|
||
|
|
return fieldMetadata;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFieldMetadata(com.sforce.soap.tooling.FieldLevelSearchMetadata[] fieldMetadata) {
|
||
|
|
this.fieldMetadata = fieldMetadata;
|
||
|
|
fieldMetadata__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setFieldMetadata(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("fieldMetadata", "urn:tooling.soap.sforce.com","fieldMetadata","urn:tooling.soap.sforce.com","FieldLevelSearchMetadata",0,-1,true))) {
|
||
|
|
setFieldMetadata((com.sforce.soap.tooling.FieldLevelSearchMetadata[])__typeMapper.readObject(__in, _lookupTypeInfo("fieldMetadata", "urn:tooling.soap.sforce.com","fieldMetadata","urn:tooling.soap.sforce.com","FieldLevelSearchMetadata",0,-1,true), com.sforce.soap.tooling.FieldLevelSearchMetadata[].class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldFieldMetadata(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("fieldMetadata", "urn:tooling.soap.sforce.com","fieldMetadata","urn:tooling.soap.sforce.com","FieldLevelSearchMetadata",0,-1,true), fieldMetadata, fieldMetadata__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : intentQueryMetadata of type {urn:tooling.soap.sforce.com}EntityIntentQueryMetadata
|
||
|
|
* java type: com.sforce.soap.tooling.EntityIntentQueryMetadata
|
||
|
|
*/
|
||
|
|
private boolean intentQueryMetadata__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.tooling.EntityIntentQueryMetadata intentQueryMetadata;
|
||
|
|
|
||
|
|
public com.sforce.soap.tooling.EntityIntentQueryMetadata getIntentQueryMetadata() {
|
||
|
|
return intentQueryMetadata;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setIntentQueryMetadata(com.sforce.soap.tooling.EntityIntentQueryMetadata intentQueryMetadata) {
|
||
|
|
this.intentQueryMetadata = intentQueryMetadata;
|
||
|
|
intentQueryMetadata__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setIntentQueryMetadata(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("intentQueryMetadata", "urn:tooling.soap.sforce.com","intentQueryMetadata","urn:tooling.soap.sforce.com","EntityIntentQueryMetadata",0,1,true))) {
|
||
|
|
setIntentQueryMetadata((com.sforce.soap.tooling.EntityIntentQueryMetadata)__typeMapper.readObject(__in, _lookupTypeInfo("intentQueryMetadata", "urn:tooling.soap.sforce.com","intentQueryMetadata","urn:tooling.soap.sforce.com","EntityIntentQueryMetadata",0,1,true), com.sforce.soap.tooling.EntityIntentQueryMetadata.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldIntentQueryMetadata(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("intentQueryMetadata", "urn:tooling.soap.sforce.com","intentQueryMetadata","urn:tooling.soap.sforce.com","EntityIntentQueryMetadata",0,1,true), intentQueryMetadata, intentQueryMetadata__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : searchPromotionMetadata of type {urn:tooling.soap.sforce.com}EntitySearchPromotionMetadata
|
||
|
|
* java type: com.sforce.soap.tooling.EntitySearchPromotionMetadata
|
||
|
|
*/
|
||
|
|
private boolean searchPromotionMetadata__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.tooling.EntitySearchPromotionMetadata searchPromotionMetadata;
|
||
|
|
|
||
|
|
public com.sforce.soap.tooling.EntitySearchPromotionMetadata getSearchPromotionMetadata() {
|
||
|
|
return searchPromotionMetadata;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setSearchPromotionMetadata(com.sforce.soap.tooling.EntitySearchPromotionMetadata searchPromotionMetadata) {
|
||
|
|
this.searchPromotionMetadata = searchPromotionMetadata;
|
||
|
|
searchPromotionMetadata__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setSearchPromotionMetadata(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("searchPromotionMetadata", "urn:tooling.soap.sforce.com","searchPromotionMetadata","urn:tooling.soap.sforce.com","EntitySearchPromotionMetadata",0,1,true))) {
|
||
|
|
setSearchPromotionMetadata((com.sforce.soap.tooling.EntitySearchPromotionMetadata)__typeMapper.readObject(__in, _lookupTypeInfo("searchPromotionMetadata", "urn:tooling.soap.sforce.com","searchPromotionMetadata","urn:tooling.soap.sforce.com","EntitySearchPromotionMetadata",0,1,true), com.sforce.soap.tooling.EntitySearchPromotionMetadata.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldSearchPromotionMetadata(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("searchPromotionMetadata", "urn:tooling.soap.sforce.com","searchPromotionMetadata","urn:tooling.soap.sforce.com","EntitySearchPromotionMetadata",0,1,true), searchPromotionMetadata, searchPromotionMetadata__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : spellCorrectionMetadata of type {urn:tooling.soap.sforce.com}EntitySpellCorrectionMetadata
|
||
|
|
* java type: com.sforce.soap.tooling.EntitySpellCorrectionMetadata
|
||
|
|
*/
|
||
|
|
private boolean spellCorrectionMetadata__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.tooling.EntitySpellCorrectionMetadata spellCorrectionMetadata;
|
||
|
|
|
||
|
|
public com.sforce.soap.tooling.EntitySpellCorrectionMetadata getSpellCorrectionMetadata() {
|
||
|
|
return spellCorrectionMetadata;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setSpellCorrectionMetadata(com.sforce.soap.tooling.EntitySpellCorrectionMetadata spellCorrectionMetadata) {
|
||
|
|
this.spellCorrectionMetadata = spellCorrectionMetadata;
|
||
|
|
spellCorrectionMetadata__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setSpellCorrectionMetadata(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("spellCorrectionMetadata", "urn:tooling.soap.sforce.com","spellCorrectionMetadata","urn:tooling.soap.sforce.com","EntitySpellCorrectionMetadata",0,1,true))) {
|
||
|
|
setSpellCorrectionMetadata((com.sforce.soap.tooling.EntitySpellCorrectionMetadata)__typeMapper.readObject(__in, _lookupTypeInfo("spellCorrectionMetadata", "urn:tooling.soap.sforce.com","spellCorrectionMetadata","urn:tooling.soap.sforce.com","EntitySpellCorrectionMetadata",0,1,true), com.sforce.soap.tooling.EntitySpellCorrectionMetadata.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldSpellCorrectionMetadata(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("spellCorrectionMetadata", "urn:tooling.soap.sforce.com","spellCorrectionMetadata","urn:tooling.soap.sforce.com","EntitySpellCorrectionMetadata",0,1,true), spellCorrectionMetadata, spellCorrectionMetadata__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("[EntitySearchMetadata ");
|
||
|
|
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 {
|
||
|
|
writeFieldEntityName(__out, __typeMapper);
|
||
|
|
writeFieldErrorMetadata(__out, __typeMapper);
|
||
|
|
writeFieldFieldMetadata(__out, __typeMapper);
|
||
|
|
writeFieldIntentQueryMetadata(__out, __typeMapper);
|
||
|
|
writeFieldSearchPromotionMetadata(__out, __typeMapper);
|
||
|
|
writeFieldSpellCorrectionMetadata(__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 {
|
||
|
|
setEntityName(__in, __typeMapper);
|
||
|
|
setErrorMetadata(__in, __typeMapper);
|
||
|
|
setFieldMetadata(__in, __typeMapper);
|
||
|
|
setIntentQueryMetadata(__in, __typeMapper);
|
||
|
|
setSearchPromotionMetadata(__in, __typeMapper);
|
||
|
|
setSpellCorrectionMetadata(__in, __typeMapper);
|
||
|
|
setStatus(__in, __typeMapper);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void toString1(StringBuilder sb) {
|
||
|
|
toStringHelper(sb, "entityName", entityName);
|
||
|
|
toStringHelper(sb, "errorMetadata", errorMetadata);
|
||
|
|
toStringHelper(sb, "fieldMetadata", fieldMetadata);
|
||
|
|
toStringHelper(sb, "intentQueryMetadata", intentQueryMetadata);
|
||
|
|
toStringHelper(sb, "searchPromotionMetadata", searchPromotionMetadata);
|
||
|
|
toStringHelper(sb, "spellCorrectionMetadata", spellCorrectionMetadata);
|
||
|
|
toStringHelper(sb, "status", status);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|