| Constructor and Description |
|---|
ClaimImpl(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers)
Constructor to create a claim.
|
ClaimImpl(StatementImpl statement)
Constructor used to initialize a claim from a JacksonStatement,
should only be used internally.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Iterator<Snak> |
getAllQualifiers()
Returns an iterator over all qualifiers, without considering qualifier
groups.
|
Snak |
getMainSnak()
Main Snak of the statement.
|
List<SnakGroup> |
getQualifiers()
Groups of auxiliary Snaks, also known as qualifiers, that provide
additional context information for this claim.
|
EntityIdValue |
getSubject()
The subject that the claim refers to, e.g., the id of "Berlin".
|
Value |
getValue()
Convenience method to get the value of the claim's main snak, or null if
there is none.
|
int |
hashCode() |
String |
toString() |
public ClaimImpl(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers)
StatementImpl directly.subject - the subject the Claim refers tomainSnak - the main Snak of the Claimqualifiers - the qualifiers of the Claim, grouped in SnakGroupspublic ClaimImpl(StatementImpl statement)
statement - the statement which contains this claimpublic EntityIdValue getSubject()
ClaimgetSubject in interface Claimpublic Snak getMainSnak()
ClaimValueSnak "Population: 3000000".getMainSnak in interface Claimpublic List<SnakGroup> getQualifiers()
ClaimgetQualifiers in interface Claimpublic Iterator<Snak> getAllQualifiers()
ClaimgetAllQualifiers in interface Claimpublic Value getValue()
ClaimCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage