Interface EntityRedirectDocument
- All Superinterfaces:
EntityDocument
- All Known Implementing Classes:
EntityRedirectDocumentImpl
Interface for entity redirect.
- Author:
- Thomas Pellissier Tanon
-
Method Summary
Modifier and TypeMethodDescriptionReturns the ID of the entity that the redirection target to.withRevisionId
(long newRevisionId) Returns a copy of this document with an updated revision id.Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityDocument
getEntityId, getRevisionId
-
Method Details
-
getTargetId
EntityIdValue getTargetId()Returns the ID of the entity that the redirection target to.- Returns:
- entity id
-
withRevisionId
Description copied from interface:EntityDocument
Returns a copy of this document with an updated revision id.- Specified by:
withRevisionId
in interfaceEntityDocument
-