CaseRequest

public class CaseRequest

Represents a case XML request that can be sent to the CommCareHQ server.

Constructors

CaseRequest

public CaseRequest(String caseId, String userId, String dateModified, String dataXmlns)

Creates a case request with the caseId attribute set to caseId, the userId attribute to userId, the dateModified attribute set to dateModified and the dataXmlns attribute set to dataXmlns.

Parameters:
  • caseId – the value of the caseId attribute, which should be the ID of the case
  • userId – the value of the userId attribute, which should be the ID of the user
  • dateModified – the value of the dateModified attribute, which should be the last modification date
  • dataXmlns – the value of the dataXmlns attribute, which should be the namespace of the XML element

CaseRequest

public CaseRequest()

Methods

getCaseId

public String getCaseId()

getCloseElement

public CloseElement getCloseElement()

getCreateElement

public CreateElement getCreateElement()

getDataXmlns

public String getDataXmlns()

getDateModified

public String getDateModified()

getIndexElement

public IndexTask getIndexElement()

getUpdateElement

public UpdateTask getUpdateElement()

getUserId

public String getUserId()

getXmlns

public String getXmlns()

setCaseId

public void setCaseId(String caseId)

setCloseElement

public void setCloseElement(CloseElement closeElement)

setCreateElement

public void setCreateElement(CreateElement createElement)

setDataXmlns

public void setDataXmlns(String dataXmlns)

setDateModified

public void setDateModified(String dateModified)

setIndexElement

public void setIndexElement(IndexTask indexElement)

setUpdateElement

public void setUpdateElement(UpdateTask updateElement)

setUserId

public void setUserId(String userId)

setXmlns

public void setXmlns(String xmlns)