Class Parameters
- java.lang.Object
-
- net.sf.okapi.common.BaseParameters
-
- net.sf.okapi.common.StringParameters
-
- net.sf.okapi.steps.formatconversion.Parameters
-
- All Implemented Interfaces:
Cloneable,IParameters,IEditorDescriptionProvider
public class Parameters extends StringParameters implements IEditorDescriptionProvider
-
-
Field Summary
Fields Modifier and Type Field Description static StringFORMAT_CORPUSstatic StringFORMAT_PENSIEVEstatic StringFORMAT_POstatic StringFORMAT_TABLEstatic StringFORMAT_TMXstatic StringFORMAT_WORDTABLEstatic StringFORMAT_XLIFFstatic intTRG_FORCEEMPTYstatic intTRG_FORCESOURCEstatic intTRG_TARGETOREMPTY-
Fields inherited from class net.sf.okapi.common.StringParameters
buffer
-
Fields inherited from class net.sf.okapi.common.BaseParameters
path
-
-
Constructor Summary
Constructors Constructor Description Parameters()
-
Method Summary
-
Methods inherited from class net.sf.okapi.common.StringParameters
fromString, fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.IParameters
copy
-
-
-
-
Field Detail
-
FORMAT_TMX
public static final String FORMAT_TMX
- See Also:
- Constant Field Values
-
FORMAT_PO
public static final String FORMAT_PO
- See Also:
- Constant Field Values
-
FORMAT_TABLE
public static final String FORMAT_TABLE
- See Also:
- Constant Field Values
-
FORMAT_PENSIEVE
public static final String FORMAT_PENSIEVE
- See Also:
- Constant Field Values
-
FORMAT_CORPUS
public static final String FORMAT_CORPUS
- See Also:
- Constant Field Values
-
FORMAT_WORDTABLE
public static final String FORMAT_WORDTABLE
- See Also:
- Constant Field Values
-
FORMAT_XLIFF
public static final String FORMAT_XLIFF
- See Also:
- Constant Field Values
-
TRG_TARGETOREMPTY
public static final int TRG_TARGETOREMPTY
- See Also:
- Constant Field Values
-
TRG_FORCESOURCE
public static final int TRG_FORCESOURCE
- See Also:
- Constant Field Values
-
TRG_FORCEEMPTY
public static final int TRG_FORCEEMPTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTargetStyle
public int getTargetStyle()
-
setTargetStyle
public void setTargetStyle(int targetStyle)
-
getSingleOutput
public boolean getSingleOutput()
-
setSingleOutput
public void setSingleOutput(boolean singleOutput)
-
getAutoExtensions
public boolean getAutoExtensions()
-
setAutoExtensions
public void setAutoExtensions(boolean autoExtensions)
-
getOutputPath
public String getOutputPath()
-
setOutputPath
public void setOutputPath(String outputPath)
-
getOutputFormat
public String getOutputFormat()
-
setOutputFormat
public void setOutputFormat(String outputFormat)
-
getUseGenericCodes
public boolean getUseGenericCodes()
-
setUseGenericCodes
public void setUseGenericCodes(boolean useGenericCodes)
-
getFormatOptions
public String getFormatOptions()
-
setFormatOptions
public void setFormatOptions(String formatOptions)
-
getSkipEntriesWithoutText
public boolean getSkipEntriesWithoutText()
-
setSkipEntriesWithoutText
public void setSkipEntriesWithoutText(boolean skipEntriesWithoutText)
-
getApprovedEntriesOnly
public boolean getApprovedEntriesOnly()
-
setApprovedEntriesOnly
public void setApprovedEntriesOnly(boolean approvedEntriesOnly)
-
getOverwriteSameSource
public boolean getOverwriteSameSource()
-
setOverwriteSameSource
public void setOverwriteSameSource(boolean overwriteSameSource)
-
getWriter
public IFilterWriter getWriter()
- Returns:
- the writer
-
setWriter
public void setWriter(IFilterWriter writer)
- Parameters:
writer- the writer to set
-
reset
public void reset()
- Specified by:
resetin interfaceIParameters- Overrides:
resetin classStringParameters
-
getParametersDescription
public ParametersDescription getParametersDescription()
- Specified by:
getParametersDescriptionin interfaceIParameters- Overrides:
getParametersDescriptionin classBaseParameters
-
createEditorDescription
public EditorDescription createEditorDescription(ParametersDescription paramDesc)
- Specified by:
createEditorDescriptionin interfaceIEditorDescriptionProvider
-
-