Package org.openrefine.wikidata.editing
Class NewEntityLibrary
java.lang.Object
org.openrefine.wikidata.editing.NewEntityLibrary
This keeps track of the new entities that we have created for each internal
reconciliation id.
- Author:
- Antonin Delpeuch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId(long id) Retrieves the id allocated to a given new cellgetIdMap()Getter, only meant to be used by JacksoninthashCode()voidStores an id associated to a new celltoString()voidupdateReconciledCells(Project project, boolean reset) Changes the "new" reconciled cells to their allocated ids for later use.
-
Constructor Details
-
NewEntityLibrary
public NewEntityLibrary() -
NewEntityLibrary
-
-
Method Details
-
getId
Retrieves the id allocated to a given new cell- Parameters:
id- : the fake EntityId generated by the cell- Returns:
- the id (or null if unallocated yet)
-
setId
Stores an id associated to a new cell- Parameters:
id- : the internal reconciliation id of the new cellreturnedId- : the associated id returned by Wikibase
-
updateReconciledCells
Changes the "new" reconciled cells to their allocated ids for later use.- Parameters:
reset- : set to true to revert the operation (set cells to "new")
-
getIdMap
Getter, only meant to be used by Jackson- Returns:
- the underlying map
-
equals
-
hashCode
public int hashCode() -
toString
-