Class RelationshipImpl
java.lang.Object
org.wikirate4j.entitities.CardImpl
org.wikirate4j.entitities.RelationshipImpl
- All Implemented Interfaces:
Card, Relationship
- Author:
- Vasiliki Gkatziaki
-
Nested Class Summary
Nested Classes -
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 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
-
getMetricId
Description copied from interface:RelationshipThe metric identifier the answer refers to- Specified by:
getMetricIdin interfaceRelationship- Returns:
- the metric identifier
-
getInverseMetricId
Description copied from interface:RelationshipEach 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.- Specified by:
getInverseMetricIdin interfaceRelationship- Returns:
- the inverse metric identifier
-
getSubjectCompanyId
Description copied from interface:RelationshipRelationships 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- Specified by:
getSubjectCompanyIdin interfaceRelationship- Returns:
- the identifier of the subject company
-
getObjectCompanyId
Description copied from interface:RelationshipRelationships 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- Specified by:
getObjectCompanyIdin interfaceRelationship- Returns:
- the identifier of the object company
-
getSubjectCompany
Description copied from interface:RelationshipRelationships 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- Specified by:
getSubjectCompanyin interfaceRelationship- Returns:
- the name of the subject company
-
getObjectCompany
Description copied from interface:RelationshipRelationships 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- Specified by:
getObjectCompanyin interfaceRelationship- Returns:
- the name of the object company
-
getYear
Description copied from interface:RelationshipEach relationship answer is referred to a specific year- Specified by:
getYearin interfaceRelationship- Returns:
- the year the relationship answer is referring to
-
getValue
Description copied from interface:RelationshipEach 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.- Specified by:
getValuein interfaceRelationship- Type Parameters:
T-- Parameters:
classType-- Returns:
- the value transformed in the given classType
-
getValue
Description copied from interface:RelationshipEach 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.- Specified by:
getValuein interfaceRelationship- Returns:
- the answer value
-
getRecordURL
Description copied from interface:RelationshipEach 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 interfaceRelationship- Returns:
- the url of the answers record
-
getSources
Description copied from interface:RelationshipEach Answer must cite one or more sources. The sources can link to a website or document that the answer came from.- Specified by:
getSourcesin interfaceRelationship- Returns:
- a list of sources
-
getCheckedBy
Description copied from interface:RelationshipUsers are able to flag a answer to request a check in case the have doubts that the answer is correct.- Specified by:
getCheckedByin interfaceRelationship- Returns:
CheckedByinformation about the checks done on the answer, if any.
-
getComments
Description copied from interface:RelationshipComments left on the answer- Specified by:
getCommentsin interfaceRelationship- Returns:
- the comments as a string
-
toJson
-
toString
-