Class TermedDocumentUpdateImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
org.wikidata.wdtk.datamodel.implementation.LabeledDocumentUpdateImpl
org.wikidata.wdtk.datamodel.implementation.TermedDocumentUpdateImpl
- All Implemented Interfaces:
EntityUpdate,LabeledDocumentUpdate,LabeledStatementDocumentUpdate,StatementDocumentUpdate,TermedDocumentUpdate,TermedStatementDocumentUpdate
- Direct Known Subclasses:
ItemUpdateImpl,PropertyUpdateImpl
public abstract class TermedDocumentUpdateImpl
extends LabeledDocumentUpdateImpl
implements TermedStatementDocumentUpdate
Jackson implementation of
TermedStatementDocumentUpdate.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTermedDocumentUpdateImpl(EntityIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements) Initializes new entity update. -
Method Summary
Modifier and TypeMethodDescriptionReturns changes in entity aliases.Returns changes in entity descriptions.booleanisEmpty()Checks whether the update is empty.Methods inherited from class org.wikidata.wdtk.datamodel.implementation.LabeledDocumentUpdateImpl
getLabelsMethods 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.LabeledDocumentUpdate
getLabelsMethods inherited from interface org.wikidata.wdtk.datamodel.interfaces.StatementDocumentUpdate
getStatements
-
Constructor Details
-
TermedDocumentUpdateImpl
protected TermedDocumentUpdateImpl(EntityIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, 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 ornullfor no changedescriptions- changes in entity descriptions, possibly emptyaliases- changes in entity aliases, possibly emptystatements- changes in entity statements, possibly empty- Throws:
NullPointerException- if any required parameter or its part 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 classLabeledDocumentUpdateImpl- Returns:
trueif the update is empty,falseotherwise
-
getDescriptions
Description copied from interface:TermedDocumentUpdateReturns changes in entity descriptions.- Specified by:
getDescriptionsin interfaceTermedDocumentUpdate- Returns:
- update of entity descriptions, possibly empty
-
getAliases
Description copied from interface:TermedDocumentUpdateReturns changes in entity aliases. AllAliasUpdateinstances are non-empty. If language code is not in the returned map, aliases for that language do not change.- Specified by:
getAliasesin interfaceTermedDocumentUpdate- Returns:
- changes in aliases
-