public interface TermedStatementDocument extends TermedDocument, LabeledStatementDocument
TermedDocument and StatementDocument.
It is necessary to introduce this interface because the conflict between
the return types of the withRevisionId method in both interfaces needs to be resolved.| Modifier and Type | Method and Description |
|---|---|
TermedStatementDocument |
withAliases(String language,
List<MonolingualTextValue> aliases)
Returns a new version of this document with a new list of aliases
for the given language code.
|
TermedStatementDocument |
withDescription(MonolingualTextValue newDescription)
Returns a new version of this document with a new description
(which overrides any existing description).
|
TermedStatementDocument |
withLabel(MonolingualTextValue newLabel)
Returns a new version of this document with a new label
(which overrides any existing label for this language).
|
TermedStatementDocument |
withoutStatementIds(Set<String> statementIds)
Returns a new version of this document where all statements matching
any of the statement ids provided have been removed.
|
TermedStatementDocument |
withRevisionId(long newRevisionId)
Returns a copy of this document with an updated revision id.
|
TermedStatementDocument |
withStatement(Statement statement)
Returns a new version of this document which includes the
statement provided.
|
findDescription, getAliases, getDescriptionsfindLabel, getLabelsfindStatement, findStatement, findStatementEntityIdValue, findStatementEntityIdValue, findStatementGlobeCoordinatesValue, findStatementGlobeCoordinatesValue, findStatementGroup, findStatementGroup, findStatementItemIdValue, findStatementItemIdValue, findStatementMonolingualTextValue, findStatementMonolingualTextValue, findStatementPropertyIdValue, findStatementPropertyIdValue, findStatementQuantityValue, findStatementQuantityValue, findStatementStringValue, findStatementStringValue, findStatementTimeValue, findStatementTimeValue, findStatementValue, findStatementValue, getAllStatements, getStatementGroups, hasStatement, hasStatement, hasStatementValue, hasStatementValue, hasStatementValue, hasStatementValuegetEntityId, getRevisionIdTermedStatementDocument withRevisionId(long newRevisionId)
TermedDocumentwithRevisionId in interface EntityDocumentwithRevisionId in interface LabeledDocumentwithRevisionId in interface LabeledStatementDocumentwithRevisionId in interface StatementDocumentwithRevisionId in interface TermedDocumentTermedStatementDocument withLabel(MonolingualTextValue newLabel)
TermedDocumentwithLabel in interface LabeledDocumentwithLabel in interface LabeledStatementDocumentwithLabel in interface TermedDocumentTermedStatementDocument withDescription(MonolingualTextValue newDescription)
TermedDocumentwithDescription in interface TermedDocumentTermedStatementDocument withAliases(String language, List<MonolingualTextValue> aliases)
TermedDocumentwithAliases in interface TermedDocumentlanguage - the language code for which the aliases should be setaliases - the aliases to set for this language. The language codes they
contain should all match the supplied language.TermedStatementDocument withStatement(Statement statement)
StatementDocumentwithStatement in interface LabeledStatementDocumentwithStatement in interface StatementDocumentstatement - the statement to add or update in the documentTermedStatementDocument withoutStatementIds(Set<String> statementIds)
StatementDocumentwithoutStatementIds in interface LabeledStatementDocumentwithoutStatementIds in interface StatementDocumentstatementIds - the identifiers of the statements to removeCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage