com.dice
Class QueryAnswer

java.lang.Object
  extended by com.dice.QueryAnswer

public class QueryAnswer
extends java.lang.Object

The class holds the data returned from the server when the caller makes a query for candidates. If the query is successful the results are returned in the array of candidates else a message about the failure cause can be found in message.

$RCSfile: QueryAnswer.html,v $
$Author: duket $
$Date: 2010/12/14 16:48:42 $

Original Author: duke _DOT_ takle _AT_ dice _DOT_ com
Date: February, 2010


Field Summary
protected  DiceCandidate[] candidate
          An array of candidate objects that match the given query
protected  java.lang.String message
          Some message about the query request if it was not successful
protected  int returnCode
          The return code for the query request, 0 implies success.
 
Constructor Summary
QueryAnswer()
           
 
Method Summary
 DiceCandidate[] getCandidate()
           
 java.lang.String getMessage()
           
 int getReturnCode()
           
 void setCandidate(DiceCandidate[] candidate)
           
 void setMessage(java.lang.String message)
           
 void setReturnCode(int returnCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

returnCode

protected int returnCode
The return code for the query request, 0 implies success.


message

protected java.lang.String message
Some message about the query request if it was not successful


candidate

protected DiceCandidate[] candidate
An array of candidate objects that match the given query

Constructor Detail

QueryAnswer

public QueryAnswer()
Method Detail

getReturnCode

public int getReturnCode()

setReturnCode

public void setReturnCode(int returnCode)

getMessage

public java.lang.String getMessage()

setMessage

public void setMessage(java.lang.String message)

getCandidate

public DiceCandidate[] getCandidate()

setCandidate

public void setCandidate(DiceCandidate[] candidate)