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
ModifierConstructorDescriptionprotected
LabeledDocumentUpdateImpl
(EntityIdValue entityId, long revisionId, TermUpdate labels, StatementUpdate statements) Initializes new entity update. -
Method Summary
Modifier and TypeMethodDescriptionReturns changes in entity labels.boolean
isEmpty()
Checks whether the update is empty.Methods inherited from class org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
getStatements
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
Methods 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 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
- Overrides:
isEmpty
in classStatementDocumentUpdateImpl
- Returns:
true
if the update is empty,false
otherwise
-
getLabels
Description copied from interface:LabeledDocumentUpdate
Returns changes in entity labels.- Specified by:
getLabels
in interfaceLabeledDocumentUpdate
- Returns:
- update of entity labels, possibly empty
-