Class StatementDocumentUpdateImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
- All Implemented Interfaces:
EntityUpdate
,StatementDocumentUpdate
- Direct Known Subclasses:
FormUpdateImpl
,LabeledDocumentUpdateImpl
,LexemeUpdateImpl
,SenseUpdateImpl
public abstract class StatementDocumentUpdateImpl
extends EntityUpdateImpl
implements StatementDocumentUpdate
Jackson implementation of
StatementDocumentUpdate
.- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
StatementDocumentUpdateImpl
(EntityIdValue entityId, long revisionId, StatementUpdate statements) Initializes new entity update. -
Method Summary
Modifier and TypeMethodDescriptionReturns statement changes included in this update.boolean
isEmpty()
Checks whether the update is empty.Methods inherited from class org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
getBaseRevisionId, getEntityId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityUpdate
getBaseRevisionId, getEntityId
-
Constructor Details
-
StatementDocumentUpdateImpl
protected StatementDocumentUpdateImpl(EntityIdValue entityId, long revisionId, StatementUpdate statements) Initializes new entity update.- Parameters:
entityId
- ID of the entity that is to be updatedrevisionId
- base entity revision to be updated or zero if not availablestatements
- changes in entity statements, possibly empty- Throws:
NullPointerException
- if any required parameter isnull
IllegalArgumentException
- if any parameters or their combination is invalid
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:EntityUpdate
Checks whether the update is empty. Empty update will not change the entity in any way.- Specified by:
isEmpty
in interfaceEntityUpdate
- Returns:
true
if the update is empty,false
otherwise
-
getStatements
Description copied from interface:StatementDocumentUpdate
Returns statement changes included in this update.- Specified by:
getStatements
in interfaceStatementDocumentUpdate
- Returns:
- statement update, possibly empty
-