Interface Answer

All Known Subinterfaces:
AnswerEntity
All Known Implementing Classes:
AnswerEntityImpl

public interface Answer
A DTO representing a single answer for a Question
Author:
Filip Hrisafov, Micha Kiener
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getContent()
    The optional content of the answer.
    java.lang.String getId()
    Returns the unique id of this answer.
    java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getParameters()
    The optional parameters for the answer.
    java.lang.String getType()
    Returns the type (typically an enumeration) of the answer
  • Method Details

    • getId

      java.lang.String getId()
      Returns the unique id of this answer.
      Returns:
      the id of the answer
    • getType

      java.lang.String getType()
      Returns the type (typically an enumeration) of the answer
      Returns:
      the type of this answer
    • getContent

      java.lang.String getContent()
      The optional content of the answer.
      Returns:
      the optional content of the answer, might be null
    • getParameters

      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getParameters()
      The optional parameters for the answer.
      Returns:
      the optional parameters for the question, might be empty or even null