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 boolean
equals(Object other)
<T> ChangeData<T>
getChangeData(String dataId, ChangeDataSerializer<T> serializer, Function<Optional<ChangeData<T>>,ChangeData<T>> completionProcess)
Retrieves aChangeData
from the underlyingChangeDataStore
.String
getChangeDescription()
long
getHistoryEntryId()
long
getProjectId()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
ChangeContextImpl
public ChangeContextImpl(long historyEntryId, long projectId, ChangeDataStore dataStore, String description)
-
-
Method Detail
-
getHistoryEntryId
public long getHistoryEntryId()
- Specified by:
getHistoryEntryId
in interfaceChangeContext
-
getProjectId
public long getProjectId()
- Specified by:
getProjectId
in interfaceChangeContext
-
getChangeDescription
public String getChangeDescription()
- Specified by:
getChangeDescription
in 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:ChangeContext
Retrieves aChangeData
from the underlyingChangeDataStore
. It must have been registered in the store beforehand.- Specified by:
getChangeData
in interfaceChangeContext
- Throws:
IOException
-
-