public class CommandLineOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CommandLineOptions.OutputFormat
Constants for rule matches output in command-line.
|
Constructor and Description |
---|
CommandLineOptions() |
public boolean isPrintUsage()
public void setPrintUsage(boolean printUsage)
public boolean isPrintVersion()
public void setPrintVersion(boolean printVersion)
public boolean isVerbose()
public void setVerbose(boolean verbose)
public boolean isLineByLine()
public void setLineByLine(boolean lineByLine)
public boolean isEnableTempOff()
public void setEnableTempOff(boolean enableTempOff)
public boolean isCleanOverlapping()
public void setCleanOverlapping(boolean cleanOverlapping)
public boolean isRecursive()
public void setRecursive(boolean recursive)
public boolean isTaggerOnly()
public void setTaggerOnly(boolean taggerOnly)
public boolean isSingleLineBreakMarksParagraph()
public void setSingleLineBreakMarksParagraph(boolean singleLineBreakMarksParagraph)
public boolean isJsonFormat()
public void setJsonFormat()
public boolean isListUnknown()
public void setListUnknown(boolean listUnknown)
public boolean isApplySuggestions()
public void setApplySuggestions(boolean applySuggestions)
public boolean isProfile()
public void setProfile(boolean profile)
public boolean isBitext()
public void setBitext(boolean bitext)
public boolean isAutoDetect()
public void setAutoDetect(boolean autoDetect)
@Nullable public Language getLanguage()
public void setLanguage(Language language)
@Nullable public Language getMotherTongue()
public void setMotherTongue(Language motherTongue)
@Nullable public File getLanguageModel()
3grams
), or null
public void setLanguageModel(File languageModel)
@Nullable public File getFasttextModel()
public void setFasttextModel(File fasttextModel)
@Nullable public File getFasttextBinary()
public void setFasttextBinary(File fasttextBinary)
@Nullable public String getRuleFile()
public void setRuleFile(String ruleFile)
ruleFile
- absolute file name of the XML rule file@Nullable public String getRemoteRulesFile()
public void setRemoteRulesFile(String remoteRulesFile)
@Nullable public String getEncoding()
public void setEncoding(String encoding)
@Nullable public String getFilename()
public void setFilename(String filename)
public Set<CategoryId> getEnabledCategories()
public Set<CategoryId> getDisabledCategories()
public boolean isUseEnabledOnly()
public void setUseEnabledOnly()
public boolean isXmlFiltering()
public void setXmlFiltering(boolean xmlFiltering)
public boolean isPrintLanguages()
public void setPrintLanguages(boolean printLanguages)
public void setFalseFriendFile(String file)
file
- False friends filename@Nullable public String getFalseFriendFile()
null
@Nullable public String getBitextRuleFile()
null
public void setBitextRuleFile(String bitextRuleFile)
bitextRuleFile
- the bitext rule file namepublic void setLevel(JLanguageTool.Level level)
public JLanguageTool.Level getLevel()