public abstract class TermedDocumentUpdateImpl extends LabeledDocumentUpdateImpl implements TermedStatementDocumentUpdate
TermedStatementDocumentUpdate
.Modifier | Constructor and Description |
---|---|
protected |
TermedDocumentUpdateImpl(EntityIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements)
Initializes new entity update.
|
Modifier and Type | Method and Description |
---|---|
Map<String,AliasUpdate> |
getAliases()
Returns changes in entity aliases.
|
TermUpdate |
getDescriptions()
Returns changes in entity descriptions.
|
boolean |
isEmpty()
Checks whether the update is empty.
|
getLabels
getStatements
getBaseRevisionId, getEntityId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabels
getStatements
getBaseRevisionId, getEntityId
protected TermedDocumentUpdateImpl(EntityIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String,AliasUpdate> aliases, StatementUpdate statements)
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 or null
for no changedescriptions
- changes in entity descriptions, possibly emptyaliases
- changes in entity aliases, possibly emptystatements
- changes in entity statements, possibly emptyNullPointerException
- if any required parameter or its part is null
IllegalArgumentException
- if any parameters or their combination is invalidpublic boolean isEmpty()
EntityUpdate
isEmpty
in interface EntityUpdate
isEmpty
in class LabeledDocumentUpdateImpl
true
if the update is empty, false
otherwisepublic TermUpdate getDescriptions()
TermedDocumentUpdate
getDescriptions
in interface TermedDocumentUpdate
public Map<String,AliasUpdate> getAliases()
TermedDocumentUpdate
AliasUpdate
instances are
non-empty. If language code is not in the returned map, aliases for that
language do not change.getAliases
in interface TermedDocumentUpdate
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage