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
ConstructorsModifierConstructorDescriptionprotectedStatementDocumentUpdateImpl(EntityIdValue entityId, long revisionId, StatementUpdate statements) Initializes new entity update. -
Method Summary
Modifier and TypeMethodDescriptionReturns statement changes included in this update.booleanisEmpty()Checks whether the update is empty.Methods inherited from class org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
getBaseRevisionId, getEntityIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 isnullIllegalArgumentException- if any parameters or their combination is invalid
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:EntityUpdateChecks whether the update is empty. Empty update will not change the entity in any way.- Specified by:
isEmptyin interfaceEntityUpdate- Returns:
trueif the update is empty,falseotherwise
-
getStatements
Description copied from interface:StatementDocumentUpdateReturns statement changes included in this update.- Specified by:
getStatementsin interfaceStatementDocumentUpdate- Returns:
- statement update, possibly empty
-