Class SiteLinkImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.SiteLinkImpl
- All Implemented Interfaces:
SiteLink
Jackson implementation of
SiteLink
.- Author:
- Fredo Erxleben, Antonin Delpeuch, Thomas Pellissier Tanon
-
Constructor Summary
ConstructorDescriptionSiteLinkImpl
(String title, String site, List<ItemIdValue> badges) Constructor. -
Method Summary
-
Constructor Details
-
SiteLinkImpl
Constructor.- Parameters:
title
- the title of the page on the target sitesite
- the identifier of the target site (such as "dewiki")badges
- the list of badge identifiers worn by this site link. Can be null.
-
-
Method Details
-
getPageTitle
Description copied from interface:SiteLink
Get the string title of the linked page.- Specified by:
getPageTitle
in interfaceSiteLink
-
getSiteKey
Description copied from interface:SiteLink
Get the string key of the linked site.- Specified by:
getSiteKey
in interfaceSiteLink
-
getBadges
Description copied from interface:SiteLink
Get the list of badges of the linked article. -
hashCode
public int hashCode() -
equals
-
toString
-