EntityDocumentItemDocument, PropertyDocumentAbstractTermedStatementDocument, ItemDocumentImpl, JacksonItemDocument, JacksonPropertyDocument, JacksonTermedStatementDocument, PropertyDocumentImpl, TermedStatementDocumentImplpublic interface StatementDocument extends EntityDocument
| Modifier and Type | Method | Description |
|---|---|---|
Statement |
findStatement(java.lang.String propertyId) |
Returns the unique
Statement for the given property, or null if
there are zero or many statements for this property. |
Statement |
findStatement(PropertyIdValue propertyIdValue) |
Returns the unique
Statement for the given property, or null if
there are zero or many statements for this property. |
DatatypeIdValue |
findStatementDatatypeIdValue(java.lang.String propertyId) |
Returns the unique
DatatypeIdValue for the given property, or
null if there are zero or many such values given in statements for this
property. |
DatatypeIdValue |
findStatementDatatypeIdValue(PropertyIdValue propertyIdValue) |
Returns the unique
DatatypeIdValue for the given property, or
null if there are zero or many such values given in statements for this
property. |
EntityIdValue |
findStatementEntityIdValue(java.lang.String propertyId) |
Returns the unique
EntityIdValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
EntityIdValue |
findStatementEntityIdValue(PropertyIdValue propertyIdValue) |
Returns the unique
EntityIdValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
GlobeCoordinatesValue |
findStatementGlobeCoordinatesValue(java.lang.String propertyId) |
Returns the unique
GlobeCoordinatesValue for the given property,
or null if there are zero or many such values given in statements for
this property. |
GlobeCoordinatesValue |
findStatementGlobeCoordinatesValue(PropertyIdValue propertyIdValue) |
Returns the unique
GlobeCoordinatesValue for the given property,
or null if there are zero or many such values given in statements for
this property. |
StatementGroup |
findStatementGroup(java.lang.String propertyId) |
Returns the
StatementGroup for the given property, or null if
there are no statements for this property. |
StatementGroup |
findStatementGroup(PropertyIdValue propertyIdValue) |
Returns the
StatementGroup for the given property, or null if
there are no statements for this property. |
ItemIdValue |
findStatementItemIdValue(java.lang.String propertyId) |
Returns the unique
ItemIdValue for the given property, or null if
there are zero or many such values given in statements for this property. |
ItemIdValue |
findStatementItemIdValue(PropertyIdValue propertyIdValue) |
Returns the unique
ItemIdValue for the given property, or null if
there are zero or many such values given in statements for this property. |
MonolingualTextValue |
findStatementMonolingualTextValue(java.lang.String propertyId) |
Returns the unique
MonolingualTextValue for the given property,
or null if there are zero or many such values given in statements for
this property. |
MonolingualTextValue |
findStatementMonolingualTextValue(PropertyIdValue propertyIdValue) |
Returns the unique
MonolingualTextValue for the given property,
or null if there are zero or many such values given in statements for
this property. |
PropertyIdValue |
findStatementPropertyIdValue(java.lang.String propertyId) |
Returns the unique
PropertyIdValue for the given property, or
null if there are zero or many such values given in statements for this
property. |
PropertyIdValue |
findStatementPropertyIdValue(PropertyIdValue propertyIdValue) |
Returns the unique
PropertyIdValue for the given property, or
null if there are zero or many such values given in statements for this
property. |
QuantityValue |
findStatementQuantityValue(java.lang.String propertyId) |
Returns the unique
QuantityValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
QuantityValue |
findStatementQuantityValue(PropertyIdValue propertyIdValue) |
Returns the unique
QuantityValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
StringValue |
findStatementStringValue(java.lang.String propertyId) |
Returns the unique
StringValue for the given property, or null if
there are zero or many such values given in statements for this property. |
StringValue |
findStatementStringValue(PropertyIdValue propertyIdValue) |
Returns the unique
StringValue for the given property, or null if
there are zero or many such values given in statements for this property. |
TimeValue |
findStatementTimeValue(java.lang.String propertyId) |
Returns the unique
TimeValue for the given property, or null if
there are zero or many such values given in statements for this property. |
TimeValue |
findStatementTimeValue(PropertyIdValue propertyIdValue) |
Returns the unique
TimeValue for the given property, or null if
there are zero or many such values given in statements for this property. |
Value |
findStatementValue(java.lang.String propertyId) |
Returns the unique
Value for the given property, or null if there
are zero or many values given in statements for this property. |
Value |
findStatementValue(PropertyIdValue propertyIdValue) |
Returns the unique
Value for the given property, or null if there
are zero or many values given in statements for this property. |
java.util.Iterator<Statement> |
getAllStatements() |
Returns an iterator that provides access to all statements, without
considering the statement groups.
|
java.util.List<StatementGroup> |
getStatementGroups() |
Return the list of all StatementGroups stored for this item.
|
boolean |
hasStatement(java.lang.String propertyId) |
Returns true if there is a statement for the given property.
|
boolean |
hasStatement(PropertyIdValue propertyIdValue) |
Returns true if there is a statement for the given property.
|
boolean |
hasStatementValue(java.lang.String propertyId,
java.util.Set<? extends Value> values) |
Returns true if there is a statement for the given property and one of
the given values.
|
boolean |
hasStatementValue(java.lang.String propertyId,
Value value) |
Returns true if there is a statement for the given property and value.
|
boolean |
hasStatementValue(PropertyIdValue propertyIdValue,
java.util.Set<? extends Value> values) |
Returns true if there is a statement for the given property and one of
the given values.
|
boolean |
hasStatementValue(PropertyIdValue propertyIdValue,
Value value) |
Returns true if there is a statement for the given property and value.
|
getEntityId, getRevisionIdjava.util.List<StatementGroup> getStatementGroups()
java.util.Iterator<Statement> getAllStatements()
StatementGroup findStatementGroup(PropertyIdValue propertyIdValue)
StatementGroup for the given property, or null if
there are no statements for this property. This is a convenience method
for accessing the data that can be obtained via
getStatementGroups().propertyIdValue - the property to search forStatementGroup or nullStatementGroup findStatementGroup(java.lang.String propertyId)
StatementGroup for the given property, or null if
there are no statements for this property. Only the string id of the
property is compared, not the site id. This is useful in situations where
all data is known to come from a single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forStatementGroup or nullboolean hasStatement(PropertyIdValue propertyIdValue)
getStatementGroups().propertyIdValue - the property to search forboolean hasStatement(java.lang.String propertyId)
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forboolean hasStatementValue(PropertyIdValue propertyIdValue, Value value)
getStatementGroups().propertyIdValue - the property to search forvalue - the value to searchboolean hasStatementValue(java.lang.String propertyId,
Value value)
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forvalue - the value to searchboolean hasStatementValue(PropertyIdValue propertyIdValue, java.util.Set<? extends Value> values)
getStatementGroups().propertyIdValue - the property to search forvalues - the set of values to searchboolean hasStatementValue(java.lang.String propertyId,
java.util.Set<? extends Value> values)
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forvalues - the set of values to searchStatement findStatement(PropertyIdValue propertyIdValue)
Statement for the given property, or null if
there are zero or many statements for this property. This is a
convenience method for accessing the data that can be obtained via
getStatementGroups().propertyIdValue - the property to search forStatement or nullStatement findStatement(java.lang.String propertyId)
Statement for the given property, or null if
there are zero or many statements for this property. Only the string id
of the property is compared, not the site id. This is useful in
situations where all data is known to come from a single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forStatement or nullValue findStatementValue(PropertyIdValue propertyIdValue)
Value for the given property, or null if there
are zero or many values given in statements for this property.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyIdValue - the property to search forValue or nullValue findStatementValue(java.lang.String propertyId)
Value for the given property, or null if there
are zero or many values given in statements for this property. Only the
string id of the property is compared, not the site id. This is useful in
situations where all data is known to come from a single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forValue or nullStringValue findStatementStringValue(PropertyIdValue propertyIdValue)
StringValue for the given property, or null if
there are zero or many such values given in statements for this property.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyIdValue - the property to search forStringValue or nullStringValue findStatementStringValue(java.lang.String propertyId)
StringValue for the given property, or null if
there are zero or many such values given in statements for this property.
Only the string id of the property is compared, not the site id. This is
useful in situations where all data is known to come from a single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forStringValue or nullQuantityValue findStatementQuantityValue(PropertyIdValue propertyIdValue)
QuantityValue for the given property, or null
if there are zero or many such values given in statements for this
property.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyIdValue - the property to search forQuantityValue or nullQuantityValue findStatementQuantityValue(java.lang.String propertyId)
QuantityValue for the given property, or null
if there are zero or many such values given in statements for this
property. Only the string id of the property is compared, not the site
id. This is useful in situations where all data is known to come from a
single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forQuantityValue or nullGlobeCoordinatesValue findStatementGlobeCoordinatesValue(PropertyIdValue propertyIdValue)
GlobeCoordinatesValue for the given property,
or null if there are zero or many such values given in statements for
this property.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyIdValue - the property to search forGlobeCoordinatesValue or nullGlobeCoordinatesValue findStatementGlobeCoordinatesValue(java.lang.String propertyId)
GlobeCoordinatesValue for the given property,
or null if there are zero or many such values given in statements for
this property. Only the string id of the property is compared, not the
site id. This is useful in situations where all data is known to come
from a single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forGlobeCoordinatesValue or nullTimeValue findStatementTimeValue(PropertyIdValue propertyIdValue)
TimeValue for the given property, or null if
there are zero or many such values given in statements for this property.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyIdValue - the property to search forTimeValue or nullTimeValue findStatementTimeValue(java.lang.String propertyId)
TimeValue for the given property, or null if
there are zero or many such values given in statements for this property.
Only the string id of the property is compared, not the site id. This is
useful in situations where all data is known to come from a single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forTimeValue or nullMonolingualTextValue findStatementMonolingualTextValue(PropertyIdValue propertyIdValue)
MonolingualTextValue for the given property,
or null if there are zero or many such values given in statements for
this property.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyIdValue - the property to search forMonolingualTextValue or nullMonolingualTextValue findStatementMonolingualTextValue(java.lang.String propertyId)
MonolingualTextValue for the given property,
or null if there are zero or many such values given in statements for
this property. Only the string id of the property is compared, not the
site id. This is useful in situations where all data is known to come
from a single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forMonolingualTextValue or nullItemIdValue findStatementItemIdValue(PropertyIdValue propertyIdValue)
ItemIdValue for the given property, or null if
there are zero or many such values given in statements for this property.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyIdValue - the property to search forItemIdValue or nullItemIdValue findStatementItemIdValue(java.lang.String propertyId)
ItemIdValue for the given property, or null if
there are zero or many such values given in statements for this property.
Only the string id of the property is compared, not the site id. This is
useful in situations where all data is known to come from a single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forItemIdValue or nullPropertyIdValue findStatementPropertyIdValue(PropertyIdValue propertyIdValue)
PropertyIdValue for the given property, or
null if there are zero or many such values given in statements for this
property.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyIdValue - the property to search forPropertyIdValue or nullPropertyIdValue findStatementPropertyIdValue(java.lang.String propertyId)
PropertyIdValue for the given property, or
null if there are zero or many such values given in statements for this
property. Only the string id of the property is compared, not the site
id. This is useful in situations where all data is known to come from a
single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forPropertyIdValue or nullEntityIdValue findStatementEntityIdValue(PropertyIdValue propertyIdValue)
EntityIdValue for the given property, or null
if there are zero or many such values given in statements for this
property.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyIdValue - the property to search forEntityIdValue or nullEntityIdValue findStatementEntityIdValue(java.lang.String propertyId)
EntityIdValue for the given property, or null
if there are zero or many such values given in statements for this
property. Only the string id of the property is compared, not the site
id. This is useful in situations where all data is known to come from a
single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forEntityIdValue or nullDatatypeIdValue findStatementDatatypeIdValue(PropertyIdValue propertyIdValue)
DatatypeIdValue for the given property, or
null if there are zero or many such values given in statements for this
property.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyIdValue - the property to search forDatatypeIdValue or nullDatatypeIdValue findStatementDatatypeIdValue(java.lang.String propertyId)
DatatypeIdValue for the given property, or
null if there are zero or many such values given in statements for this
property. Only the string id of the property is compared, not the site
id. This is useful in situations where all data is known to come from a
single site.
This is a convenience method for accessing the data that can be obtained
via getStatementGroups().
propertyId - the property to search forDatatypeIdValue or nullCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage