| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Claim |
getClaim()
Get the Claim object that this statement refers to.
|
StatementRank |
getRank() |
List<? extends Reference> |
getReferences()
Get a list of references for this Statement.
|
String |
getStatementId()
Return the id used to identify this statement.
|
int |
hashCode() |
String |
toString() |
public Claim getClaim()
Statementpublic StatementRank getRank()
getRank in interface StatementStatementRankpublic List<? extends Reference> getReferences()
StatementgetReferences in interface Statementpublic String getStatementId()
StatementStatement ids are used by Wikibase to allow certain interactions though the API, especially the atomic modification of Statements (modifications of statements can be viewed as deletions followed by insertions, but doing this in several steps though the API is not practical). In the current Wikibase implementation, the id is a string that begins with the (lowercased) local ID of the subject of the statement, followed by a dollar sign and a randomly generated UUID. Thus statements of different subjects can never have the same id, and it is extremely unlikely that two statements of the one subject ever have the same id. However, it is possible that two statements with the same content differ in their id, since the id is not based on the content.
Callers should not make any assumptions about the stability of statement ids over time, or about the internal format of the ids.
getStatementId in interface StatementCopyright © 2014 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage