| 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 |
|---|---|---|
QuantityValue |
DatamodelConverter.copy(QuantityValue object) |
Copies a
QuantityValue. |
QuantityValue |
AbstractTermedStatementDocument.findStatementQuantityValue(java.lang.String propertyId) |
|
QuantityValue |
AbstractTermedStatementDocument.findStatementQuantityValue(PropertyIdValue propertyIdValue) |
|
static QuantityValue |
Datamodel.makeQuantityValue(long numericValue,
long lowerBound,
long upperBound) |
Creates a
QuantityValue from long numbers. |
static QuantityValue |
Datamodel.makeQuantityValue(java.math.BigDecimal numericValue) |
Creates a
QuantityValue with an empty unit and without bounds. |
static QuantityValue |
Datamodel.makeQuantityValue(java.math.BigDecimal numericValue,
java.lang.String unit) |
Creates a
QuantityValue without bounds. |
static QuantityValue |
Datamodel.makeQuantityValue(java.math.BigDecimal numericValue,
java.math.BigDecimal lowerBound,
java.math.BigDecimal upperBound) |
Creates a
QuantityValue with an empty unit. |
static QuantityValue |
Datamodel.makeQuantityValue(java.math.BigDecimal numericValue,
java.math.BigDecimal lowerBound,
java.math.BigDecimal upperBound,
java.lang.String unit) |
Creates a
QuantityValue. |
| Modifier and Type | Method | Description |
|---|---|---|
QuantityValue |
DatamodelConverter.copy(QuantityValue object) |
Copies a
QuantityValue. |
static boolean |
Equality.equalsQuantityValue(QuantityValue o1,
java.lang.Object o2) |
Returns true if the parameters are two
QuantityValue objects with
exactly the same data. |
static int |
Hash.hashCode(QuantityValue o) |
Returns a hash code for the given object.
|
static java.lang.String |
ToString.toString(QuantityValue o) |
Returns a human-readable string representation of the given object.
|
Value |
DatamodelConverter.visit(QuantityValue value) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
QuantityValueImpl |
Implementation of
QuantityValue. |
| Modifier and Type | Method | Description |
|---|---|---|
QuantityValue |
DataObjectFactoryImpl.getQuantityValue(java.math.BigDecimal numericValue) |
|
QuantityValue |
DataObjectFactoryImpl.getQuantityValue(java.math.BigDecimal numericValue,
java.lang.String unit) |
|
QuantityValue |
DataObjectFactoryImpl.getQuantityValue(java.math.BigDecimal numericValue,
java.math.BigDecimal lowerBound,
java.math.BigDecimal upperBound) |
|
QuantityValue |
DataObjectFactoryImpl.getQuantityValue(java.math.BigDecimal numericValue,
java.math.BigDecimal lowerBound,
java.math.BigDecimal upperBound,
java.lang.String unit) |
| Modifier and Type | Method | Description |
|---|---|---|
QuantityValue |
StatementDocument.findStatementQuantityValue(java.lang.String propertyId) |
Returns the unique
QuantityValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
QuantityValue |
StatementDocument.findStatementQuantityValue(PropertyIdValue propertyIdValue) |
Returns the unique
QuantityValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
QuantityValue |
DataObjectFactory.getQuantityValue(java.math.BigDecimal numericValue) |
Creates a
QuantityValue without a unit of measurement and bounds. |
QuantityValue |
DataObjectFactory.getQuantityValue(java.math.BigDecimal numericValue,
java.lang.String unit) |
Creates a
QuantityValue without bounds. |
QuantityValue |
DataObjectFactory.getQuantityValue(java.math.BigDecimal numericValue,
java.math.BigDecimal lowerBound,
java.math.BigDecimal upperBound) |
Creates a
QuantityValue without a unit of measurement. |
QuantityValue |
DataObjectFactory.getQuantityValue(java.math.BigDecimal numericValue,
java.math.BigDecimal lowerBound,
java.math.BigDecimal upperBound,
java.lang.String unit) |
Creates a
QuantityValue. |
| Modifier and Type | Method | Description |
|---|---|---|
T |
ValueVisitor.visit(QuantityValue value) |
Visits a QuantityValue and returns a result.
|
| Modifier and Type | Method | Description |
|---|---|---|
QuantityValue |
JacksonObjectFactory.getQuantityValue(java.math.BigDecimal numericValue) |
|
QuantityValue |
JacksonObjectFactory.getQuantityValue(java.math.BigDecimal numericValue,
java.lang.String unit) |
|
QuantityValue |
JacksonObjectFactory.getQuantityValue(java.math.BigDecimal numericValue,
java.math.BigDecimal lowerBound,
java.math.BigDecimal upperBound) |
|
QuantityValue |
JacksonObjectFactory.getQuantityValue(java.math.BigDecimal numericValue,
java.math.BigDecimal lowerBound,
java.math.BigDecimal upperBound,
java.lang.String unit) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
JacksonValueQuantity |
Jackson implementation of
QuantityValue. |
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