| Package | Description |
|---|---|
| org.wikidata.wdtk.datamodel.helpers |
Package for mostly static helper code to work with data objects.
|
| org.wikidata.wdtk.datamodel.implementation |
Basic implementation for objects representing Wikibase data and related factories.
|
| org.wikidata.wdtk.datamodel.interfaces |
Interfaces for representing Wikibase data and related factories.
|
| Modifier and Type | Method and Description |
|---|---|
MonolingualTextValue |
DatamodelConverter.copy(MonolingualTextValue object)
Copies a
MonolingualTextValue |
static MonolingualTextValue |
Datamodel.makeMonolingualTextValue(String text,
String languageCode)
Creates a
MonolingualTextValue. |
| Modifier and Type | Method and Description |
|---|---|
AliasUpdateBuilder |
AliasUpdateBuilder.add(MonolingualTextValue alias)
Adds new alias.
|
MonolingualTextValue |
DatamodelConverter.copy(MonolingualTextValue object)
Copies a
MonolingualTextValue |
static boolean |
Equality.equalsMonolingualTextValue(MonolingualTextValue o1,
Object o2)
Returns
true if the parameters are two MonolingualTextValue
objects with exactly the same data. |
static int |
Hash.hashCode(MonolingualTextValue o)
Returns a hash code for the given object.
|
TermUpdateBuilder |
TermUpdateBuilder.put(MonolingualTextValue term)
Adds or changes term.
|
AliasUpdateBuilder |
AliasUpdateBuilder.remove(MonolingualTextValue alias)
Removed existing alias.
|
static String |
ToString.toString(MonolingualTextValue o)
Returns a human-readable string representation of the given object.
|
Value |
DatamodelConverter.visit(MonolingualTextValue value) |
T |
EntityDocumentBuilder.withAlias(MonolingualTextValue mtv)
Adds an additional alias to the constructed document.
|
T |
EntityDocumentBuilder.withDescription(MonolingualTextValue mtv)
Adds an additional description to the constructed document.
|
T |
EntityDocumentBuilder.withLabel(MonolingualTextValue mtv)
Adds an additional label to the constructed document.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MonolingualTextValueImpl
Jackson implementation of
MonolingualTextValue. |
class |
TermImpl
Jackson representation of
MonolingualTextValue data used in labels,
aliases, and descriptions in JSON. |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<MonolingualTextValue>> |
TermedStatementDocumentImpl.aliases |
protected Map<String,MonolingualTextValue> |
TermedStatementDocumentImpl.descriptions |
| Modifier and Type | Method and Description |
|---|---|
MonolingualTextValue |
DataObjectFactoryImpl.getMonolingualTextValue(String text,
String languageCode) |
| Modifier and Type | Method and Description |
|---|---|
List<MonolingualTextValue> |
AliasUpdateImpl.getAdded() |
Map<String,List<MonolingualTextValue>> |
TermedStatementDocumentImpl.getAliases() |
Map<String,MonolingualTextValue> |
TermedStatementDocumentImpl.getDescriptions() |
Map<String,MonolingualTextValue> |
SenseDocumentImpl.getGlosses() |
Map<String,MonolingualTextValue> |
LexemeDocumentImpl.getLemmas() |
Map<String,MonolingualTextValue> |
TermUpdateImpl.getModified() |
Optional<List<MonolingualTextValue>> |
AliasUpdateImpl.getRecreated() |
Set<MonolingualTextValue> |
AliasUpdateImpl.getRemoved() |
Map<String,MonolingualTextValue> |
FormDocumentImpl.getRepresentations() |
protected static Map<String,List<MonolingualTextValue>> |
TermedStatementDocumentImpl.withAliases(Map<String,List<MonolingualTextValue>> values,
String language,
List<MonolingualTextValue> aliases) |
| Modifier and Type | Method and Description |
|---|---|
PropertyDocument |
PropertyDocumentImpl.withDescription(MonolingualTextValue newDescription) |
ItemDocument |
ItemDocumentImpl.withDescription(MonolingualTextValue newDescription) |
SenseDocument |
SenseDocumentImpl.withGloss(MonolingualTextValue gloss) |
PropertyDocument |
PropertyDocumentImpl.withLabel(MonolingualTextValue newLabel) |
ItemDocument |
ItemDocumentImpl.withLabel(MonolingualTextValue newLabel) |
MediaInfoDocument |
MediaInfoDocumentImpl.withLabel(MonolingualTextValue newLabel) |
LexemeDocument |
LexemeDocumentImpl.withLemma(MonolingualTextValue lemma) |
FormDocument |
FormDocumentImpl.withRepresentation(MonolingualTextValue representation) |
| Constructor and Description |
|---|
TermImpl(MonolingualTextValue other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
default MonolingualTextValue |
StatementDocument.findStatementMonolingualTextValue(PropertyIdValue propertyIdValue)
Returns the unique
MonolingualTextValue for the given property,
or null if there are zero or many such values given in statements for
this property. |
default MonolingualTextValue |
StatementDocument.findStatementMonolingualTextValue(String propertyId)
Returns the unique
MonolingualTextValue for the given property,
or null if there are zero or many such values given in statements for
this property. |
MonolingualTextValue |
DataObjectFactory.getMonolingualTextValue(String text,
String languageCode)
Creates a
MonolingualTextValue. |
| Modifier and Type | Method and Description |
|---|---|
List<MonolingualTextValue> |
AliasUpdate.getAdded()
Returns aliases added in this update.
|
Map<String,List<MonolingualTextValue>> |
TermedDocument.getAliases()
Return a Map from Wikibase language codes to lists of alias labels for a
given language.
|
Map<String,MonolingualTextValue> |
TermedDocument.getDescriptions()
Return a Map from Wikibase language codes to descriptions.
|
Map<String,MonolingualTextValue> |
SenseDocument.getGlosses()
Return the human readable description of the sense indexed by Wikimedia language code
|
Map<String,MonolingualTextValue> |
LabeledDocument.getLabels()
Return a Map from Wikibase language codes to labels.
|
Map<String,MonolingualTextValue> |
LexemeDocument.getLemmas()
Return the human readable representations of the lexeme indexed by Wikimedia language code
|
Map<String,MonolingualTextValue> |
TermUpdate.getModified()
Returns terms added or modified in this update.
|
Optional<List<MonolingualTextValue>> |
AliasUpdate.getRecreated()
Returns the new list of aliases that completely replaces current aliases.
|
Set<MonolingualTextValue> |
AliasUpdate.getRemoved()
Returns aliases removed in this update.
|
Map<String,MonolingualTextValue> |
FormDocument.getRepresentations()
Return the human readable representations of the form indexed by Wikimedia language code
|
| Modifier and Type | Method and Description |
|---|---|
T |
ValueVisitor.visit(MonolingualTextValue value)
Visits a MonolingualTextValue and returns a result.
|
ItemDocument |
ItemDocument.withDescription(MonolingualTextValue newDescription) |
TermedStatementDocument |
TermedStatementDocument.withDescription(MonolingualTextValue newDescription) |
PropertyDocument |
PropertyDocument.withDescription(MonolingualTextValue newDescription) |
TermedDocument |
TermedDocument.withDescription(MonolingualTextValue newDescription)
Returns a new version of this document with a new description
(which overrides any existing description).
|
SenseDocument |
SenseDocument.withGloss(MonolingualTextValue gloss) |
LabeledStatementDocument |
LabeledStatementDocument.withLabel(MonolingualTextValue newLabel) |
ItemDocument |
ItemDocument.withLabel(MonolingualTextValue newLabel) |
MediaInfoDocument |
MediaInfoDocument.withLabel(MonolingualTextValue newLabel) |
TermedStatementDocument |
TermedStatementDocument.withLabel(MonolingualTextValue newLabel) |
LabeledDocument |
LabeledDocument.withLabel(MonolingualTextValue newLabel)
Returns a new version of this document with a new label
(which overrides any existing label for this language).
|
PropertyDocument |
PropertyDocument.withLabel(MonolingualTextValue newLabel) |
TermedDocument |
TermedDocument.withLabel(MonolingualTextValue newLabel)
Returns a new version of this document with a new label
(which overrides any existing label for this language).
|
LexemeDocument |
LexemeDocument.withLemma(MonolingualTextValue lemma) |
FormDocument |
FormDocument.withRepresentation(MonolingualTextValue representation) |
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