Interface EntityUpdate
- All Known Subinterfaces:
FormUpdate
,ItemUpdate
,LabeledDocumentUpdate
,LabeledStatementDocumentUpdate
,LexemeUpdate
,MediaInfoUpdate
,PropertyUpdate
,SenseUpdate
,StatementDocumentUpdate
,TermedDocumentUpdate
,TermedStatementDocumentUpdate
- All Known Implementing Classes:
EntityUpdateImpl
,FormUpdateImpl
,ItemUpdateImpl
,LabeledDocumentUpdateImpl
,LexemeUpdateImpl
,MediaInfoUpdateImpl
,PropertyUpdateImpl
,SenseUpdateImpl
,StatementDocumentUpdateImpl
,TermedDocumentUpdateImpl
public interface EntityUpdate
Collection of changes that can be applied to an entity via Wikibase API.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns entity revision, upon which this update is built.Returns ID of the entity that is being updated.boolean
isEmpty()
Checks whether the update is empty.
-
Method Details
-
getEntityId
EntityIdValue getEntityId()Returns ID of the entity that is being updated.- Returns:
- ID of the updated entity
-
getBaseRevisionId
long getBaseRevisionId()Returns entity revision, upon which this update is built. This might not be the latest revision of the entity as currently stored in Wikibase. If base revision was not provided, this method returns zero.- Returns:
- entity revision that is being updated or zero
-
isEmpty
boolean isEmpty()Checks whether the update is empty. Empty update will not change the entity in any way.- Returns:
true
if the update is empty,false
otherwise
-