com.sforce.async
Class Result

java.lang.Object
  extended by com.sforce.async.Result
All Implemented Interfaces:
XMLizable

public class Result
extends Object
implements XMLizable

Since:
164
Author:
mcheenath,vmehra

Constructor Summary
Result()
           
 
Method Summary
 boolean getCreated()
           
 Error[] getErrors()
           
 String getId()
           
 boolean getSuccess()
           
 boolean isCreated()
           
 boolean isSuccess()
           
 void load(XmlInputStream __in, TypeMapper __typeMapper)
          load the fileds/children from the specified xml stream
protected  void loadFields(XmlInputStream __in, TypeMapper __typeMapper)
           
 void setCreated(boolean created)
           
 void setErrors(Error[] errors)
           
 void setId(String id)
           
 void setSuccess(boolean success)
           
 String toString()
           
 void write(QName __element, XmlOutputStream __out, TypeMapper __typeMapper)
          write this instace as xml.
protected  void writeFields(XmlOutputStream __out, TypeMapper __typeMapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Result

public Result()
Method Detail

getErrors

public Error[] getErrors()

setErrors

public void setErrors(Error[] errors)

getId

public String getId()

setId

public void setId(String id)

getSuccess

public boolean getSuccess()

isSuccess

public boolean isSuccess()

setSuccess

public void setSuccess(boolean success)

getCreated

public boolean getCreated()

isCreated

public boolean isCreated()

setCreated

public void setCreated(boolean created)

write

public void write(QName __element,
                  XmlOutputStream __out,
                  TypeMapper __typeMapper)
           throws IOException
Description copied from interface: XMLizable
write this instace as xml.

Specified by:
write in interface XMLizable
Parameters:
__element - xml element name
__out - xml output stream
__typeMapper - type mapper to be used
Throws:
IOException - failed to write xml

writeFields

protected void writeFields(XmlOutputStream __out,
                           TypeMapper __typeMapper)
                    throws IOException
Throws:
IOException

load

public void load(XmlInputStream __in,
                 TypeMapper __typeMapper)
          throws IOException,
                 ConnectionException
Description copied from interface: XMLizable
load the fileds/children from the specified xml stream

Specified by:
load in interface XMLizable
Parameters:
__in - xml input stream from which the data is read
__typeMapper - type mapper to be used
Throws:
IOException - failed to read xml
ConnectionException - failed to read/parser/bind xml

loadFields

protected void loadFields(XmlInputStream __in,
                          TypeMapper __typeMapper)
                   throws IOException,
                          ConnectionException
Throws:
IOException
ConnectionException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.