Class WikirateCardFactory
java.lang.Object
org.wikirate4j.WikirateCardFactory
A class for creating different types of WikiRate Cards
- Author:
- Vasiliki Gkatziaki
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnswercreateAnswer(String rawJson) Creates aCompanygiven the raw json response from the api requeststatic CardcreateCard(String rawJson) Creates aCardgiven the raw json response from the api requeststatic CheckedBycreateCheckedBy(String rawJson) Creates aCheckedBygiven the raw json response from the api requeststatic CompanycreateCompany(String rawJson) Creates aCompanygiven the raw json response from the api requeststatic CompanyGroupcreateCompanyGroup(String rawJson) Creates aCompanyGroupgiven the raw json response from the api requeststatic DatasetcreateDataset(String rawJson) Creates aDatasetgiven the raw json response from the api requeststatic MetriccreateMetric(String rawJson) Creates aMetricgiven the raw json response from the api requeststatic RegioncreateRegion(String rawJson) Creates aRegiongiven the raw json response from the api requeststatic RelationshipcreateRelationship(String rawJson) Creates aRelationshipgiven the raw json response from the api requeststatic ResearchGroupcreateResearchGroup(String rawJson) Creates aResearchGroupgiven the raw json response from the api requeststatic SourcecreateSource(String rawJson) Creates aSourcegiven the raw json response from the api requeststatic TopiccreateTopic(String rawJson) Creates aTopicgiven the raw json response from the api request
-
Constructor Details
-
WikirateCardFactory
public WikirateCardFactory()
-
-
Method Details
-
createCompany
Creates aCompanygiven the raw json response from the api request- Parameters:
rawJson-- Returns:
- Throws:
IncompatibleCardTypeException- in case a different Card type is returned
-
createMetric
Creates aMetricgiven the raw json response from the api request- Parameters:
rawJson-- Returns:
- Throws:
IncompatibleCardTypeException- in case a different Card type is returned
-
createSource
Creates aSourcegiven the raw json response from the api request- Parameters:
rawJson-- Returns:
- Throws:
IncompatibleCardTypeException- in case a different Card type is returned
-
createTopic
Creates aTopicgiven the raw json response from the api request- Parameters:
rawJson-- Returns:
- Throws:
IncompatibleCardTypeException- in case a different Card type is returned
-
createDataset
Creates aDatasetgiven the raw json response from the api request- Parameters:
rawJson-- Returns:
- Throws:
IncompatibleCardTypeException- in case a different Card type is returned
-
createCompanyGroup
Creates aCompanyGroupgiven the raw json response from the api request- Parameters:
rawJson-- Returns:
- Throws:
IncompatibleCardTypeException- in case a different Card type is returned
-
createResearchGroup
public static ResearchGroup createResearchGroup(String rawJson) throws IncompatibleCardTypeException Creates aResearchGroupgiven the raw json response from the api request- Parameters:
rawJson-- Returns:
- Throws:
IncompatibleCardTypeException- in case a different Card type is returned
-
createAnswer
Creates aCompanygiven the raw json response from the api request- Parameters:
rawJson-- Returns:
- Throws:
IncompatibleCardTypeException- in case a different Card type is returned
-
createRelationship
Creates aRelationshipgiven the raw json response from the api request- Parameters:
rawJson-- Returns:
- Throws:
IncompatibleCardTypeException- in case a different Card type is returned
-
createRegion
Creates aRegiongiven the raw json response from the api request- Parameters:
rawJson-- Returns:
- Throws:
IncompatibleCardTypeException- in case a different Card type is returned
-
createCheckedBy
Creates aCheckedBygiven the raw json response from the api request- Parameters:
rawJson-- Returns:
- Throws:
IncompatibleCardTypeException- in case a different Card type is returned
-
createCard
-