![JAR search and dependency download from the Maven repository](/logo.png)
one.edee.babylon.snapshot.TranslationSnapshotWriteContract Maven / Gradle / Ivy
package one.edee.babylon.snapshot;
import java.util.Collection;
/**
* Set of write operations that are required from the translation snapshot.
*/
public interface TranslationSnapshotWriteContract {
/**
* Generated persistent id for [msgFilePath] and stores the path along the new id
*
* @param msgFilePath message file path that will be registered in the snapshot
* @return persistent id given to the [msgFilePath]
*/
Integer registerMsgFile(String msgFilePath);
/**
* Removes message file paths from the translation snapshot.
*
* @param msgFilePaths message file paths to remove
*/
void removeMsgFilePaths(Collection msgFilePaths);
/**
* Gives access to underlying {@link Snapshot}, mainly for use in tests.
*
* @return underlying snapshot
*/
Snapshot getUnderlyingSnapshot();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy