public class PropertyUpdateBuilder extends TermedDocumentUpdateBuilder
PropertyUpdate objects.| Modifier and Type | Method and Description |
|---|---|
PropertyUpdateBuilder |
append(PropertyUpdate update)
Replays all changes in provided update into this builder object.
|
PropertyUpdate |
build()
Creates new
TermedStatementDocumentUpdate object with contents of
this builder object. |
static PropertyUpdateBuilder |
forBaseRevision(PropertyDocument revision)
Creates new builder object for constructing update of given base property
entity revision.
|
static PropertyUpdateBuilder |
forBaseRevisionId(PropertyIdValue propertyId,
long revisionId)
Creates new builder object for constructing update of property entity with
given revision ID.
|
static PropertyUpdateBuilder |
forEntityId(PropertyIdValue propertyId)
Creates new builder object for constructing update of property entity with
given ID.
|
PropertyUpdateBuilder |
updateAliases(String language,
AliasUpdate update)
Updates entity aliases.
|
PropertyUpdateBuilder |
updateDescriptions(TermUpdate update)
Updates entity descriptions.
|
PropertyUpdateBuilder |
updateLabels(TermUpdate update)
Updates entity labels.
|
PropertyUpdateBuilder |
updateStatements(StatementUpdate update)
Updates entity statements.
|
forBaseRevision, forBaseRevisionId, forEntityIdforBaseRevisionforBaseRevisionforBaseRevisionpublic static PropertyUpdateBuilder forBaseRevisionId(PropertyIdValue propertyId, long revisionId)
propertyId - ID of the property entity that is to be updatedrevisionId - ID of the base property revision to be updated or zero if not
availableNullPointerException - if propertyId is nullIllegalArgumentException - if propertyId is a placeholder IDpublic static PropertyUpdateBuilder forEntityId(PropertyIdValue propertyId)
propertyId - ID of the property entity that is to be updatedNullPointerException - if propertyId is nullIllegalArgumentException - if propertyId is a placeholder IDpublic static PropertyUpdateBuilder forBaseRevision(PropertyDocument revision)
revision - base property entity revision to be updatedNullPointerException - if revision is nullIllegalArgumentException - if revision has placeholder IDpublic PropertyUpdateBuilder updateStatements(StatementUpdate update)
StatementDocumentUpdateBuilderupdateStatements in class TermedDocumentUpdateBuilderupdate - statement update, possibly emptythis (fluent method)public PropertyUpdateBuilder updateLabels(TermUpdate update)
LabeledDocumentUpdateBuilderupdateLabels in class TermedDocumentUpdateBuilderupdate - changes in entity labelsthis (fluent method)public PropertyUpdateBuilder updateDescriptions(TermUpdate update)
TermedDocumentUpdateBuilderupdateDescriptions in class TermedDocumentUpdateBuilderupdate - changes in entity descriptionsthis (fluent method)public PropertyUpdateBuilder updateAliases(String language, AliasUpdate update)
TermedDocumentUpdateBuilderupdateAliases in class TermedDocumentUpdateBuilderlanguage - language code of the altered aliasesupdate - alias changesthis (fluent method)public PropertyUpdateBuilder append(PropertyUpdate update)
update - property update to replaythis (fluent method)NullPointerException - if update is nullIllegalArgumentException - if update cannot be applied to base entity revision (if
available)public PropertyUpdate build()
TermedDocumentUpdateBuilderTermedStatementDocumentUpdate object with contents of
this builder object.build in class TermedDocumentUpdateBuilderCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage