Package org.omegat.filters2
Class FilterContext
- java.lang.Object
-
- org.omegat.filters2.FilterContext
-
public class FilterContext extends java.lang.Object
Context for filter calls.
-
-
Constructor Summary
Constructors Constructor Description FilterContext(ProjectProperties props)
FilterContext(Language sourceLang, Language targetLang, boolean sentenceSegmentingEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getInEncoding()
Source file encoding, but can be 'null'.java.lang.String
getOutEncoding()
Target file encoding, but can be 'null'.Language
getSourceLang()
Source language of project.ITokenizer
getSourceTokenizer()
Language
getTargetLang()
Target language of project.ITokenizer
getTargetTokenizer()
boolean
isRemoveAllTags()
Should all tags be removed from segmentsboolean
isSentenceSegmentingEnabled()
Is sentence segmenting enabled.FilterContext
setInEncoding(java.lang.String inEncoding)
FilterContext
setOutEncoding(java.lang.String outEncoding)
FilterContext
setRemoveAllTags(boolean isRemoveAllTags)
FilterContext
setSourceTokenizerClass(java.lang.Class<?> sourceTokenizerClass)
FilterContext
setTargetTokenizerClass(java.lang.Class<?> targetTokenizerClass)
-
-
-
Constructor Detail
-
FilterContext
public FilterContext(ProjectProperties props)
-
-
Method Detail
-
getSourceLang
public Language getSourceLang()
Source language of project.
-
getTargetLang
public Language getTargetLang()
Target language of project.
-
getInEncoding
public java.lang.String getInEncoding()
Source file encoding, but can be 'null'.
-
setInEncoding
public FilterContext setInEncoding(java.lang.String inEncoding)
-
getOutEncoding
public java.lang.String getOutEncoding()
Target file encoding, but can be 'null'.
-
setOutEncoding
public FilterContext setOutEncoding(java.lang.String outEncoding)
-
isSentenceSegmentingEnabled
public boolean isSentenceSegmentingEnabled()
Is sentence segmenting enabled.
-
isRemoveAllTags
public boolean isRemoveAllTags()
Should all tags be removed from segments
-
setRemoveAllTags
public FilterContext setRemoveAllTags(boolean isRemoveAllTags)
-
setSourceTokenizerClass
public FilterContext setSourceTokenizerClass(java.lang.Class<?> sourceTokenizerClass)
-
getSourceTokenizer
public ITokenizer getSourceTokenizer()
-
setTargetTokenizerClass
public FilterContext setTargetTokenizerClass(java.lang.Class<?> targetTokenizerClass)
-
getTargetTokenizer
public ITokenizer getTargetTokenizer()
-
-