public interface LabeledDocument extends EntityDocument
| Modifier and Type | Method and Description |
|---|---|
default String |
findLabel(String languageCode)
Returns the string label for the given language code, or null if there is
no label for this code.
|
Map<String,MonolingualTextValue> |
getLabels()
Return a Map from Wikibase language codes to labels.
|
LabeledDocument |
withLabel(MonolingualTextValue newLabel)
Returns a new version of this document with a new label
(which overrides any existing label for this language).
|
LabeledDocument |
withRevisionId(long newRevisionId)
Returns a copy of this document with an updated revision id.
|
getEntityId, getRevisionIdMap<String,MonolingualTextValue> getLabels()
default String findLabel(String languageCode)
getLabels().languageCode - a string that represents languageLabeledDocument withRevisionId(long newRevisionId)
withRevisionId in interface EntityDocumentLabeledDocument withLabel(MonolingualTextValue newLabel)
Copyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage