Class TopicImpl

java.lang.Object
org.wikirate4j.entitities.CardImpl
org.wikirate4j.entitities.TopicImpl
All Implemented Interfaces:
Card, Topic

public class TopicImpl extends CardImpl implements Topic
Author:
Vasiliki Gkatziaki
  • Method Details

    • getTitle

      public String getTitle()
      Description copied from interface: Topic
      Returns the display title of the topic.
      Specified by:
      getTitle in interface Topic
      Returns:
      the topic title
    • getFramework

      public TopicFramework getFramework()
      Description copied from interface: Topic
      Returns the framework to which this topic belongs (e.g. WikiRate ESG Topics, GRI Standards).
      Specified by:
      getFramework in interface Topic
      Returns:
      the topic framework
    • getFamily

      public String getFamily()
      Description copied from interface: Topic
      Returns the topic family.
      Specified by:
      getFamily in interface Topic
      Returns:
      the topic family
    • getParent

      public String getParent()
      Description copied from interface: Topic
      Returns the parent topic, if any.
      Specified by:
      getParent in interface Topic
      Returns:
      the parent topic name, or null if none exists
    • getChildren

      public List<String> getChildren()
      Description copied from interface: Topic
      Returns the child topics of this topic.
      Specified by:
      getChildren in interface Topic
      Returns:
      a list of child topic names, or an empty list if none exist
    • getMetrics

      public String getMetrics()
      Description copied from interface: Topic
      Returns the URL for retrieving metrics associated with this topic.
      Specified by:
      getMetrics in interface Topic
      Returns:
      the metrics URL
    • getDatasets

      public String getDatasets()
      Description copied from interface: Topic
      Returns the URL for retrieving datasets associated with this topic.
      Specified by:
      getDatasets in interface Topic
      Returns:
      the datasets URL
    • 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