Package net.sf.okapi.filters.table.fwc
Class Parameters
-
- All Implemented Interfaces:
IParameters,ISimplifierRulesParameters
public class Parameters extends Parameters
Fixed-Width Columns Filter parameters- Version:
- 0.1, 09.06.2009
-
-
Field Summary
Fields Modifier and Type Field Description StringcolumnEndPositionsSpecifies end positions of fixed-width table columns.StringcolumnStartPositionsSpecifies start positions of fixed-width table columns.-
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, 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 voidload(ParametersString buffer)Load from buffer.voidreset()Reset this parameters object to its default values.protected voidsave(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
-
-
-
-
Field Detail
-
columnStartPositions
public String columnStartPositions
Specifies start positions of fixed-width table columns. The positions are x-coordinates, like the position of a char in a string. The difference is that columnStartPositions are 1-based. Can be represented by one of the following string types:- "1" - position (1-based) where the column starts
- "1,2,5" - comma-delimited list (1-based) of starting positions of the table columns
Default: Empty
-
columnEndPositions
public String columnEndPositions
Specifies end positions of fixed-width table columns. The positions are x-coordinates, like the position of a char in a string. The difference is that columnEndPositions are 1-based. Can be represented by one of the following string types:- "1" - position (1-based) where the column starts
- "1,2,5" - comma-delimited list (1-based) of starting positions of the table columns
Default: Empty
-
-
Method Detail
-
load
protected void load(ParametersString buffer)
Description copied from class:AbstractGroupParametersLoad from buffer. The protected buffer variable is visible in all subclasses of BaseParameters.- Overrides:
loadin classParameters
-
reset
public void reset()
Description copied from class:StringParametersReset 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:
resetin interfaceIParameters- Overrides:
resetin classParameters
-
save
protected void save(ParametersString buffer)
Description copied from class:AbstractGroupParametersSave to buffer. The protected buffer variable is visible in all subclasses of BaseParameters.- Overrides:
savein classParameters
-
-