Package org.openrefine.model.changes
Class ChangeContextImpl
- java.lang.Object
-
- org.openrefine.model.changes.ChangeContextImpl
-
- All Implemented Interfaces:
ChangeContext
public class ChangeContextImpl extends Object implements ChangeContext
-
-
Constructor Summary
Constructors Constructor Description ChangeContextImpl(long historyEntryId, long projectId, ChangeDataStore dataStore, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)<T> ChangeData<T>getChangeData(String dataId, ChangeDataSerializer<T> serializer, Function<Optional<ChangeData<T>>,ChangeData<T>> completionProcess)Retrieves aChangeDatafrom the underlyingChangeDataStore.StringgetChangeDescription()longgetHistoryEntryId()longgetProjectId()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ChangeContextImpl
public ChangeContextImpl(long historyEntryId, long projectId, ChangeDataStore dataStore, String description)
-
-
Method Detail
-
getHistoryEntryId
public long getHistoryEntryId()
- Specified by:
getHistoryEntryIdin interfaceChangeContext
-
getProjectId
public long getProjectId()
- Specified by:
getProjectIdin interfaceChangeContext
-
getChangeDescription
public String getChangeDescription()
- Specified by:
getChangeDescriptionin interfaceChangeContext
-
getChangeData
public <T> ChangeData<T> getChangeData(String dataId, ChangeDataSerializer<T> serializer, Function<Optional<ChangeData<T>>,ChangeData<T>> completionProcess) throws IOException
Description copied from interface:ChangeContextRetrieves aChangeDatafrom the underlyingChangeDataStore. It must have been registered in the store beforehand.- Specified by:
getChangeDatain interfaceChangeContext- Throws:
IOException
-
-