public class Parameters extends StringParameters implements ISimplifierRulesParameters
| Modifier and Type | Class and Description |
|---|---|
static class |
Parameters.SegmentationType |
| Modifier and Type | Field and Description |
|---|---|
static String |
ADDALTTRANS |
static String |
ADDALTTRANSGMODE |
static String |
EDITALTTRANS |
static int |
TARGETSTATEMODE_DONOTEXTRACT |
static int |
TARGETSTATEMODE_EXTRACT |
static int |
TARGETSTATEMODE_IGNORE |
bufferpathSIMPLIFIERRULES, SIMPLIFIERRULES_DISPLAY_NAME, SIMPLIFIERRULES_SHORT_DESC| 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.
|
boolean |
getAddAltTrans() |
boolean |
getAddAltTransGMode() |
boolean |
getAddTargetLanguage() |
boolean |
getAllowEmptyTargets() |
String |
getCdataSubfilter() |
InlineCodeFinder |
getCodeFinder() |
String |
getCodeFinderData() |
boolean |
getEditAltTrans() |
boolean |
getEscapeGT() |
String |
getFactoryClass() |
boolean |
getFallbackToID() |
boolean |
getIgnoreInputSegmentation() |
boolean |
getIncludeExtensions() |
boolean |
getIncludeIts() |
String |
getIwsBlockTmScoreValue() |
String |
getIwsTransStatusValue() |
String |
getIwsTransTypeValue() |
Parameters.SegmentationType |
getOutputSegmentationType() |
boolean |
getOverrideTargetLanguage() |
int |
getQuoteMode() |
boolean |
getQuoteModeDefined() |
String |
getSdlSegConfValue() |
String |
getSdlSegLockedValue() |
String |
getSdlSegOriginValue() |
String |
getSimplifierRules()
Get the code simplifier rules as defined by
SimplifierRules
(JavaCC file: core/simplifierrules/SimplifierRules.jj). |
boolean |
getSkipNoMrkSegSource() |
boolean |
getSubAsTextUnit() |
int |
getTargetStateMode() |
String |
getTargetStateValue() |
boolean |
getUseCodeFinder() |
boolean |
getUseCustomParser() |
boolean |
getUseSegsForSdlProps() |
boolean |
getUseTranslationTargetState() |
boolean |
isAlwaysUseSegSource() |
boolean |
isInlineCdata() |
boolean |
isIwsBlockFinished() |
boolean |
isIwsBlockLockStatus() |
boolean |
isIwsBlockMultipleExact() |
boolean |
isIwsBlockTmScore() |
boolean |
isIwsIncludeMultipleExact() |
boolean |
isIwsRemoveTmOrigin() |
boolean |
isPreserveSpaceByDefault() |
boolean |
isUseIwsXliffWriter() |
boolean |
isUseSdlXliffWriter() |
void |
reset()
Reset this parameters object to its default values.
|
void |
setAddAltTrans(boolean addAltTrans) |
void |
setAddAltTransGMode(boolean addAltTransGMode) |
void |
setAddTargetLanguage(boolean addTargetLanguage) |
void |
setAllowEmptyTargets(boolean allowEmptyTargets) |
void |
setAlwaysUseSegSource(boolean alwaysUSeSegSource) |
void |
setCdataSubfilter(String subfilter) |
void |
setCodeFinderData(String data) |
void |
setEditAltTrans(boolean editAltTrans) |
void |
setEscapeGT(boolean escapeGT) |
void |
setFactoryClass(String factoryClass) |
void |
setFallbackToID(boolean fallbackToID) |
void |
setIgnoreInputSegmentation(boolean ignoreInputSegmentation) |
void |
setIncludeExtensions(boolean includeExtensions) |
void |
setIncludeIts(boolean includeIts) |
void |
setInlineCdata(boolean inlineCdata) |
void |
setIwsBlockFinished(boolean iwsBlockFinished) |
void |
setIwsBlockLockStatus(boolean iwsBlockLockStatus) |
void |
setIwsBlockMultipleExact(boolean iwsBlockMultipleExact) |
void |
setIwsBlockTmScore(boolean iwsBlockTmScore) |
void |
setIwsBlockTmScoreValue(String iwsBlockTmScoreValue) |
void |
setIwsIncludeMultipleExact(boolean iwsIncludeMultipleExact) |
void |
setIwsRemoveTmOrigin(boolean iwsRemoveTmOrigin) |
void |
setIwsTransStatusValue(String iwsTransStatusValue) |
void |
setIwsTransTypeValue(String iwsTransTypeValue) |
void |
setOutputSegmentationType(Parameters.SegmentationType segmentationType) |
void |
setOverrideTargetLanguage(boolean overrideTargetLanguage) |
void |
setPreserveSpaceByDefault(boolean preserveSpaceByDefault) |
protected void |
setQuoteMode(int quoteMode) |
protected void |
setQuoteModeDefined(boolean defined) |
void |
setSdlSegConfValue(String sdlSegConfvalue) |
void |
setSdlSegLockedValue(String sdlSegLockedvalue) |
void |
setSdlSegOriginValue(String sdlSegOriginvalue) |
void |
setSimplifierRules(String rules)
Set the simplifier rules.
|
void |
setSkipNoMrkSegSource(boolean skipNoMrkSegSource) |
void |
setSubAsTextUnit(boolean subAsTextUnit) |
void |
setTargetStateMode(int targetStateMode) |
void |
setTargetStateValue(String targetStateValue) |
void |
setUseCodeFinder(boolean useCodeFinder) |
void |
setUseCustomParser(boolean useCustomParser) |
void |
setUseIwsXliffWriter(boolean useIwsXliffWriter) |
void |
setUseSdlXliffWriter(boolean useSdlXliffWriter) |
void |
setUseSegsForSdlProps(boolean useSegsForSdlProps) |
void |
setUseTranslationTargetState(boolean targetStateValue) |
String |
toString()
Serialize this parameters object to a string.
|
void |
validateSimplifierRules()
Validate the current code simplifier rules.
|
fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setStringgetParametersDescription, getPath, load, load, save, setPathpublic static final int TARGETSTATEMODE_IGNORE
public static final int TARGETSTATEMODE_EXTRACT
public static final int TARGETSTATEMODE_DONOTEXTRACT
public static final String ADDALTTRANS
public static final String ADDALTTRANSGMODE
public static final String EDITALTTRANS
public boolean getUseCustomParser()
public void setUseCustomParser(boolean useCustomParser)
public String getFactoryClass()
public void setFactoryClass(String factoryClass)
public boolean getSubAsTextUnit()
public void setSubAsTextUnit(boolean subAsTextUnit)
public boolean getEscapeGT()
public void setEscapeGT(boolean escapeGT)
public boolean getFallbackToID()
public void setFallbackToID(boolean fallbackToID)
public boolean getAddTargetLanguage()
public void setAddTargetLanguage(boolean addTargetLanguage)
public boolean getOverrideTargetLanguage()
public void setOverrideTargetLanguage(boolean overrideTargetLanguage)
public Parameters.SegmentationType getOutputSegmentationType()
public void setOutputSegmentationType(Parameters.SegmentationType segmentationType)
public boolean getIgnoreInputSegmentation()
public void setIgnoreInputSegmentation(boolean ignoreInputSegmentation)
public boolean getAddAltTrans()
public void setAddAltTrans(boolean addAltTrans)
public boolean getAddAltTransGMode()
public void setAddAltTransGMode(boolean addAltTransGMode)
public boolean getEditAltTrans()
public void setEditAltTrans(boolean editAltTrans)
public boolean getIncludeExtensions()
public void setIncludeExtensions(boolean includeExtensions)
public boolean getIncludeIts()
public void setIncludeIts(boolean includeIts)
public boolean getAllowEmptyTargets()
public void setAllowEmptyTargets(boolean allowEmptyTargets)
public int getTargetStateMode()
public void setTargetStateMode(int targetStateMode)
public String getTargetStateValue()
public void setTargetStateValue(String targetStateValue)
public boolean getUseTranslationTargetState()
public void setUseTranslationTargetState(boolean targetStateValue)
public boolean getQuoteModeDefined()
public boolean isAlwaysUseSegSource()
public void setAlwaysUseSegSource(boolean alwaysUSeSegSource)
public boolean isPreserveSpaceByDefault()
public void setPreserveSpaceByDefault(boolean preserveSpaceByDefault)
protected void setQuoteModeDefined(boolean defined)
public int getQuoteMode()
protected void setQuoteMode(int quoteMode)
public boolean isUseSdlXliffWriter()
public void setUseSdlXliffWriter(boolean useSdlXliffWriter)
public String getSdlSegLockedValue()
public void setSdlSegLockedValue(String sdlSegLockedvalue)
public String getSdlSegConfValue()
public void setSdlSegConfValue(String sdlSegConfvalue)
public String getSdlSegOriginValue()
public void setSdlSegOriginValue(String sdlSegOriginvalue)
public boolean getUseSegsForSdlProps()
public void setUseSegsForSdlProps(boolean useSegsForSdlProps)
public boolean isInlineCdata()
public void setInlineCdata(boolean inlineCdata)
public boolean getSkipNoMrkSegSource()
public void setSkipNoMrkSegSource(boolean skipNoMrkSegSource)
public boolean getUseCodeFinder()
public void setUseCodeFinder(boolean useCodeFinder)
public InlineCodeFinder getCodeFinder()
public String getCodeFinderData()
public void setCodeFinderData(String data)
public boolean isUseIwsXliffWriter()
public void setUseIwsXliffWriter(boolean useIwsXliffWriter)
public boolean isIwsBlockFinished()
public void setIwsBlockFinished(boolean iwsBlockFinished)
public String getIwsTransStatusValue()
public void setIwsTransStatusValue(String iwsTransStatusValue)
public boolean isIwsRemoveTmOrigin()
public void setIwsRemoveTmOrigin(boolean iwsRemoveTmOrigin)
public String getIwsTransTypeValue()
public void setIwsTransTypeValue(String iwsTransTypeValue)
public void setIwsBlockLockStatus(boolean iwsBlockLockStatus)
public boolean isIwsBlockLockStatus()
public void setIwsBlockTmScore(boolean iwsBlockTmScore)
public boolean isIwsBlockTmScore()
public void setIwsBlockTmScoreValue(String iwsBlockTmScoreValue)
public String getIwsBlockTmScoreValue()
public void setIwsBlockMultipleExact(boolean iwsBlockMultipleExact)
public boolean isIwsBlockMultipleExact()
public void setIwsIncludeMultipleExact(boolean iwsIncludeMultipleExact)
public boolean isIwsIncludeMultipleExact()
public String getCdataSubfilter()
public void setCdataSubfilter(String subfilter)
public String getSimplifierRules()
ISimplifierRulesParametersSimplifierRules
(JavaCC file: core/simplifierrules/SimplifierRules.jj).getSimplifierRules in interface ISimplifierRulesParameterspublic void setSimplifierRules(String rules)
ISimplifierRulesParameterssetSimplifierRules in interface ISimplifierRulesParametersrules - new simplifier rulespublic void validateSimplifierRules()
throws ParseException
ISimplifierRulesParametersvalidateSimplifierRules in interface ISimplifierRulesParametersParseException - if the rule cannot be parsedpublic 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 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.