Class DatasetImpl

java.lang.Object
org.wikirate4j.entitities.CardImpl
org.wikirate4j.entitities.DatasetImpl
All Implemented Interfaces:
Card, Dataset

public class DatasetImpl extends CardImpl implements Dataset
Author:
Vasiliki Gkatziaki
  • Method Details

    • getAnswers

      public List<Answer> getAnswers()
      Description copied from interface: Dataset
      Returns all the Answers linked to the Dataset
      Specified by:
      getAnswers in interface Dataset
      Returns:
      a List of Answers
    • getMetrics

      public List<String> getMetrics()
      Description copied from interface: Dataset
      Returns all the Metrics of the Dataset
      Specified by:
      getMetrics in interface Dataset
      Returns:
      a list of Metrics
    • getCompanies

      public List<String> getCompanies()
      Description copied from interface: Dataset
      Returns all the Companies of the Datset
      Specified by:
      getCompanies in interface Dataset
      Returns:
      a list of Companies
    • getLicense

      public String getLicense()
      Description copied from interface: Dataset
      Returns the license of the dataset
      Specified by:
      getLicense in interface Dataset
      Returns:
      the license a string
    • toJson

      public org.json.JSONObject toJson()
      Specified by:
      toJson in interface Card
      Overrides:
      toJson in class CardImpl
      Returns:
      the object as json
    • toString

      public String toString()
      Overrides:
      toString in class Object