public class SaveResult extends Object
Java class for SaveResult complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="SaveResult">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="errors" type="{urn:tooling.soap.sforce.com}Error" maxOccurs="unbounded" minOccurs="0"/>
<element name="id" type="{urn:tooling.soap.sforce.com}ID"/>
<element name="success" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Error> |
errors |
protected String |
id |
protected boolean |
success |
| Constructor and Description |
|---|
SaveResult() |
| Modifier and Type | Method and Description |
|---|---|
List<Error> |
getErrors()
Gets the value of the errors property.
|
String |
getId()
Gets the value of the id property.
|
boolean |
isSuccess()
Gets the value of the success property.
|
void |
setId(String value)
Sets the value of the id property.
|
void |
setSuccess(boolean value)
Sets the value of the success property.
|
protected String id
protected boolean success
public List<Error> getErrors()
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
Error
public void setId(String value)
value - allowed object is
Stringpublic boolean isSuccess()
public void setSuccess(boolean value)
Copyright © 2016. All rights reserved.