public abstract class EntityDocumentImpl extends Object implements EntityDocument
EntityDocument
. 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.Modifier and Type | Field and Description |
---|---|
protected String |
entityId
The id of the entity that the document refers to.
|
protected long |
revisionId
The revision id of this document.
|
protected String |
siteIri
The site IRI that this document refers to, or null if not specified.
|
Modifier and Type | Method and Description |
---|---|
String |
getJsonId()
Returns the string id of the entity that this document refers to.
|
long |
getRevisionId()
Returns the revision ID of this document, or 0 if no id is known.
|
String |
getSiteIri() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityId, withRevisionId
protected final String entityId
The site IRI, which would also be required to create a complete
EntityIdValue
, is not encoded in JSON. It needs to be injected
from the outside (if not, we default to Wikidata).
protected final String siteIri
EntityIdValue.getSiteIri()
protected final long revisionId
EntityDocument.getRevisionId()
public String getJsonId()
public String getSiteIri()
public long getRevisionId()
EntityDocument
getRevisionId
in interface EntityDocument
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage