|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.common.model.Response
public final class Response
Generic response class for XML/JSON serialization.
Constructor Summary | |
---|---|
Response()
Default constructor. |
|
Response(java.lang.Boolean succ,
java.lang.Object[] dat)
Constructor. |
|
Response(java.lang.Boolean succ,
java.lang.Object[] dat,
java.lang.Class<?> objectClass)
Constructor. |
|
Response(java.lang.Boolean succ,
java.lang.Object[] dat,
java.lang.Class<?> objectClass,
java.lang.String objectName)
Constructor. |
|
Response(java.lang.Boolean succ,
java.lang.Object itm,
java.lang.Class<?> objectClass)
Constructor with default itemName. |
|
Response(java.lang.Boolean succ,
java.lang.Object itm,
java.lang.Class<?> objectClass,
java.lang.String objectName)
Constructor. |
|
Response(java.lang.Boolean succ,
java.lang.String mess)
Constructor |
|
Response(java.lang.Boolean succ,
java.lang.String mess,
java.lang.Object[] dat,
java.lang.Class<?> objectClass)
Constructor with array data. |
|
Response(java.lang.Boolean succ,
java.lang.String mess,
java.lang.Object[] dat,
java.lang.Class<?> objectClass,
java.lang.String objectName)
Constructor with array data. |
Method Summary | |
---|---|
java.lang.Integer |
getCount()
Gets the count value |
java.util.ArrayList<java.lang.Object> |
getData()
Gets the data value. |
java.lang.Object |
getItem()
Gets the item value. |
java.lang.Class<?> |
getItemClass()
Gets the itemClass value. |
java.lang.String |
getItemName()
Gets the itemName value. |
java.lang.String |
getMessage()
Gets the message value. |
java.lang.Integer |
getOffset()
Gets the offset value |
java.lang.Boolean |
getSuccess()
Gets the success value. |
java.lang.Integer |
getTotal()
Gets the total value. |
java.lang.String |
getUrl()
Gets the URL value. |
boolean |
isSuccess()
Gets the success value. |
void |
setCount(java.lang.Integer count)
Sets the value of count |
void |
setData(java.util.ArrayList<java.lang.Object> dat)
Sets the value of data. |
void |
setItem(java.lang.Object itm)
Sets the value of item. |
void |
setItemClass(java.lang.Class<?> itemCls)
Sets the value of itemClass. |
void |
setItemName(java.lang.String itmName)
Sets the value of itemName. |
void |
setMessage(java.lang.String mess)
Sets the value of message. |
void |
setOffset(java.lang.Integer offset)
Sets the value of offset |
void |
setSuccess(java.lang.Boolean succ)
Sets the value of success. |
void |
setTotal(java.lang.Integer tot)
Sets the value of total. |
void |
setUrl(java.lang.String urlToSet)
Sets the value of URL. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Response(java.lang.Boolean succ, java.lang.String mess, java.lang.Object[] dat, java.lang.Class<?> objectClass)
succ
- set the response successmess
- response messagedat
- the data sentobjectClass
- the class of the object sentpublic Response(java.lang.Boolean succ, java.lang.String mess, java.lang.Object[] dat, java.lang.Class<?> objectClass, java.lang.String objectName)
succ
- set the response successmess
- response messagedat
- the data sentobjectClass
- the class of the object sentobjectName
- the name of the objectpublic Response(java.lang.Boolean succ, java.lang.String mess)
succ
- set the response successmess
- response messagepublic Response(java.lang.Boolean succ, java.lang.Object[] dat)
succ
- set the response successdat
- the data sentpublic Response(java.lang.Boolean succ, java.lang.Object[] dat, java.lang.Class<?> objectClass)
succ
- set the response successdat
- the data sentobjectClass
- the class of the object sentpublic Response(java.lang.Boolean succ, java.lang.Object[] dat, java.lang.Class<?> objectClass, java.lang.String objectName)
succ
- set the response successdat
- the data sentobjectClass
- the class of the object sentobjectName
- the name of the objectpublic Response(java.lang.Boolean succ, java.lang.Object itm, java.lang.Class<?> objectClass, java.lang.String objectName)
succ
- set the response successitm
- the item sentobjectClass
- the class of the object sentobjectName
- the name of the objectpublic Response()
public Response(java.lang.Boolean succ, java.lang.Object itm, java.lang.Class<?> objectClass)
succ
- set the response successitm
- the item sentobjectClass
- the class of the object sentMethod Detail |
---|
public java.lang.Boolean getSuccess()
public boolean isSuccess()
public void setSuccess(java.lang.Boolean succ)
succ
- the success to setpublic java.lang.Integer getTotal()
public void setTotal(java.lang.Integer tot)
tot
- the total to setpublic java.lang.String getMessage()
public void setMessage(java.lang.String mess)
mess
- the message to setpublic java.util.ArrayList<java.lang.Object> getData()
public void setData(java.util.ArrayList<java.lang.Object> dat)
dat
- the data to setpublic java.lang.Object getItem()
public void setItem(java.lang.Object itm)
itm
- the item to setpublic java.lang.Class<?> getItemClass()
public void setItemClass(java.lang.Class<?> itemCls)
itemCls
- the itemClass to setpublic java.lang.String getUrl()
public void setUrl(java.lang.String urlToSet)
urlToSet
- the URL to setpublic java.lang.String getItemName()
public void setItemName(java.lang.String itmName)
itmName
- the itemName to setpublic java.lang.Integer getCount()
public void setCount(java.lang.Integer count)
count
- the count to setpublic java.lang.Integer getOffset()
public void setOffset(java.lang.Integer offset)
offset
- the offset to setpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |