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
ModifierConstructorDescriptionprotected
TermedDocumentUpdateImpl
(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.boolean
isEmpty()
Checks whether the update is empty.Methods inherited from class org.wikidata.wdtk.datamodel.implementation.LabeledDocumentUpdateImpl
getLabels
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.LabeledDocumentUpdate
getLabels
Methods 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 ornull
for 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 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 classLabeledDocumentUpdateImpl
- Returns:
true
if the update is empty,false
otherwise
-
getDescriptions
Description copied from interface:TermedDocumentUpdate
Returns changes in entity descriptions.- Specified by:
getDescriptions
in interfaceTermedDocumentUpdate
- Returns:
- update of entity descriptions, possibly empty
-
getAliases
Description copied from interface:TermedDocumentUpdate
Returns changes in entity aliases. AllAliasUpdate
instances are non-empty. If language code is not in the returned map, aliases for that language do not change.- Specified by:
getAliases
in interfaceTermedDocumentUpdate
- Returns:
- changes in aliases
-