public class Parameters extends StringParameters
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_EXTENSION |
static int |
SCOPE_ALL |
static int |
SCOPE_APPROVEDONLY |
static int |
SCOPE_NOTAPPROVEDONLY |
static String |
XLIFF_SCHEMA_NONE |
static String |
XLIFF_SCHEMA_STRICT |
static String |
XLIFF_SCHEMA_TRANSITIONAL |
bufferpath| Constructor and Description |
|---|
Parameters() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromString(String data)
Reset this parameters object to its default values and then load
additional parameters from the provided data.
|
void |
fromString(String data,
boolean clearParameters)
Load additional parameters from the provided data.
|
int |
getAbsoluteMaxCharLength() |
boolean |
getAllowBlacklistSub() |
boolean |
getAutoOpen() |
boolean |
getBetweenCodes() |
String |
getBlacklistPath() |
boolean |
getBlacklistSrc() |
InputStream |
getBlacklistStream() |
String |
getCharset() |
boolean |
getCheckAbsoluteMaxCharLength() |
boolean |
getCheckAllowedCharacters() |
boolean |
getCheckBlacklist() |
boolean |
getCheckCharacters() |
boolean |
getCheckMaxCharLength() |
boolean |
getCheckMinCharLength() |
boolean |
getCheckPatterns() |
boolean |
getCheckStorageSize() |
boolean |
getCheckTerms() |
boolean |
getCheckWithLT() |
boolean |
getCheckXliffSchema() |
boolean |
getCodeDifference() |
boolean |
getCorruptedCharacters() |
boolean |
getDoubledWord() |
String |
getDoubledWordExceptions() |
boolean |
getEmptySource() |
boolean |
getEmptyTarget() |
String |
getExtraCharsAllowed() |
List<String> |
getExtraCodesAllowed() |
boolean |
getGuessOpenClose() |
boolean |
getIncludeTextContainers() |
boolean |
getLeadingWS() |
boolean |
getLtBilingualMode() |
int |
getMaxCharLengthAbove() |
int |
getMaxCharLengthBelow() |
int |
getMaxCharLengthBreak() |
int |
getMinCharLengthAbove() |
int |
getMinCharLengthBelow() |
int |
getMinCharLengthBreak() |
List<String> |
getMissingCodesAllowed() |
String |
getOutputPath() |
int |
getOutputType() |
List<PatternItem> |
getPatterns() |
boolean |
getSaveSession() |
int |
getScope() |
String |
getServerURL() |
String |
getSessionPath() |
boolean |
getShowFullPath() |
boolean |
getShowOnlyPatternDescription() |
boolean |
getStrictCodeOrder() |
boolean |
getStringMode() |
boolean |
getTargetSameAsSource() |
boolean |
getTargetSameAsSourceForSameLanguage() |
boolean |
getTargetSameAsSourceWithCodes() |
boolean |
getTargetSameAsSourceWithNumbers() |
String |
getTermsPath() |
boolean |
getTrailingWS() |
String |
getTypesToIgnore() |
boolean |
getUseGenericCodes() |
String |
getXliffSchemaType() |
void |
reset()
Reset this parameters object to its default values.
|
void |
setAbsoluteMaxCharLength(int absoluteMaxCharLength) |
void |
setAllowBlacklistSub(boolean allowBlacklistSub) |
void |
setAutoOpen(boolean autoOpen) |
void |
setBetweenCodes(boolean betweenCodes) |
void |
setblacklistPath(String blacklistPath) |
void |
setBlacklistSrc(boolean blacklistSrc) |
void |
setBlacklistStream(InputStream blacklistStream) |
void |
setCharset(String charset) |
void |
setCheckAbsoluteMaxCharLength(boolean checkAbsoluteMaxCharLength) |
void |
setCheckAllowedCharacters(boolean checkAllowedCharacters) |
void |
setCheckBlacklist(boolean checkBlacklist) |
void |
setCheckCharacters(boolean checkCharacters) |
void |
setCheckMaxCharLength(boolean checkMaxCharLength) |
void |
setCheckMinCharLength(boolean checkMinCharLength) |
void |
setCheckPatterns(boolean patterns) |
void |
setCheckStorageSize(boolean checkStorageSize) |
void |
setCheckTerms(boolean checkTerms) |
void |
setCheckWithLT(boolean checkWithLT) |
void |
setCheckXliffSchema(boolean schema) |
void |
setCodeDifference(boolean codeDifference) |
void |
setCorruptedCharacters(boolean corruptedCharacters) |
void |
setDoubledWord(boolean doubledWord) |
void |
setDoubledWordExceptions(String doubledWordExceptions) |
void |
setEmptySource(boolean emptySource) |
void |
setEmptyTarget(boolean emptyTarget) |
void |
setExtraCharsAllowed(String extraCharsAllowed) |
void |
setGuessOpenClose(boolean guessOpenClose) |
void |
setIncludeTextContainers(boolean includeTextContainers) |
void |
setLeadingWS(boolean leadingWS) |
void |
setLtBilingualMode(boolean ltBilingualMode) |
void |
setMaxCharLengthAbove(int maxCharLengthAbove) |
void |
setMaxCharLengthBelow(int maxCharLengthBelow) |
void |
setMaxCharLengthBreak(int maxCharLengthBreak) |
void |
setMinCharLengthAbove(int minCharLengthAbove) |
void |
setMinCharLengthBelow(int minCharLengthBelow) |
void |
setMinCharLengthBreak(int minCharLengthBreak) |
void |
setOutputPath(String outputPath) |
void |
setOutputType(int outputType) |
void |
setPatterns(List<PatternItem> patterns) |
void |
setSaveSession(boolean saveSession) |
void |
setScope(int scope) |
void |
setServerURL(String serverURL) |
void |
setSessionPath(String sessionPath) |
void |
setShowFullPath(boolean showFullPath) |
void |
setShowOnlyPatternDescription(boolean showOnlyPatterndescription) |
void |
setStrictCodeOrder(boolean strictCodeOrder) |
void |
setStringMode(boolean stringMode) |
void |
setTargetSameAsSource(boolean targetSameAsSource) |
void |
setTargetSameAsSourceForSameLanguage(boolean targetSameAsSourceForSameLanguage) |
void |
setTargetSameAsSourceWithCodes(boolean targetSameAsSourceWithCodes) |
void |
setTargetSameAsSourceWithNumbers(boolean targetSameAsSourceWithNumbers) |
void |
setTermsPath(String termsPath) |
void |
setTrailingWS(boolean trailingWS) |
void |
setTypesToIgnore(String typesToIgnore) |
void |
setUseGenericCodes(boolean useGenericCodes) |
void |
setXliffSchemaType(String schemaType) |
String |
toString()
Serialize this parameters object to a string.
|
getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setStringgetParametersDescription, getPath, load, load, save, setPathpublic static final String FILE_EXTENSION
public static final int SCOPE_ALL
public static final int SCOPE_APPROVEDONLY
public static final int SCOPE_NOTAPPROVEDONLY
public static final String XLIFF_SCHEMA_NONE
public static final String XLIFF_SCHEMA_TRANSITIONAL
public static final String XLIFF_SCHEMA_STRICT
public String getTypesToIgnore()
public void setTypesToIgnore(String typesToIgnore)
public int getScope()
public void setScope(int scope)
public boolean getCorruptedCharacters()
public void setCorruptedCharacters(boolean corruptedCharacters)
public boolean getCheckAllowedCharacters()
public void setCheckAllowedCharacters(boolean checkAllowedCharacters)
public boolean getCheckCharacters()
public void setCheckCharacters(boolean checkCharacters)
public String getCharset()
public void setCharset(String charset)
public String getExtraCharsAllowed()
public void setExtraCharsAllowed(String extraCharsAllowed)
public boolean getCheckStorageSize()
public void setCheckStorageSize(boolean checkStorageSize)
public boolean getCheckMaxCharLength()
public void setCheckMaxCharLength(boolean checkMaxCharLength)
public int getMaxCharLengthBreak()
public void setMaxCharLengthBreak(int maxCharLengthBreak)
public int getMaxCharLengthAbove()
public void setMaxCharLengthAbove(int maxCharLengthAbove)
public int getMaxCharLengthBelow()
public void setMaxCharLengthBelow(int maxCharLengthBelow)
public boolean getCheckMinCharLength()
public void setCheckMinCharLength(boolean checkMinCharLength)
public int getMinCharLengthBreak()
public void setMinCharLengthBreak(int minCharLengthBreak)
public int getMinCharLengthAbove()
public void setMinCharLengthAbove(int minCharLengthAbove)
public int getMinCharLengthBelow()
public void setMinCharLengthBelow(int minCharLengthBelow)
public boolean getCheckAbsoluteMaxCharLength()
public void setCheckAbsoluteMaxCharLength(boolean checkAbsoluteMaxCharLength)
public int getAbsoluteMaxCharLength()
public void setAbsoluteMaxCharLength(int absoluteMaxCharLength)
public boolean getDoubledWord()
public void setDoubledWord(boolean doubledWord)
public String getDoubledWordExceptions()
public void setDoubledWordExceptions(String doubledWordExceptions)
public boolean getSaveSession()
public void setSaveSession(boolean saveSession)
public String getSessionPath()
public void setSessionPath(String sessionPath)
public String getOutputPath()
public void setOutputPath(String outputPath)
public int getOutputType()
public void setOutputType(int outputType)
public boolean getAutoOpen()
public void setAutoOpen(boolean autoOpen)
public boolean getLeadingWS()
public void setLeadingWS(boolean leadingWS)
public boolean getTrailingWS()
public void setTrailingWS(boolean trailingWS)
public boolean getEmptyTarget()
public void setEmptyTarget(boolean emptyTarget)
public boolean getEmptySource()
public void setEmptySource(boolean emptySource)
public boolean getTargetSameAsSource()
public void setTargetSameAsSource(boolean targetSameAsSource)
public boolean getTargetSameAsSourceForSameLanguage()
public void setTargetSameAsSourceForSameLanguage(boolean targetSameAsSourceForSameLanguage)
public boolean getTargetSameAsSourceWithCodes()
public void setTargetSameAsSourceWithCodes(boolean targetSameAsSourceWithCodes)
public boolean getTargetSameAsSourceWithNumbers()
public void setTargetSameAsSourceWithNumbers(boolean targetSameAsSourceWithNumbers)
public boolean getCodeDifference()
public void setCodeDifference(boolean codeDifference)
public boolean getGuessOpenClose()
public void setGuessOpenClose(boolean guessOpenClose)
public boolean getStrictCodeOrder()
public void setStrictCodeOrder(boolean strictCodeOrder)
public boolean getCheckXliffSchema()
public void setCheckXliffSchema(boolean schema)
public String getXliffSchemaType()
public void setXliffSchemaType(String schemaType)
public boolean getCheckPatterns()
public void setCheckPatterns(boolean patterns)
public List<PatternItem> getPatterns()
public void setPatterns(List<PatternItem> patterns)
public boolean getShowOnlyPatternDescription()
public void setShowOnlyPatternDescription(boolean showOnlyPatterndescription)
public boolean getCheckWithLT()
public void setCheckWithLT(boolean checkWithLT)
public String getServerURL()
public void setServerURL(String serverURL)
public boolean getLtBilingualMode()
public void setLtBilingualMode(boolean ltBilingualMode)
public boolean getCheckTerms()
public void setCheckTerms(boolean checkTerms)
public boolean getCheckBlacklist()
public boolean getAllowBlacklistSub()
public boolean getBlacklistSrc()
public void setCheckBlacklist(boolean checkBlacklist)
public void setAllowBlacklistSub(boolean allowBlacklistSub)
public void setBlacklistSrc(boolean blacklistSrc)
public boolean getStringMode()
public void setStringMode(boolean stringMode)
public boolean getBetweenCodes()
public void setBetweenCodes(boolean betweenCodes)
public boolean getShowFullPath()
public void setShowFullPath(boolean showFullPath)
public boolean getIncludeTextContainers()
public void setIncludeTextContainers(boolean includeTextContainers)
public boolean getUseGenericCodes()
public void setUseGenericCodes(boolean useGenericCodes)
public String getTermsPath()
public void setTermsPath(String termsPath)
public String getBlacklistPath()
public void setblacklistPath(String blacklistPath)
public InputStream getBlacklistStream()
public void setBlacklistStream(InputStream blacklistStream)
public void reset()
StringParameters
Subclasses should override this method to set any initial
values and instantiate any objects that require allocation. It
is recommended that subclasses also call super.reset()
in the override to ensure that the buffer is empty.
reset in interface IParametersreset in class StringParameterspublic void fromString(String data)
StringParameters
Subclasses should not normally need to override this method unless
they are maintaining complex values (eg, InlineCodeFinder)
that require extra initialization as part of their parameter state.
fromString in interface IParametersfromString in class StringParametersdata - the string holding the parameters. It must be formatted as
the string generated by toString(). Line-breaks must be normalized to '\n'.
It can also be null or empty, in such case the parameters are left with
their current values. Use reset() to reset the parameters to their defaults.public void fromString(String data, boolean clearParameters)
StringParameters
Subclasses should not normally need to override this method unless
they are maintaining complex values (eg, InlineCodeFinder)
that require extra initialization as part of their parameter state.
fromString in class StringParametersdata - the string holding the parameters. See IParameters.fromString(java.lang.String).clearParameters - if true, the internal parameters will be cleared before
loading the data. If false, any existing parameters will be left intact
unless they are overridden by the data.public String toString()
StringParameters
Subclasses should not normally need to override this method unless
they are maintaining complex values (eg, InlineCodeFinder)
that require extra serialization as part of their parameter state.
toString in interface IParameterstoString in class StringParametersCopyright © 2022. All rights reserved.