public class WatsonAnswer extends Object
| Constructor and Description |
|---|
WatsonAnswer() |
| Modifier and Type | Method and Description |
|---|---|
List<Answer> |
getAnswers()
Gets the answers.
|
String |
getCategory()
Gets the category of the question that was submitted with the question.
|
List<Object> |
getErrorNotifications()
Gets the error notifications.
|
List<Evidence> |
getEvidencelist()
Gets the evidencelist.
|
EvidenceRequest |
getEvidenceRequest()
Gets the evidence request.
|
List<Focus> |
getFocuslist()
Gets the container for a list of focus elements that are determined
by the pipeline for the final answer.
|
String |
getId()
Gets an integer that is assigned by the service to identify this question
and its answers.
|
int |
getItems()
Gets the items.
|
List<Latlist> |
getLatlist()
Gets the latlist.
|
String |
getPassthru()
Gets the passthru.
|
String |
getPipelineid()
Gets the internal ID that is assigned for the final answer CAS.
|
List<QClassList> |
getQclasslist()
Gets the container for a list of question classes that are
determined by the pipeline for the final answer.
|
String |
getQuestionText()
Gets the question text.
|
String |
getStatus()
Gets the status.
|
List<SynonymList> |
getSynonymList()
Gets the synonym list.
|
boolean |
isFormattedAnswer()
Checks if is formatted answer.
|
void |
setAnswers(List<Answer> answers)
Sets the answers.
|
void |
setCategory(String category)
Sets the category of the question that was submitted with the question.
|
void |
setErrorNotifications(List<Object> errorNotifications)
Sets the error notifications.
|
void |
setEvidencelist(List<Evidence> evidencelist)
Sets the evidencelist.
|
void |
setEvidenceRequest(EvidenceRequest evidenceRequest)
Sets the evidence request.
|
void |
setFocuslist(List<Focus> focuslist)
Sets the container for a list of focus elements that are determined
by the pipeline for the final answer.
|
void |
setFormattedAnswer(boolean formattedAnswer)
Sets the formatted answer.
|
void |
setId(String id)
Sets an integer that is assigned by the service to identify this question
and its answers.
|
void |
setItems(int items)
Sets the items.
|
void |
setLatlist(List<Latlist> latlist)
Sets the latlist.
|
void |
setPassthru(String passthru)
Sets the passthru.
|
void |
setPipelineid(String pipelineid)
Sets the internal ID that is assigned for the final answer CAS.
|
void |
setQclasslist(List<QClassList> qclasslist)
Sets the container for a list of question classes that are
determined by the pipeline for the final answer.
|
void |
setQuestionText(String questionText)
Sets the question text.
|
void |
setStatus(String status)
Sets the status.
|
void |
setSynonymList(List<SynonymList> synonymList)
Sets the synonym list.
|
String |
toString() |
public String getCategory()
public List<Object> getErrorNotifications()
public List<Evidence> getEvidencelist()
public EvidenceRequest getEvidenceRequest()
public List<Focus> getFocuslist()
public String getId()
public int getItems()
public String getPassthru()
public String getPipelineid()
public List<QClassList> getQclasslist()
public String getQuestionText()
public String getStatus()
public List<SynonymList> getSynonymList()
public boolean isFormattedAnswer()
public void setAnswers(List<Answer> answers)
answers - The answerspublic void setCategory(String category)
category - the new categorypublic void setErrorNotifications(List<Object> errorNotifications)
errorNotifications - The errorNotificationspublic void setEvidencelist(List<Evidence> evidencelist)
evidencelist - The evidencelistpublic void setEvidenceRequest(EvidenceRequest evidenceRequest)
evidenceRequest - The evidenceRequestpublic void setFocuslist(List<Focus> focuslist)
focuslist - The focuslistpublic void setFormattedAnswer(boolean formattedAnswer)
formattedAnswer - The formattedAnswerpublic void setId(String id)
id - the identifierpublic void setItems(int items)
items - The itemspublic void setLatlist(List<Latlist> latlist)
latlist - The latlistpublic void setPassthru(String passthru)
passthru - The passthrupublic void setPipelineid(String pipelineid)
pipelineid - The pipelineidpublic void setQclasslist(List<QClassList> qclasslist)
qclasslist - The question class listpublic void setQuestionText(String questionText)
questionText - The questionTextpublic void setStatus(String status)
status - The statuspublic void setSynonymList(List<SynonymList> synonymList)
synonymList - The synonymListCopyright © 2015. All rights reserved.