public class LexemeUpdateImpl extends StatementDocumentUpdateImpl implements LexemeUpdate
LexemeUpdate.| Constructor and Description |
|---|
LexemeUpdateImpl(LexemeIdValue entityId,
long revisionId,
ItemIdValue language,
ItemIdValue lexicalCategory,
TermUpdate lemmas,
StatementUpdate statements,
Collection<SenseDocument> addedSenses,
Collection<SenseUpdate> updatedSenses,
Collection<SenseIdValue> removedSenses,
Collection<FormDocument> addedForms,
Collection<FormUpdate> updatedForms,
Collection<FormIdValue> removedForms)
Initializes new entity update.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<FormDocument> |
getAddedForms()
Returns new forms added to the lexeme in this update.
|
List<SenseDocument> |
getAddedSenses()
Returns new senses added to the lexeme in this update.
|
LexemeIdValue |
getEntityId()
Returns ID of the entity that is being updated.
|
Optional<ItemIdValue> |
getLanguage()
Returns new lexeme language assigned in this update.
|
TermUpdate |
getLemmas()
Returns changes in lemmas.
|
Optional<ItemIdValue> |
getLexicalCategory()
Returns new lexical category assigned to the lexeme in this update.
|
Set<FormIdValue> |
getRemovedForms()
Returns IDs of forms removed from the lexeme in this update.
|
Set<SenseIdValue> |
getRemovedSenses()
Returns IDs of senses removed from the lexeme in this update.
|
Map<FormIdValue,FormUpdate> |
getUpdatedForms()
Returns lexeme forms modified in this update.
|
Map<SenseIdValue,SenseUpdate> |
getUpdatedSenses()
Returns lexeme senses modified in this update.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the update is empty.
|
getStatementsgetBaseRevisionIdclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetStatementsgetBaseRevisionIdpublic LexemeUpdateImpl(LexemeIdValue entityId, long revisionId, ItemIdValue language, ItemIdValue lexicalCategory, TermUpdate lemmas, StatementUpdate statements, Collection<SenseDocument> addedSenses, Collection<SenseUpdate> updatedSenses, Collection<SenseIdValue> removedSenses, Collection<FormDocument> addedForms, Collection<FormUpdate> updatedForms, Collection<FormIdValue> removedForms)
entityId - ID of the lexeme that is to be updatedrevisionId - base lexeme revision to be updated or zero if not availablelanguage - new lexeme language or null for no changelexicalCategory - new lexical category of the lexeme or null for no changelemmas - changes in lemmas, possibly emptystatements - changes in entity statements, possibly emptyaddedSenses - added sensesupdatedSenses - updated sensesremovedSenses - IDs of removed sensesaddedForms - added formsupdatedForms - updated formsremovedForms - IDs of removed formsNullPointerException - if any required parameter or its item is nullIllegalArgumentException - if any parameters or their combination is invalidpublic LexemeIdValue getEntityId()
EntityUpdategetEntityId in interface EntityUpdategetEntityId in interface LexemeUpdategetEntityId in class EntityUpdateImplpublic boolean isEmpty()
EntityUpdateisEmpty in interface EntityUpdateisEmpty in class StatementDocumentUpdateImpltrue if the update is empty, false otherwisepublic Optional<ItemIdValue> getLanguage()
LexemeUpdateOptional.empty().getLanguage in interface LexemeUpdateOptional.empty() if it is not changingpublic Optional<ItemIdValue> getLexicalCategory()
LexemeUpdateOptional.empty().getLexicalCategory in interface LexemeUpdateOptional.empty() if it is not
changingpublic TermUpdate getLemmas()
LexemeUpdategetLemmas in interface LexemeUpdatepublic List<SenseDocument> getAddedSenses()
LexemeUpdategetAddedSenses in interface LexemeUpdatepublic Map<SenseIdValue,SenseUpdate> getUpdatedSenses()
LexemeUpdategetUpdatedSenses in interface LexemeUpdatepublic Set<SenseIdValue> getRemovedSenses()
LexemeUpdategetRemovedSenses in interface LexemeUpdatepublic List<FormDocument> getAddedForms()
LexemeUpdategetAddedForms in interface LexemeUpdatepublic Map<FormIdValue,FormUpdate> getUpdatedForms()
LexemeUpdategetUpdatedForms in interface LexemeUpdatepublic Set<FormIdValue> getRemovedForms()
LexemeUpdategetRemovedForms in interface LexemeUpdateCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage