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.
|
getStatements
getBaseRevisionId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getStatements
getBaseRevisionId
public 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 null
IllegalArgumentException
- if any parameters or their combination is invalidpublic LexemeIdValue getEntityId()
EntityUpdate
getEntityId
in interface EntityUpdate
getEntityId
in interface LexemeUpdate
getEntityId
in class EntityUpdateImpl
public boolean isEmpty()
EntityUpdate
isEmpty
in interface EntityUpdate
isEmpty
in class StatementDocumentUpdateImpl
true
if the update is empty, false
otherwisepublic Optional<ItemIdValue> getLanguage()
LexemeUpdate
Optional.empty()
.getLanguage
in interface LexemeUpdate
Optional.empty()
if it is not changingpublic Optional<ItemIdValue> getLexicalCategory()
LexemeUpdate
Optional.empty()
.getLexicalCategory
in interface LexemeUpdate
Optional.empty()
if it is not
changingpublic TermUpdate getLemmas()
LexemeUpdate
getLemmas
in interface LexemeUpdate
public List<SenseDocument> getAddedSenses()
LexemeUpdate
getAddedSenses
in interface LexemeUpdate
public Map<SenseIdValue,SenseUpdate> getUpdatedSenses()
LexemeUpdate
getUpdatedSenses
in interface LexemeUpdate
public Set<SenseIdValue> getRemovedSenses()
LexemeUpdate
getRemovedSenses
in interface LexemeUpdate
public List<FormDocument> getAddedForms()
LexemeUpdate
getAddedForms
in interface LexemeUpdate
public Map<FormIdValue,FormUpdate> getUpdatedForms()
LexemeUpdate
getUpdatedForms
in interface LexemeUpdate
public Set<FormIdValue> getRemovedForms()
LexemeUpdate
getRemovedForms
in interface LexemeUpdate
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage