/** * Returns the unique {@link TimeValue} for the given property, or null if * there are zero or many such values given in statements for this property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link TimeValue} or null */ default TimeValue findStatementTimeValue(PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof TimeValue ? (TimeValue) value : null; }
/** * Returns the unique {@link EntityIdValue} for the given property, or null * if there are zero or many such values given in statements for this * property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link EntityIdValue} or null */ default EntityIdValue findStatementEntityIdValue(PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof EntityIdValue ? (EntityIdValue) value : null; }
/** * Returns the unique {@link GlobeCoordinatesValue} for the given property, * or null if there are zero or many such values given in statements for * this property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link GlobeCoordinatesValue} or null */ default GlobeCoordinatesValue findStatementGlobeCoordinatesValue( PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof GlobeCoordinatesValue ? (GlobeCoordinatesValue) value : null; }
/** * Returns the unique {@link StringValue} for the given property, or null if * there are zero or many such values given in statements for this property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link StringValue} or null */ default StringValue findStatementStringValue(PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof StringValue ? (StringValue) value : null; }
/** * Returns the unique {@link ItemIdValue} for the given property, or null if * there are zero or many such values given in statements for this property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link ItemIdValue} or null */ default ItemIdValue findStatementItemIdValue(PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof ItemIdValue ? (ItemIdValue) value : null; }
/** * Returns the unique {@link MonolingualTextValue} for the given property, * or null if there are zero or many such values given in statements for * this property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link MonolingualTextValue} or null */ default MonolingualTextValue findStatementMonolingualTextValue( PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof MonolingualTextValue ? (MonolingualTextValue) value : null; }
/** * Returns the unique {@link 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. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyId * the property to search for * @return {@link TimeValue} or null */ default TimeValue findStatementTimeValue(String propertyId) { Value value = findStatementValue(propertyId); return value instanceof TimeValue ? (TimeValue) value : null; }
/** * Returns the unique {@link 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. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyId * the property to search for * @return {@link ItemIdValue} or null */ default ItemIdValue findStatementItemIdValue(String propertyId) { Value value = findStatementValue(propertyId); return value instanceof ItemIdValue ? (ItemIdValue) value : null; }
/** * Returns the unique {@link 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. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyId * the property to search for * @return {@link StringValue} or null */ default StringValue findStatementStringValue(String propertyId) { Value value = findStatementValue(propertyId); return value instanceof StringValue ? (StringValue) value : null; }
/** * Returns the unique {@link GlobeCoordinatesValue} for the given property, * or null if there are zero or many such values given in statements for * this property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link GlobeCoordinatesValue} or null */ default GlobeCoordinatesValue findStatementGlobeCoordinatesValue( PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof GlobeCoordinatesValue ? (GlobeCoordinatesValue) value : null; }
/** * Returns the unique {@link 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. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyId * the property to search for * @return {@link GlobeCoordinatesValue} or null */ default GlobeCoordinatesValue findStatementGlobeCoordinatesValue(String propertyId) { Value value = findStatementValue(propertyId); return value instanceof GlobeCoordinatesValue ? (GlobeCoordinatesValue) value : null; }
/** * Returns the unique {@link 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. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyId * the property to search for * @return {@link EntityIdValue} or null */ default EntityIdValue findStatementEntityIdValue(String propertyId) { Value value = findStatementValue(propertyId); return value instanceof EntityIdValue ? (EntityIdValue) value : null; }
/** * Returns the unique {@link TimeValue} for the given property, or null if * there are zero or many such values given in statements for this property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link TimeValue} or null */ default TimeValue findStatementTimeValue(PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof TimeValue ? (TimeValue) value : null; }
/** * Returns the unique {@link QuantityValue} for the given property, or null * if there are zero or many such values given in statements for this * property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link QuantityValue} or null */ default QuantityValue findStatementQuantityValue(PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof QuantityValue ? (QuantityValue) value : null; }
/** * Returns the unique {@link PropertyIdValue} for the given property, or * null if there are zero or many such values given in statements for this * property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link PropertyIdValue} or null */ default PropertyIdValue findStatementPropertyIdValue(PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof PropertyIdValue ? (PropertyIdValue) value : null; }
/** * Returns the unique {@link EntityIdValue} for the given property, or null * if there are zero or many such values given in statements for this * property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link EntityIdValue} or null */ default EntityIdValue findStatementEntityIdValue(PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof EntityIdValue ? (EntityIdValue) value : null; }
/** * Returns the unique {@link StringValue} for the given property, or null if * there are zero or many such values given in statements for this property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link StringValue} or null */ default StringValue findStatementStringValue(PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof StringValue ? (StringValue) value : null; }
/** * Returns the unique {@link ItemIdValue} for the given property, or null if * there are zero or many such values given in statements for this property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link ItemIdValue} or null */ default ItemIdValue findStatementItemIdValue(PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof ItemIdValue ? (ItemIdValue) value : null; }
/** * Returns the unique {@link QuantityValue} for the given property, or null * if there are zero or many such values given in statements for this * property. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @return {@link QuantityValue} or null */ default QuantityValue findStatementQuantityValue(PropertyIdValue propertyIdValue) { Value value = findStatementValue(propertyIdValue); return value instanceof QuantityValue ? (QuantityValue) value : null; }
/** * Returns the unique {@link 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. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyId * the property to search for * @return {@link MonolingualTextValue} or null */ default MonolingualTextValue findStatementMonolingualTextValue(String propertyId) { Value value = findStatementValue(propertyId); return value instanceof MonolingualTextValue ? (MonolingualTextValue) value : null; }