public class XLIFFWriterParameters extends StringParameters
XLIFFWriter in a single object.bufferpath| Constructor and Description |
|---|
XLIFFWriterParameters() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCopySource() |
boolean |
getCreateEmptyTarget() |
boolean |
getEscapeGt() |
boolean |
getIncludeAltTrans() |
boolean |
getIncludeCodeAttrs() |
boolean |
getIncludeIts()
Gets the flag indicating if ITS markup should be output or not.
|
boolean |
getIncludeNoTranslate() |
ParametersDescription |
getParametersDescription()
Gets the description of the parameters.
|
boolean |
getPlaceholderMode()
Gets the flag indicating if the inline code should use the place-holder notation (g and x elements).
|
boolean |
getSetApprovedAsNoTranslate() |
String |
getToolCompany() |
String |
getToolId() |
String |
getToolName() |
String |
getToolVersion() |
String |
getToolXmlSnippet() |
boolean |
getUseSourceForTranslated() |
void |
reset()
Reset this parameters object to its default values.
|
void |
setCopySource(boolean copySource)
Sets the copySource flag indicating to copy the source at the target spot if there is no target defined.
|
void |
setCreateEmptyTarget(boolean createEmptyTarget) |
void |
setEscapeGt(boolean escapeGt)
Sets the flag indicating if '>' should be escaped or not.
|
void |
setIncludeAltTrans(boolean includeAltTrans)
Sets the flag indicating if alt-trans elements should be output or not.
|
void |
setIncludeCodeAttrs(boolean includeCodeAttrs)
Sets the flag indicating if extended code attributes should be output or not.
|
void |
setIncludeIts(boolean includeIts)
Sets the flag indicating if ITS markup should be output or not.
|
void |
setIncludeNoTranslate(boolean includeNoTranslate)
Sets the flag indicating if non-translatable text units should be output or not.
|
void |
setPlaceholderMode(boolean placeholderMode)
Sets the flag indicating if the inline code should use the place-holder notation (g and x elements).
|
void |
setSetApprovedAsNoTranslate(boolean setApprovedAsNoTranslate)
Sets the flag indicating to mark as not translatable all entries that are approved.
|
void |
setToolCompany(String toolCompany) |
void |
setToolId(String toolId) |
void |
setToolName(String toolName) |
void |
setToolVersion(String toolVersion) |
void |
setToolXmlSnippet(String snippet) |
void |
setUseSourceForTranslated(boolean useSourceForTranslated)
Sets the flag indicating if the source text is used in the target, even if
a target is available.
|
fromString, fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString, toStringpublic boolean getUseSourceForTranslated()
public void setUseSourceForTranslated(boolean useSourceForTranslated)
This is for the tools where we trust the target will be obtained by the tool from the TMX from original. This is to allow editing of pre-translated items in XLIFF editors that use directly the <target> element.
useSourceForTranslated - true to use the source in the target even if a target text
is available.public boolean getEscapeGt()
public void setEscapeGt(boolean escapeGt)
escapeGt - true to always escape '>', false to not escape it.public boolean getPlaceholderMode()
public void setPlaceholderMode(boolean placeholderMode)
placeholderMode - true if the inline code should use the place-holder notation.public boolean getIncludeNoTranslate()
public void setIncludeNoTranslate(boolean includeNoTranslate)
includeNoTranslate - true to include non-translatable text unit in the output.public boolean getSetApprovedAsNoTranslate()
public void setSetApprovedAsNoTranslate(boolean setApprovedAsNoTranslate)
setApprovedAsNoTranslate - true to mark approved entries as not translatable.public boolean getCopySource()
public void setCopySource(boolean copySource)
copySource - true to copy the source at the target spot if there is no target defined.public boolean getIncludeAltTrans()
public void setIncludeAltTrans(boolean includeAltTrans)
includeAltTrans - true to include alt-trans element in the output.public boolean getIncludeCodeAttrs()
public void setIncludeCodeAttrs(boolean includeCodeAttrs)
includeCodeAttrs - true to include extended code attributes in the output.public boolean getIncludeIts()
public void setIncludeIts(boolean includeIts)
includeIts - true to include ITS markup in the output.public String getToolId()
public void setToolId(String toolId)
public String getToolName()
public void setToolName(String toolName)
public String getToolVersion()
public void setToolVersion(String toolVersion)
public String getToolCompany()
public void setToolCompany(String toolCompany)
public String getToolXmlSnippet()
public void setToolXmlSnippet(String snippet)
public boolean getCreateEmptyTarget()
public void setCreateEmptyTarget(boolean createEmptyTarget)
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 ParametersDescription getParametersDescription()
IParametersgetParametersDescription in interface IParametersgetParametersDescription in class BaseParametersCopyright © 2021. All rights reserved.