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()
Claim
getSubject
in interface Claim
public Snak getMainSnak()
Claim
ValueSnak
"Population: 3000000".getMainSnak
in interface Claim
public List<SnakGroup> getQualifiers()
Claim
getQualifiers
in interface Claim
public Iterator<Snak> getAllQualifiers()
Claim
getAllQualifiers
in interface Claim
public Value getValue()
Claim
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage