Package net.sf.okapi.lib.verification
Class QualityCheckSession
- java.lang.Object
-
- net.sf.okapi.lib.verification.QualityCheckSession
-
public class QualityCheckSession extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILE_EXTENSION
-
Constructor Summary
Constructors Constructor Description QualityCheckSession()
-
Method Summary
-
-
-
Field Detail
-
FILE_EXTENSION
public static final String FILE_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
isModified
public boolean isModified()
-
setModified
public void setModified(boolean modified)
-
getParameters
public Parameters getParameters()
-
setParameters
public void setParameters(Parameters params)
-
getAutoRefresh
public boolean getAutoRefresh()
-
setAutoRefresh
public void setAutoRefresh(boolean autoRefresh)
-
addRawDocument
public void addRawDocument(RawDocument rawDoc)
Adds a raw document to the session. If this is the first document added to the session, the locales of the session are automatically set to the source and target locale of this document.- Parameters:
rawDoc- the raw document to add (it must have an input URI and its source and target locale set).
-
getDocuments
public List<RawDocument> getDocuments()
-
getDocumentsMap
public Map<URI,RawDocument> getDocumentsMap()
-
setFilterConfigurationMapper
public void setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper)
-
getFilterConfigurationMapper
public IFilterConfigurationMapper getFilterConfigurationMapper()
-
getSourceLocale
public LocaleId getSourceLocale()
-
setSourceLocale
public void setSourceLocale(LocaleId sourceLocale)
-
getTargetLocale
public LocaleId getTargetLocale()
-
setTargetLocale
public void setTargetLocale(LocaleId targetLocale)
-
reset
public void reset()
-
resetDisabledIssues
public void resetDisabledIssues()
-
getDocumentCount
public int getDocumentCount()
-
recheckDocument
public void recheckDocument(URI docId)
-
saveSession
public void saveSession(String path)
-
loadSession
public void loadSession(String path)
-
processStartDocument
public void processStartDocument(StartDocument startDoc, List<String> sigList)
-
processStartSubDocument
public void processStartSubDocument(StartSubDocument startSubDoc)
-
processTextUnit
public void processTextUnit(ITextUnit textUnit)
-
generateReport
public void generateReport(String rootDir)
-
-