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
ConstructorsConstructorDescriptionSiteLinkImpl(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:SiteLinkGet the string title of the linked page.- Specified by:
getPageTitlein interfaceSiteLink
-
getSiteKey
Description copied from interface:SiteLinkGet the string key of the linked site.- Specified by:
getSiteKeyin interfaceSiteLink
-
getBadges
Description copied from interface:SiteLinkGet the list of badges of the linked article. -
hashCode
public int hashCode() -
equals
-
toString
-