Interface Relationship

All Superinterfaces:
Card
All Known Implementing Classes:
RelationshipImpl

public interface Relationship extends Card
Relation Metrics are a special type of metrics that produce special type of Relationship. They have been created to demonstrate the relationship between two companies. Thus, the Relationship Object represent the answer on a question (Metric) on a relationship between two companies on a specific year. The Relationship entity extends the notion of a Card to provide additional information and functionality.
Author:
Vasiliki Gkatziaki
  • Method Details

    • getMetricId

      Long getMetricId()
      The metric identifier the answer refers to
      Returns:
      the metric identifier
    • getInverseMetricId

      Long getInverseMetricId()
      Each Relationship Metric has an inverse Relationship Metric. This method returns the identifier of the inverse relationship metric of the relationship metric the answer is referring to.
      Returns:
      the inverse metric identifier
    • getSubjectCompanyId

      Long getSubjectCompanyId()
      Relationships have the form of <subject company><relationship><object company> e.g. <Nike Inc><is a competitor of><Adidas AG> This method returns the identifier of the subject company of the relationship
      Returns:
      the identifier of the subject company
    • getObjectCompanyId

      Long getObjectCompanyId()
      Relationships have the form of <subject company><relationship><object company> e.g. <Nike Inc><is a competitor of><Adidas AG> This method returns the identifier of the object company of the relationship
      Returns:
      the identifier of the object company
    • getSubjectCompany

      String getSubjectCompany()
      Relationships have the form of <subject company><relationship><object company> e.g. <Nike Inc><is a competitor of><Adidas AG> This method returns the name of the subject company of the relationship
      Returns:
      the name of the subject company
    • getObjectCompany

      String getObjectCompany()
      Relationships have the form of <subject company><relationship><object company> e.g. <Nike Inc><is a competitor of><Adidas AG> This method returns the name of the object company of the relationship
      Returns:
      the name of the object company
    • getYear

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

      <T> T getValue(Class<T> classType)
      Each Answer on a question (metric) has a value and the same applies on the relationship answers. 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 and the same applies on the relationship answers. 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<Source> 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 a 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