public class ItemDocumentBuilder extends EntityDocumentBuilder<ItemDocumentBuilder,ItemDocument>
ItemDocument objects.| Modifier | Constructor | Description |
|---|---|---|
protected |
ItemDocumentBuilder(ItemIdValue itemIdValue) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
ItemDocument |
build() |
Returns the
ItemDocument that has been built. |
static ItemDocumentBuilder |
forItemId(ItemIdValue itemIdValue) |
Starts the construction of an
ItemDocument with the given id. |
protected ItemDocumentBuilder |
getThis() |
Returns the current object with the correct builder type.
|
ItemDocumentBuilder |
withSiteLink(java.lang.String title,
java.lang.String siteKey,
java.lang.String... badges) |
Adds an additional site link to the constructed document.
|
ItemDocumentBuilder |
withSiteLink(SiteLink siteLink) |
Adds an additional site link to the constructed document.
|
prepareBuildgetStatementGroups, withAlias, withAlias, withDescription, withDescription, withLabel, withLabel, withRevisionId, withStatementprotected ItemDocumentBuilder(ItemIdValue itemIdValue)
itemIdValue - public static ItemDocumentBuilder forItemId(ItemIdValue itemIdValue)
ItemDocument with the given id.itemIdValue - id of the newly constructed item documentpublic ItemDocument build()
ItemDocument that has been built.build in class AbstractDataObjectBuilder<ItemDocumentBuilder,ItemDocument>java.lang.IllegalStateException - if the object was built alreadypublic ItemDocumentBuilder withSiteLink(SiteLink siteLink)
siteLink - the additional site linkpublic ItemDocumentBuilder withSiteLink(java.lang.String title, java.lang.String siteKey, java.lang.String... badges)
title - the title of the linked pagesiteKey - identifier of the site, e.g., "enwiki"badges - one or more badgesprotected ItemDocumentBuilder getThis()
AbstractDataObjectBuildergetThis in class AbstractDataObjectBuilder<ItemDocumentBuilder,ItemDocument>Copyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage