| 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 |
|---|---|
DatatypeIdValue |
DatamodelConverter.copy(DatatypeIdValue object)
Copies a
DatatypeIdValue. |
static DatatypeIdValue |
Datamodel.makeDatatypeIdValue(String id)
Deprecated.
|
static DatatypeIdValue |
Datamodel.makeDatatypeIdValueFromJsonString(String jsonString)
Creates a
DatatypeIdValue. |
| Modifier and Type | Method and Description |
|---|---|
DatatypeIdValue |
DatamodelConverter.copy(DatatypeIdValue object)
Copies a
DatatypeIdValue. |
static boolean |
Equality.equalsDatatypeIdValue(DatatypeIdValue o1,
Object o2)
Returns
true if the parameters are two DatatypeIdValue objects
with exactly the same data. |
static PropertyDocumentBuilder |
PropertyDocumentBuilder.forPropertyIdAndDatatype(PropertyIdValue propertyIdValue,
DatatypeIdValue datatype)
Starts the construction of an
PropertyDocument with the given id. |
static int |
Hash.hashCode(DatatypeIdValue o)
Returns a hash code for the given object.
|
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
DatatypeIdValue datatypeId)
Creates an empty
PropertyDocument. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId)
Creates a
PropertyDocument with empty revision id. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId)
Creates a
PropertyDocument. |
static String |
ToString.toString(DatatypeIdValue o)
Returns a human-readable string representation of the given object.
|
| Constructor and Description |
|---|
PropertyDocumentBuilder(PropertyIdValue propertyIdValue,
DatatypeIdValue datatype)
Constructor when building the property document from scratch.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DatatypeIdImpl
Jackson implementation of
DatatypeIdValue. |
| Modifier and Type | Method and Description |
|---|---|
DatatypeIdValue |
PropertyDocumentImpl.getDatatype() |
DatatypeIdValue |
DataObjectFactoryImpl.getDatatypeIdValue(String id) |
DatatypeIdValue |
DataObjectFactoryImpl.getDatatypeIdValueFromJsonId(String jsonId) |
| Modifier and Type | Method and Description |
|---|---|
PropertyDocument |
DataObjectFactoryImpl.getPropertyDocument(PropertyIdValue propertyId,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
| Constructor and Description |
|---|
DatatypeIdImpl(DatatypeIdValue other)
Copy constructor.
|
PropertyDocumentImpl(PropertyIdValue id,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statements,
DatatypeIdValue datatype,
long revisionId)
Constructor for instances that are built manually, rather than from JSON.
|
| Modifier and Type | Method and Description |
|---|---|
DatatypeIdValue |
PropertyDocument.getDatatype()
Get the datatype id of the datatype defined for this property.
|
DatatypeIdValue |
DataObjectFactory.getDatatypeIdValue(String id)
Deprecated.
|
DatatypeIdValue |
DataObjectFactory.getDatatypeIdValueFromJsonId(String jsonId)
Creates a
DatatypeIdValue. |
| Modifier and Type | Method and Description |
|---|---|
PropertyDocument |
DataObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId)
Creates a
PropertyDocument. |
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