public 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, siteIri| Constructor and Description |
|---|
JacksonItemDocument()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
EntityIdValue |
getEntityId()
Return the ID of the entity that the data refers to
|
ItemIdValue |
getItemId()
Return the ID of the item that the data refers to.
|
Map<String,SiteLink> |
getSiteLinks()
Get a Map of site keys to
SiteLink objects. |
int |
hashCode() |
void |
setSiteLinks(Map<String,JacksonSiteLink> sitelinks)
Sets the site links to the given value.
|
String |
toString() |
getAliases, getAllStatements, getDescriptions, getJsonClaims, getJsonId, getLabels, getSiteIri, getStatementGroups, setAliases, setDescriptions, setJsonClaims, setJsonId, setLabels, setSiteIriclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAliases, getDescriptions, getLabelsgetAllStatements, getStatementGroupspublic 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(Map<String,JacksonSiteLink> sitelinks)
sitelinks - new valuepublic Map<String,SiteLink> getSiteLinks()
ItemDocumentSiteLink objects.getSiteLinks in interface ItemDocumentCopyright © 2014–2015 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage