public interface MediaInfoDocument extends LabeledStatementDocument
Modifier and Type | Method and Description |
---|---|
MediaInfoIdValue |
getEntityId()
Returns the ID of the entity that the data refers to
|
MediaInfoDocument |
withEntityId(MediaInfoIdValue newEntityId)
Returns a new version of this document with updated ID.
|
MediaInfoDocument |
withLabel(MonolingualTextValue newLabel)
Returns a new version of this document with a new label
(which overrides any existing label for this language).
|
MediaInfoDocument |
withoutStatementIds(Set<String> statementIds)
Returns a new version of this document where all statements matching
any of the statement ids provided have been removed.
|
MediaInfoDocument |
withRevisionId(long newRevisionId)
Returns a copy of this document with an updated revision id.
|
MediaInfoDocument |
withStatement(Statement statement)
Returns a new version of this document which includes the
statement provided.
|
findLabel, getLabels
findStatement, findStatement, findStatementEntityIdValue, findStatementEntityIdValue, findStatementGlobeCoordinatesValue, findStatementGlobeCoordinatesValue, findStatementGroup, findStatementGroup, findStatementItemIdValue, findStatementItemIdValue, findStatementMonolingualTextValue, findStatementMonolingualTextValue, findStatementPropertyIdValue, findStatementPropertyIdValue, findStatementQuantityValue, findStatementQuantityValue, findStatementStringValue, findStatementStringValue, findStatementTimeValue, findStatementTimeValue, findStatementValue, findStatementValue, getAllStatements, getStatementGroups, hasStatement, hasStatement, hasStatementValue, hasStatementValue, hasStatementValue, hasStatementValue
getRevisionId
MediaInfoIdValue getEntityId()
getEntityId
in interface EntityDocument
MediaInfoDocument withEntityId(MediaInfoIdValue newEntityId)
newEntityId
- new ID of the documentMediaInfoDocument withRevisionId(long newRevisionId)
LabeledDocument
withRevisionId
in interface EntityDocument
withRevisionId
in interface LabeledDocument
withRevisionId
in interface LabeledStatementDocument
withRevisionId
in interface StatementDocument
MediaInfoDocument withLabel(MonolingualTextValue newLabel)
LabeledDocument
withLabel
in interface LabeledDocument
withLabel
in interface LabeledStatementDocument
MediaInfoDocument withStatement(Statement statement)
StatementDocument
withStatement
in interface LabeledStatementDocument
withStatement
in interface StatementDocument
statement
- the statement to add or update in the documentMediaInfoDocument withoutStatementIds(Set<String> statementIds)
StatementDocument
withoutStatementIds
in interface LabeledStatementDocument
withoutStatementIds
in interface StatementDocument
statementIds
- the identifiers of the statements to removeCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage