Interface Relationship
- All Superinterfaces:
Card
- All Known Implementing Classes:
RelationshipImpl
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 Summary
Modifier and TypeMethodDescriptionUsers are able to flag a answer to request a check in case the have doubts that the answer is correct.Comments left on the answerEach Relationship Metric has an inverse Relationship Metric.The metric identifier the answer refers toRelationships have the form of <subject company><relationship><object company> e.g.Relationships have the form of <subject company><relationship><object company> e.g.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.Relationships have the form of <subject company><relationship><object company> e.g.Relationships have the form of <subject company><relationship><object company> e.g.getValue()Each Answer on a question (metric) has a value and the same applies on the relationship answers.<T> TEach Answer on a question (metric) has a value and the same applies on the relationship answers.getYear()Each relationship answer is referred to a specific yearMethods inherited from interface Card
getCodename, getContent, getContent, getCreatedAt, getHtmlURL, getId, getName, getRequestedAt, getUpdatedAt, getURL, raw_json, toJson
-
Method Details
-
getMetricId
-
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
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
-
getCheckedBy
-
getComments
-