EntityDocument, ItemDocument, StatementDocument, TermedDocumentpublic class JacksonItemDocument extends JacksonTermedStatementDocument implements ItemDocument
ItemDocument. Like all Jackson objects, it
is not technically immutable, but it is strongly recommended to treat it as
such in all contexts: the setters are for Jackson; never call them in your
code.aliases, descriptions, entityId, JSON_TYPE_ITEM, JSON_TYPE_PROPERTY, labels, revisionId, siteIri| Constructor | Description |
|---|---|
JacksonItemDocument() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
EntityIdValue |
getEntityId() |
Returns the ID of the entity that the data refers to
|
ItemIdValue |
getItemId() |
Return the ID of the item that the data refers to.
|
java.util.Map<java.lang.String,SiteLink> |
getSiteLinks() |
Get a Map of site keys to
SiteLink objects. |
int |
hashCode() |
|
void |
setSiteLinks(java.util.Map<java.lang.String,JacksonSiteLink> sitelinks) |
Sets the site links to the given value.
|
java.lang.String |
toString() |
castValue, containsStatementValue, findDescription, findLabel, findStatement, findStatement, findStatementDatatypeIdValue, findStatementDatatypeIdValue, findStatementEntityIdValue, findStatementEntityIdValue, findStatementGlobeCoordinatesValue, findStatementGlobeCoordinatesValue, findStatementGroup, findStatementGroup, findStatementItemIdValue, findStatementItemIdValue, findStatementMonolingualTextValue, findStatementMonolingualTextValue, findStatementPropertyIdValue, findStatementPropertyIdValue, findStatementQuantityValue, findStatementQuantityValue, findStatementStringValue, findStatementStringValue, findStatementTimeValue, findStatementTimeValue, findStatementValue, findStatementValue, getAllStatements, getUniqueStatementFromStatementGroup, getValueFromStatement, hasStatement, hasStatement, hasStatementValue, hasStatementValue, hasStatementValue, hasStatementValuegetRevisionIdgetAliases, getDescriptions, getJsonClaims, getJsonId, getLabels, getRevisionId, getSiteIri, getStatementGroups, setAliases, setDescriptions, setJsonClaims, setJsonId, setLabels, setRevisionId, setSiteIriclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindStatement, findStatement, findStatementDatatypeIdValue, findStatementDatatypeIdValue, findStatementEntityIdValue, findStatementEntityIdValue, findStatementGlobeCoordinatesValue, findStatementGlobeCoordinatesValue, findStatementGroup, findStatementGroup, findStatementItemIdValue, findStatementItemIdValue, findStatementMonolingualTextValue, findStatementMonolingualTextValue, findStatementPropertyIdValue, findStatementPropertyIdValue, findStatementQuantityValue, findStatementQuantityValue, findStatementStringValue, findStatementStringValue, findStatementTimeValue, findStatementTimeValue, findStatementValue, findStatementValue, getAllStatements, getStatementGroups, hasStatement, hasStatement, hasStatementValue, hasStatementValue, hasStatementValue, hasStatementValuefindDescription, findLabel, getAliases, getDescriptions, getLabelspublic JacksonItemDocument()
public ItemIdValue getItemId()
ItemDocumentEntityDocument.getEntityId(), but declared with a more
specific result type.getItemId in interface ItemDocumentpublic EntityIdValue getEntityId()
EntityDocumentgetEntityId in interface EntityDocumentpublic void setSiteLinks(java.util.Map<java.lang.String,JacksonSiteLink> sitelinks)
sitelinks - new valuepublic java.util.Map<java.lang.String,SiteLink> getSiteLinks()
ItemDocumentSiteLink objects.getSiteLinks in interface ItemDocumentpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage