Interface Answer

All Superinterfaces:
Card
All Known Implementing Classes:
AnswerImpl

public interface Answer extends Card
The Answer Object represent the answer on a question (Metric) on a specific company on a specific year. The Answer entity extends the notion of a Card to provide additional information and functionality.
Author:
Vasiliki Gkatziaki
  • Method Details

    • getMetricName

      String getMetricName()
      Each Answer is linked to a specific metric. The metric names consists of the metric name and the metric designer.
      Returns:
      the name of the metric the answer is linked to
    • getMetricDesigner

      String getMetricDesigner()
      Each Answer is linked to a specific metric. The metric names consists of the metric name and the metric designer.
      Returns:
      the name of the metric designer
    • getCompany

      String getCompany()
      Each answer is referred to a specific company
      Returns:
      the company name
    • getYear

      Integer getYear()
      Each answer is referred to a specific year
      Returns:
      the year the answer is referring to
    • getValue

      <T> T getValue(Class<T> classType)
      Each Answer on a question (metric) has a value. This method returns the value given the class type of the value by the user
      Type Parameters:
      T -
      Parameters:
      classType -
      Returns:
      the value transformed in the given classType
    • getValue

      String getValue()
      Each Answer on a question (metric) has a value. This method returns the answer value as a string.
      Returns:
      the answer value
    • getRecordURL

      String getRecordURL()
      Each Answer also provides the record url which the user can call to get all the answers of the company on the question (metric) the answer is referring to
      Returns:
      the url of the answers record
    • getSources

      List<SourceReference> getSources()
      Each Answer must cite one or more sources. The sources can link to a website or document that the answer came from.
      Returns:
      a list of sources
    • getCheckedBy

      CheckedBy getCheckedBy()
      Users are able to flag an answer to request a check in case the have doubts that the answer is correct.
      Returns:
      CheckedBy information about the checks done on the answer, if any.
    • getComments

      String getComments()
      Comments left on the answer
      Returns:
      the comments as a string