Interface FormUpdate
- All Superinterfaces:
EntityUpdate
,StatementDocumentUpdate
- All Known Implementing Classes:
FormUpdateImpl
Collection of changes that can be applied to form entity.
-
Method Summary
Modifier and TypeMethodDescriptionReturns ID of the entity that is being updated.Returns new grammatical features of the form assigned in this update.Returns changes in form representations.Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityUpdate
getBaseRevisionId, isEmpty
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.StatementDocumentUpdate
getStatements
-
Method Details
-
getEntityId
FormIdValue getEntityId()Description copied from interface:EntityUpdate
Returns ID of the entity that is being updated.- Specified by:
getEntityId
in interfaceEntityUpdate
- Returns:
- ID of the updated entity
-
getRepresentations
TermUpdate getRepresentations()Returns changes in form representations.- Returns:
- update of form representations, possibly empty
-
getGrammaticalFeatures
Optional<Set<ItemIdValue>> getGrammaticalFeatures()Returns new grammatical features of the form assigned in this update. If grammatical features are not changing in this update, this method returnsOptional.empty()
. If grammatical features are being removed without replacement, this method returns an empty set.- Returns:
- new grammatical features or
Optional.empty()
if grammatical features do not change
-