Constructor and Description |
---|
SiteLinkImpl(String title,
String site,
List<ItemIdValue> badges)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<ItemIdValue> |
getBadges()
Get the list of badges of the linked article.
|
String |
getPageTitle()
Get the string title of the linked page.
|
String |
getSiteKey()
Get the string key of the linked site.
|
int |
hashCode() |
String |
toString() |
public SiteLinkImpl(String title, String site, List<ItemIdValue> badges)
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.public String getPageTitle()
SiteLink
getPageTitle
in interface SiteLink
public String getSiteKey()
SiteLink
getSiteKey
in interface SiteLink
public List<ItemIdValue> getBadges()
SiteLink
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage