Package net.sf.okapi.filters.table.csv
Class Parameters
-
- All Implemented Interfaces:
Cloneable
,IParameters
,ISimplifierRulesParameters
public class Parameters extends Parameters
CSV Filter parameters- Version:
- 0.1, 09.06.2009
-
-
Field Summary
Fields Modifier and Type Field Description boolean
addQualifiers
static int
ESCAPING_MODE_BACKSLASH
static int
ESCAPING_MODE_DUPLICATION
int
escapingMode
The way qualifiers in the original text are escaped.String
fieldDelimiter
Character separating fields in a row.boolean
removeQualifiers
True if qualifiers should be dropped, and shouldn't go into the text unitsString
textQualifier
Character before and after field value to allow field delimiters inside the field.-
Fields inherited from class net.sf.okapi.filters.table.base.Parameters
columnNamesLineNum, commentColumns, commentSourceRefs, DETECT_COLUMNS_COL_NAMES, DETECT_COLUMNS_FIXED_NUMBER, DETECT_COLUMNS_NONE, detectColumnsMode, exposeCommentsAsMetadata, numColumns, recordIdColumn, SEND_COLUMNS_ALL, SEND_COLUMNS_LISTED, SEND_COLUMNS_NONE, SEND_HEADER_ALL, SEND_HEADER_COLUMN_NAMES_ONLY, SEND_HEADER_NONE, sendColumnsMode, sendHeaderMode, sourceColumns, sourceIdColumns, sourceIdSourceRefs, sourceIdSuffixes, targetColumns, targetLanguages, targetSourceRefs, TRIM_ALL, TRIM_NONE, TRIM_NONQUALIFIED_ONLY, trimMode, valuesStartLineNum
-
Fields inherited from class net.sf.okapi.filters.plaintext.base.Parameters
codeFinderRules, preserveWS, subfilter, trimLeading, trimTrailing, unescapeSource, useCodeFinder, wrapMode
-
Fields inherited from class net.sf.okapi.common.StringParameters
buffer
-
Fields inherited from class net.sf.okapi.common.BaseParameters
path
-
Fields inherited from interface net.sf.okapi.common.ISimplifierRulesParameters
SIMPLIFIERRULES, SIMPLIFIERRULES_DISPLAY_NAME, SIMPLIFIERRULES_SHORT_DESC
-
-
Constructor Summary
Constructors Constructor Description Parameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
load(ParametersString buffer)
Load from buffer.void
reset()
Reset this parameters object to its default values.protected void
save(ParametersString buffer)
Save to buffer.-
Methods inherited from class net.sf.okapi.common.AbstractGroupParameters
fromString, getData, getSimplifierRules, loadFromResource, loadGroup, loadGroup, saveGroup, saveGroup, saveToResource, setSimplifierRules, toString, validateSimplifierRules
-
Methods inherited from class net.sf.okapi.common.StringParameters
fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString
-
Methods inherited from class net.sf.okapi.common.BaseParameters
getParametersDescription, getPath, load, load, save, setPath
-
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
-
ESCAPING_MODE_DUPLICATION
public static final int ESCAPING_MODE_DUPLICATION
- See Also:
- Constant Field Values
-
ESCAPING_MODE_BACKSLASH
public static final int ESCAPING_MODE_BACKSLASH
- See Also:
- Constant Field Values
-
fieldDelimiter
public String fieldDelimiter
Character separating fields in a row.Default: , (comma)
-
textQualifier
public String textQualifier
Character before and after field value to allow field delimiters inside the field. For instance, this field will not be broken into parts: "Field, containing comma, \", "" and \n". The qualifiers are not included in translation units.Default: " (quotation mark)
-
removeQualifiers
public boolean removeQualifiers
True if qualifiers should be dropped, and shouldn't go into the text units
-
escapingMode
public int escapingMode
The way qualifiers in the original text are escaped.
-
addQualifiers
public boolean addQualifiers
-
-
Method Detail
-
load
protected void load(ParametersString buffer)
Description copied from class:AbstractGroupParameters
Load from buffer. The protected buffer variable is visible in all subclasses of BaseParameters.- Overrides:
load
in classParameters
-
reset
public void reset()
Description copied from class:StringParameters
Reset this parameters object to its default values.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.- Specified by:
reset
in interfaceIParameters
- Overrides:
reset
in classParameters
-
save
protected void save(ParametersString buffer)
Description copied from class:AbstractGroupParameters
Save to buffer. The protected buffer variable is visible in all subclasses of BaseParameters.- Overrides:
save
in classParameters
-
-