| Package | Description |
|---|---|
| org.wikidata.wdtk.datamodel.helpers |
Package for mostly static helper code to work with data objects.
|
| org.wikidata.wdtk.datamodel.implementation |
Basic implementation for objects representing Wikibase data and related factories.
|
| org.wikidata.wdtk.datamodel.interfaces |
Interfaces for representing Wikibase data and related factories.
|
| Modifier and Type | Method and Description |
|---|---|
SiteLink |
DatamodelConverter.copy(SiteLink object)
Copies a
SiteLink. |
static SiteLink |
Datamodel.makeSiteLink(String title,
String siteKey)
Creates a
SiteLink without badges. |
static SiteLink |
Datamodel.makeSiteLink(String title,
String siteKey,
List<ItemIdValue> badges)
Creates a
SiteLink. |
| Modifier and Type | Method and Description |
|---|---|
SiteLink |
DatamodelConverter.copy(SiteLink object)
Copies a
SiteLink. |
static boolean |
Equality.equalsSiteLink(SiteLink o1,
Object o2)
Returns
true if the parameters are two SiteLink objects with
exactly the same data. |
static int |
Hash.hashCode(SiteLink o)
Returns a hash code for the given object.
|
ItemUpdateBuilder |
ItemUpdateBuilder.putSiteLink(SiteLink link)
Adds or replaces site link.
|
static String |
ToString.toString(SiteLink o)
Returns a human-readable string representation of the given object.
|
ItemDocumentBuilder |
ItemDocumentBuilder.withSiteLink(SiteLink siteLink)
Adds an additional site link to the constructed document.
|
| Modifier and Type | Method and Description |
|---|---|
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks)
Creates an
ItemDocument with empty revision id. |
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks,
long revisionId)
Creates an
ItemDocument. |
static ItemUpdate |
Datamodel.makeItemUpdate(ItemIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements,
Collection<SiteLink> modifiedSiteLinks,
Collection<String> removedSiteLinks)
Creates new
ItemUpdate. |
| Modifier and Type | Class and Description |
|---|---|
class |
SiteLinkImpl
Jackson implementation of
SiteLink. |
| Modifier and Type | Method and Description |
|---|---|
SiteLink |
DataObjectFactoryImpl.getSiteLink(String title,
String siteKey,
List<ItemIdValue> badges) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,SiteLink> |
ItemUpdateImpl.getModifiedSiteLinks() |
Map<String,SiteLink> |
ItemDocumentImpl.getSiteLinks() |
| Modifier and Type | Method and Description |
|---|---|
String |
SitesImpl.getSiteLinkUrl(SiteLink siteLink) |
| Modifier and Type | Method and Description |
|---|---|
ItemDocument |
DataObjectFactoryImpl.getItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks,
long revisionId) |
ItemUpdate |
DataObjectFactoryImpl.getItemUpdate(ItemIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements,
Collection<SiteLink> modifiedSiteLinks,
Collection<String> removedSiteLinks) |
| Constructor and Description |
|---|
ItemDocumentImpl(ItemIdValue id,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statements,
List<SiteLink> siteLinks,
long revisionId)
Constructor.
|
ItemDocumentImpl(ItemIdValue subject,
Map<String,MonolingualTextValue> labels,
Map<String,MonolingualTextValue> descriptions,
Map<String,List<MonolingualTextValue>> aliases,
Map<String,List<Statement>> claims,
Map<String,SiteLink> siteLinks,
long revisionId)
Protected constructor, meant to be used to create modified copies
of instances.
|
ItemDocumentImpl(String jsonId,
Map<String,MonolingualTextValue> labels,
Map<String,MonolingualTextValue> descriptions,
Map<String,List<MonolingualTextValue>> aliases,
Map<String,List<StatementImpl.PreStatement>> claims,
Map<String,SiteLink> sitelinks,
long revisionId,
String siteIri)
Constructor.
|
ItemUpdateImpl(ItemIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements,
Collection<SiteLink> modifiedSiteLinks,
Collection<String> removedSiteLinks)
Initializes new item update.
|
| Modifier and Type | Method and Description |
|---|---|
SiteLink |
DataObjectFactory.getSiteLink(String title,
String siteKey,
List<ItemIdValue> badges)
Creates a
SiteLink. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,SiteLink> |
ItemUpdate.getModifiedSiteLinks()
Returns site links added or modified in this update.
|
Map<String,SiteLink> |
ItemDocument.getSiteLinks()
Get a Map of site keys to
SiteLink objects. |
| Modifier and Type | Method and Description |
|---|---|
String |
Sites.getSiteLinkUrl(SiteLink siteLink)
Returns the URL for the given site link, or null if its site key is not
known.
|
| Modifier and Type | Method and Description |
|---|---|
ItemDocument |
DataObjectFactory.getItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks,
long revisionId)
Creates an
ItemDocument. |
ItemUpdate |
DataObjectFactory.getItemUpdate(ItemIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements,
Collection<SiteLink> modifiedSiteLinks,
Collection<String> removedSiteLinks)
Creates new
ItemUpdate. |
Copyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage