| 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.
|
| org.wikidata.wdtk.datamodel.json.jackson |
Main package for Jackson-compatible implementations of the WDTK datamodel
interfaces.
|
| org.wikidata.wdtk.datamodel.json.jackson.datavalues |
Jackson-compatible implementation of all WDTK
Value interfaces for use as
snak values. |
| Modifier and Type | Method | Description |
|---|---|---|
MonolingualTextValue |
DatamodelConverter.copy(MonolingualTextValue object) |
Copies a
MonolingualTextValue. |
MonolingualTextValue |
AbstractTermedStatementDocument.findStatementMonolingualTextValue(java.lang.String propertyId) |
|
MonolingualTextValue |
AbstractTermedStatementDocument.findStatementMonolingualTextValue(PropertyIdValue propertyIdValue) |
|
static MonolingualTextValue |
Datamodel.makeMonolingualTextValue(java.lang.String text,
java.lang.String languageCode) |
Creates a
MonolingualTextValue. |
| Modifier and Type | Method | Description |
|---|---|---|
MonolingualTextValue |
DatamodelConverter.copy(MonolingualTextValue object) |
Copies a
MonolingualTextValue. |
static boolean |
Equality.equalsMonolingualTextValue(MonolingualTextValue o1,
java.lang.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.
|
static java.lang.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 | Method | Description |
|---|---|---|
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks) |
Creates an
ItemDocument with empty revision id. |
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks,
long revisionId) |
Creates an
ItemDocument. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId) |
Creates a
PropertyDocument with empty revision id. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
Creates a
PropertyDocument. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
DatatypeIdValue datatypeId) |
Creates a
PropertyDocument without statements and empty revision
id. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
MonolingualTextValueImpl |
| Modifier and Type | Method | Description |
|---|---|---|
MonolingualTextValue |
DataObjectFactoryImpl.getMonolingualTextValue(java.lang.String text,
java.lang.String languageCode) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<java.lang.String,java.util.List<MonolingualTextValue>> |
TermedStatementDocumentImpl.getAliases() |
|
java.util.Map<java.lang.String,MonolingualTextValue> |
TermedStatementDocumentImpl.getDescriptions() |
|
java.util.Map<java.lang.String,MonolingualTextValue> |
TermedStatementDocumentImpl.getLabels() |
| Modifier and Type | Method | Description |
|---|---|---|
ItemDocument |
DataObjectFactoryImpl.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks) |
|
ItemDocument |
DataObjectFactoryImpl.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks,
long revisionId) |
|
PropertyDocument |
DataObjectFactoryImpl.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId) |
|
PropertyDocument |
DataObjectFactoryImpl.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
|
PropertyDocument |
DataObjectFactoryImpl.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
DatatypeIdValue datatypeId) |
| Modifier and Type | Method | Description |
|---|---|---|
MonolingualTextValue |
StatementDocument.findStatementMonolingualTextValue(java.lang.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 |
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. |
MonolingualTextValue |
DataObjectFactory.getMonolingualTextValue(java.lang.String text,
java.lang.String languageCode) |
Creates a
MonolingualTextValue. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<java.lang.String,java.util.List<MonolingualTextValue>> |
TermedDocument.getAliases() |
Return a Map from Wikibase language codes to lists of alias labels for a
given language.
|
java.util.Map<java.lang.String,MonolingualTextValue> |
TermedDocument.getDescriptions() |
Return a Map from Wikibase language codes to descriptions.
|
java.util.Map<java.lang.String,MonolingualTextValue> |
TermedDocument.getLabels() |
Return a Map from Wikibase language codes to labels.
|
| Modifier and Type | Method | Description |
|---|---|---|
T |
ValueVisitor.visit(MonolingualTextValue value) |
Visits a MonolingualTextValue and returns a result.
|
| Modifier and Type | Method | Description |
|---|---|---|
ItemDocument |
DataObjectFactory.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks) |
Deprecated.
|
ItemDocument |
DataObjectFactory.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks,
long revisionId) |
Creates an
ItemDocument. |
PropertyDocument |
DataObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId) |
|
PropertyDocument |
DataObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
Creates a
PropertyDocument. |
PropertyDocument |
DataObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
DatatypeIdValue datatypeId) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
JacksonMonolingualTextValue |
Jackson representation of
MonolingualTextValue data used in labels,
aliases, and descriptions in JSON. |
| Modifier and Type | Method | Description |
|---|---|---|
MonolingualTextValue |
JacksonObjectFactory.getMonolingualTextValue(java.lang.String text,
java.lang.String languageCode) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<java.lang.String,java.util.List<MonolingualTextValue>> |
JacksonTermedStatementDocument.getAliases() |
|
java.util.Map<java.lang.String,MonolingualTextValue> |
JacksonTermedStatementDocument.getDescriptions() |
|
java.util.Map<java.lang.String,MonolingualTextValue> |
JacksonTermedStatementDocument.getLabels() |
| Modifier and Type | Method | Description |
|---|---|---|
ItemDocument |
JacksonObjectFactory.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks) |
|
ItemDocument |
JacksonObjectFactory.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks,
long revisionId) |
|
PropertyDocument |
JacksonObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId) |
|
PropertyDocument |
JacksonObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
|
PropertyDocument |
JacksonObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
DatatypeIdValue datatypeId) |
| Constructor | Description |
|---|---|
JacksonMonolingualTextValue(MonolingualTextValue mltv) |
Copy constructor.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
JacksonValueMonolingualText |
Jackson implementation of
MonolingualTextValue. |
Copyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage