| Package | Description |
|---|---|
| org.wikidata.wdtk.datamodel.helpers |
Package for mostly static helper code to work with data objects.
|
| Modifier and Type | Method | Description |
|---|---|---|
static StatementBuilder |
StatementBuilder.forSubjectAndProperty(EntityIdValue subject,
PropertyIdValue property) |
Starts the construction of a
Statement with the given subject. |
protected StatementBuilder |
StatementBuilder.getThis() |
|
StatementBuilder |
StatementBuilder.withId(java.lang.String statementId) |
Sets the id for the constructed statement.
|
StatementBuilder |
StatementBuilder.withNoValue() |
Sets the main snak of the statement to be a {
NoValueSnak. |
StatementBuilder |
StatementBuilder.withQualifier(Snak qualifier) |
Adds a qualifier
Snak to the constructed statement. |
StatementBuilder |
StatementBuilder.withQualifierNoValue(PropertyIdValue propertyIdValue) |
Adds a
NoValueSnak qualifier with the given property to the
constructed statement. |
StatementBuilder |
StatementBuilder.withQualifiers(java.util.List<SnakGroup> qualifiers) |
Adds all qualifiers from the given list of
SnakGroup to the
constructed statement. |
StatementBuilder |
StatementBuilder.withQualifiers(SnakGroup qualifiers) |
Adds all qualifiers from the given
SnakGroup to the constructed
statement. |
StatementBuilder |
StatementBuilder.withQualifierSomeValue(PropertyIdValue propertyIdValue) |
Adds a
SomeValueSnak qualifier with the given property to the
constructed statement. |
StatementBuilder |
StatementBuilder.withQualifierValue(PropertyIdValue propertyIdValue,
Value value) |
Adds a qualifier with the given property and value to the constructed
statement.
|
StatementBuilder |
StatementBuilder.withRank(StatementRank rank) |
Sets the rank for the constructed statement.
|
StatementBuilder |
StatementBuilder.withReference(Reference reference) |
Adds a reference to the constructed statement.
|
StatementBuilder |
StatementBuilder.withReferences(java.util.List<? extends Reference> references) |
Adds a list of references to the constructed statement.
|
StatementBuilder |
StatementBuilder.withSomeValue() |
Sets the main snak of the statement to be a {
SomeValueSnak. |
StatementBuilder |
StatementBuilder.withValue(Value value) |
Sets the main value for the constructed statement.
|
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