Uses of Class
org.wikidata.wdtk.datamodel.helpers.StatementBuilder
Package
Description
Package for mostly static helper code to work with data objects.
-
Uses of StatementBuilder in org.wikidata.wdtk.datamodel.helpers
Modifier and TypeMethodDescriptionstatic StatementBuilder
StatementBuilder.forSubjectAndProperty
(EntityIdValue subject, PropertyIdValue property) Starts the construction of aStatement
with the given subject.protected StatementBuilder
StatementBuilder.getThis()
Sets the id for the constructed statement.StatementBuilder.withNoValue()
Sets the main snak of the statement to be a {NoValueSnak
.StatementBuilder.withQualifier
(Snak qualifier) Adds a qualifierSnak
to the constructed statement.StatementBuilder.withQualifierNoValue
(PropertyIdValue propertyIdValue) Adds aNoValueSnak
qualifier with the given property to the constructed statement.StatementBuilder.withQualifiers
(List<SnakGroup> qualifiers) Adds all qualifiers from the given list ofSnakGroup
to the constructed statement.StatementBuilder.withQualifiers
(SnakGroup qualifiers) Adds all qualifiers from the givenSnakGroup
to the constructed statement.StatementBuilder.withQualifierSomeValue
(PropertyIdValue propertyIdValue) Adds aSomeValueSnak
qualifier with the given property to the constructed statement.StatementBuilder.withQualifierValue
(PropertyIdValue propertyIdValue, Value value) Adds a qualifier with the given property and value to the constructed statement.StatementBuilder.withRank
(StatementRank rank) Sets the rank for the constructed statement.StatementBuilder.withReference
(Reference reference) Adds a reference to the constructed statement.StatementBuilder.withReferences
(List<? extends Reference> references) Adds a list of references to the constructed statement.StatementBuilder.withSomeValue()
Sets the main snak of the statement to be a {SomeValueSnak
.Sets the main value for the constructed statement.