| 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 |
|---|---|
ItemDocument |
ItemDocumentBuilder.build()
Returns the
ItemDocument that has been built. |
ItemDocument |
DatamodelConverter.copy(ItemDocument object)
Copies an
ItemDocument. |
ItemDocument |
JsonDeserializer.deserializeItemDocument(String json)
Deserializes a JSON string into an
ItemDocument. |
ItemDocument |
DatamodelFilter.filter(ItemDocument item) |
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue)
Creates an empty
ItemDocument. |
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. |
| Modifier and Type | Method and Description |
|---|---|
ItemDocument |
DatamodelConverter.copy(ItemDocument object)
Copies an
ItemDocument. |
static boolean |
Equality.equalsItemDocument(ItemDocument o1,
Object o2)
Returns
true if the parameters are two ItemDocument objects with
exactly the same data. |
ItemDocument |
DatamodelFilter.filter(ItemDocument item) |
static ItemUpdateBuilder |
ItemUpdateBuilder.forBaseRevision(ItemDocument revision)
Creates new builder object for constructing update of given base item entity
revision.
|
static ItemDocumentBuilder |
ItemDocumentBuilder.fromItemDocument(ItemDocument initialDocument)
Starts the construction of an
ItemDocument from an existing value. |
static String |
JsonSerializer.getJsonString(ItemDocument itemDocument)
Serializes the given object in JSON and returns the resulting string.
|
static int |
Hash.hashCode(ItemDocument o)
Returns a hash code for the given object.
|
void |
JsonSerializer.processItemDocument(ItemDocument itemDocument) |
static String |
ToString.toString(ItemDocument o)
Returns a human-readable string representation of the given object.
|
| Constructor and Description |
|---|
ItemDocumentBuilder(ItemDocument initialDocument)
Constructor to start the build from an existing item.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ItemDocumentImpl
Jackson implementation of
ItemDocument. |
| 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) |
ItemDocument |
ItemDocumentImpl.withAliases(String language,
List<MonolingualTextValue> aliases) |
ItemDocument |
ItemDocumentImpl.withDescription(MonolingualTextValue newDescription) |
ItemDocument |
ItemDocumentImpl.withEntityId(ItemIdValue itemId) |
ItemDocument |
ItemDocumentImpl.withLabel(MonolingualTextValue newLabel) |
ItemDocument |
ItemDocumentImpl.withoutStatementIds(Set<String> statementIds) |
ItemDocument |
ItemDocumentImpl.withRevisionId(long newRevisionId) |
ItemDocument |
ItemDocumentImpl.withStatement(Statement statement) |
| 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. |
ItemDocument |
ItemDocument.withAliases(String language,
List<MonolingualTextValue> aliases) |
ItemDocument |
ItemDocument.withDescription(MonolingualTextValue newDescription) |
ItemDocument |
ItemDocument.withEntityId(ItemIdValue newEntityId)
Returns a new version of this document with updated ID.
|
ItemDocument |
ItemDocument.withLabel(MonolingualTextValue newLabel) |
ItemDocument |
ItemDocument.withoutStatementIds(Set<String> statementIds) |
ItemDocument |
ItemDocument.withRevisionId(long newRevisionId) |
ItemDocument |
ItemDocument.withStatement(Statement statement) |
| Modifier and Type | Method and Description |
|---|---|
void |
EntityDocumentProcessorFilter.processItemDocument(ItemDocument itemDocument) |
default void |
EntityDocumentProcessor.processItemDocument(ItemDocument itemDocument)
Processes the given ItemDocument.
|
void |
EntityDocumentProcessorBroker.processItemDocument(ItemDocument itemDocument) |
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