Class AnswerImpl
java.lang.Object
org.wikirate4j.entitities.CardImpl
org.wikirate4j.entitities.AnswerImpl
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionUsers are able to flag an answer to request a check in case the have doubts that the answer is correct.Comments left on the answerEach answer is referred to a specific companyEach Answer is linked to a specific metric.Each Answer is linked to a specific metric.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 toEach Answer must cite one or more sources.getValue()Each Answer on a question (metric) has a value.<T> TEach Answer on a question (metric) has a value.getYear()Each answer is referred to a specific yearorg.json.JSONObjecttoJson()toString()Methods inherited from class CardImpl
getCodename, getContent, getContent, getCreatedAt, getHtmlURL, getId, getName, getRequestedAt, getUpdatedAt, getURL, raw_jsonMethods inherited from interface Card
getCodename, getContent, getContent, getCreatedAt, getHtmlURL, getId, getName, getRequestedAt, getUpdatedAt, getURL, raw_json
-
Method Details
-
getMetricName
Description copied from interface:AnswerEach Answer is linked to a specific metric. The metric names consists of the metric name and the metric designer.- Specified by:
getMetricNamein interfaceAnswer- Returns:
- the name of the metric the answer is linked to
-
getMetricDesigner
Description copied from interface:AnswerEach Answer is linked to a specific metric. The metric names consists of the metric name and the metric designer.- Specified by:
getMetricDesignerin interfaceAnswer- Returns:
- the name of the metric designer
-
getCompany
Description copied from interface:AnswerEach answer is referred to a specific company- Specified by:
getCompanyin interfaceAnswer- Returns:
- the company name
-
getYear
-
getValue
Description copied from interface:AnswerEach Answer on a question (metric) has a value. This method returns the value given the class type of the value by the user -
getValue
-
getRecordURL
Description copied from interface:AnswerEach 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- Specified by:
getRecordURLin interfaceAnswer- Returns:
- the url of the answers record
-
getSources
Description copied from interface:AnswerEach Answer must cite one or more sources. The sources can link to a website or document that the answer came from.- Specified by:
getSourcesin interfaceAnswer- Returns:
- a list of sources
-
getCheckedBy
Description copied from interface:AnswerUsers are able to flag an answer to request a check in case the have doubts that the answer is correct.- Specified by:
getCheckedByin interfaceAnswer- Returns:
CheckedByinformation about the checks done on the answer, if any.
-
getComments
Description copied from interface:AnswerComments left on the answer- Specified by:
getCommentsin interfaceAnswer- Returns:
- the comments as a string
-
toJson
-
toString
-