Package net.sf.okapi.filters.xliff.its
Class ITSDefaultDataStore
- java.lang.Object
-
- net.sf.okapi.filters.xliff.its.ITSDefaultDataStore
-
- All Implemented Interfaces:
IITSDataStore
public class ITSDefaultDataStore extends Object implements IITSDataStore
Simple HashMap for storing ITS references for future use.
-
-
Constructor Summary
Constructors Constructor Description ITSDefaultDataStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITSLQICollectiongetLQIByURI(String uri)Fetch LQI metadata by URI.ITSProvenanceCollectiongetProvByURI(String uri)Fetch Provenance metadata by URI.Collection<String>getStoredLQIURIs()Return a list of stored LQI metadata URIs.Collection<String>getStoredProvURIs()Return a list of stored Provenance metadata URIs.voidinitialize(String identifier)Setup IITSDataStore with an identifier marking each time a new file is opened for parsing.voidsave(ITSLQICollection lqi)Store LQI metadata.voidsave(ITSProvenanceCollection prov)Store Provenance metadata.
-
-
-
Method Detail
-
initialize
public void initialize(String identifier)
Description copied from interface:IITSDataStoreSetup IITSDataStore with an identifier marking each time a new file is opened for parsing.- Specified by:
initializein interfaceIITSDataStore
-
getLQIByURI
public ITSLQICollection getLQIByURI(String uri)
Description copied from interface:IITSDataStoreFetch LQI metadata by URI.- Specified by:
getLQIByURIin interfaceIITSDataStore
-
getProvByURI
public ITSProvenanceCollection getProvByURI(String uri)
Description copied from interface:IITSDataStoreFetch Provenance metadata by URI.- Specified by:
getProvByURIin interfaceIITSDataStore
-
save
public void save(ITSLQICollection lqi)
Description copied from interface:IITSDataStoreStore LQI metadata.- Specified by:
savein interfaceIITSDataStore
-
save
public void save(ITSProvenanceCollection prov)
Description copied from interface:IITSDataStoreStore Provenance metadata.- Specified by:
savein interfaceIITSDataStore
-
getStoredLQIURIs
public Collection<String> getStoredLQIURIs()
Description copied from interface:IITSDataStoreReturn a list of stored LQI metadata URIs.- Specified by:
getStoredLQIURIsin interfaceIITSDataStore
-
getStoredProvURIs
public Collection<String> getStoredProvURIs()
Description copied from interface:IITSDataStoreReturn a list of stored Provenance metadata URIs.- Specified by:
getStoredProvURIsin interfaceIITSDataStore
-
-