com.sforce.soap.partner.MatchResult Maven / Gradle / Ivy
package com.sforce.soap.partner;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for MatchResult complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="MatchResult">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="errors" type="{urn:partner.soap.sforce.com}Error" maxOccurs="unbounded" minOccurs="0"/>
* <element name="entityType" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="matchEngine" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="matchRecords" type="{urn:partner.soap.sforce.com}MatchRecord" maxOccurs="unbounded" minOccurs="0"/>
* <element name="rule" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="size" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="success" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MatchResult", propOrder = {
"errors",
"entityType",
"matchEngine",
"matchRecords",
"rule",
"size",
"success"
})
public class MatchResult {
protected List errors;
@XmlElement(required = true)
protected String entityType;
@XmlElement(required = true)
protected String matchEngine;
protected List matchRecords;
@XmlElement(required = true)
protected String rule;
protected int size;
protected boolean success;
/**
* Gets the value of the errors property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the errors property.
*
*
* For example, to add a new item, do as follows:
*
* getErrors().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Error }
*
*
*/
public List getErrors() {
if (errors == null) {
errors = new ArrayList();
}
return this.errors;
}
/**
* Gets the value of the entityType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEntityType() {
return entityType;
}
/**
* Sets the value of the entityType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEntityType(String value) {
this.entityType = value;
}
/**
* Gets the value of the matchEngine property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMatchEngine() {
return matchEngine;
}
/**
* Sets the value of the matchEngine property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMatchEngine(String value) {
this.matchEngine = value;
}
/**
* Gets the value of the matchRecords property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the matchRecords property.
*
*
* For example, to add a new item, do as follows:
*
* getMatchRecords().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link MatchRecord }
*
*
*/
public List getMatchRecords() {
if (matchRecords == null) {
matchRecords = new ArrayList();
}
return this.matchRecords;
}
/**
* Gets the value of the rule property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRule() {
return rule;
}
/**
* Sets the value of the rule property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRule(String value) {
this.rule = value;
}
/**
* Gets the value of the size property.
*
*/
public int getSize() {
return size;
}
/**
* Sets the value of the size property.
*
*/
public void setSize(int value) {
this.size = value;
}
/**
* Gets the value of the success property.
*
*/
public boolean isSuccess() {
return success;
}
/**
* Sets the value of the success property.
*
*/
public void setSuccess(boolean value) {
this.success = value;
}
}