Class LabeledDocumentUpdateImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
org.wikidata.wdtk.datamodel.implementation.LabeledDocumentUpdateImpl
- All Implemented Interfaces:
EntityUpdate,LabeledDocumentUpdate,LabeledStatementDocumentUpdate,StatementDocumentUpdate
- Direct Known Subclasses:
MediaInfoUpdateImpl,TermedDocumentUpdateImpl
public abstract class LabeledDocumentUpdateImpl
extends StatementDocumentUpdateImpl
implements LabeledStatementDocumentUpdate
Jackson implementation of
LabeledStatementDocumentUpdate.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLabeledDocumentUpdateImpl(EntityIdValue entityId, long revisionId, TermUpdate labels, StatementUpdate statements) Initializes new entity update. -
Method Summary
Modifier and TypeMethodDescriptionReturns changes in entity labels.booleanisEmpty()Checks whether the update is empty.Methods inherited from class org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
getStatementsMethods 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, getEntityIdMethods inherited from interface org.wikidata.wdtk.datamodel.interfaces.StatementDocumentUpdate
getStatements
-
Constructor Details
-
LabeledDocumentUpdateImpl
protected LabeledDocumentUpdateImpl(EntityIdValue entityId, long revisionId, TermUpdate labels, 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 availablelabels- changes in entity labels, possibly emptystatements- 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- Overrides:
isEmptyin classStatementDocumentUpdateImpl- Returns:
trueif the update is empty,falseotherwise
-
getLabels
Description copied from interface:LabeledDocumentUpdateReturns changes in entity labels.- Specified by:
getLabelsin interfaceLabeledDocumentUpdate- Returns:
- update of entity labels, possibly empty
-