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.
|
getLabelsgetStatementsgetBaseRevisionId, getEntityIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLabelsgetStatementsgetBaseRevisionId, getEntityIdprotected 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 nullIllegalArgumentException - if any parameters or their combination is invalidpublic boolean isEmpty()
EntityUpdateisEmpty in interface EntityUpdateisEmpty in class LabeledDocumentUpdateImpltrue if the update is empty, false otherwisepublic TermUpdate getDescriptions()
TermedDocumentUpdategetDescriptions in interface TermedDocumentUpdatepublic Map<String,AliasUpdate> getAliases()
TermedDocumentUpdateAliasUpdate instances are
non-empty. If language code is not in the returned map, aliases for that
language do not change.getAliases in interface TermedDocumentUpdateCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage