public class ResponseDataObject
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ResponseDataObject() |
Modifier and Type | Method and Description |
---|---|
void |
addElement(java.lang.String name,
ResponseDataObject value)
Used by the response XML parser to add child element objects to a parent element object
|
void |
appendContent(java.lang.String content) |
CommandError |
getApplicationError() |
java.lang.String |
getAttribute(java.lang.String name) |
byte[] |
getBinary() |
java.util.List<ResponseDataObject> |
getElements(java.lang.String name) |
boolean |
getHasResults() |
int |
getIntValue(java.lang.String name) |
boolean |
getIsBinary() |
ResponseDataObject |
getOneElement(java.lang.String name) |
java.lang.String |
getOneValue(java.lang.String name)
Returns the text content of the first element found with the given
name
|
java.lang.String |
getProperty(java.lang.String name) |
ServiceError |
getServiceError() |
java.lang.String |
getType() |
java.lang.String |
getValue() |
java.lang.String[] |
getValueArray(java.lang.String name)
Returns string array with the values of the named element(s)
|
java.lang.String |
getXml() |
boolean |
hasApplicationError() |
boolean |
hasServiceError() |
void |
setAttribute(java.lang.String name,
java.lang.String value) |
void |
setBinary(byte[] bytes) |
void |
setType(java.lang.String type) |
void |
setXml(java.lang.String xml) |
public void setType(java.lang.String type)
public java.lang.String getType()
public void setAttribute(java.lang.String name, java.lang.String value)
public java.lang.String getAttribute(java.lang.String name)
public void addElement(java.lang.String name, ResponseDataObject value)
name
- of the child elementvalue
- the child object itselfpublic java.util.List<ResponseDataObject> getElements(java.lang.String name)
public ResponseDataObject getOneElement(java.lang.String name)
public java.lang.String getOneValue(java.lang.String name)
name
- of the elementpublic java.lang.String[] getValueArray(java.lang.String name)
name
- of the child object(s) to retrieve value(s) frompublic void appendContent(java.lang.String content)
public java.lang.String getValue()
public java.lang.String getProperty(java.lang.String name)
public int getIntValue(java.lang.String name)
public boolean hasApplicationError()
public CommandError getApplicationError()
public boolean hasServiceError()
public ServiceError getServiceError()
public void setXml(java.lang.String xml)
public java.lang.String getXml()
public boolean getHasResults()
public boolean getIsBinary()
public void setBinary(byte[] bytes)
public byte[] getBinary()