Package org.basex.build.csv
Class CsvOptions
java.lang.Object
org.basex.util.options.Options
org.basex.build.csv.CsvOptions
- Direct Known Subclasses:
CsvParserOptions
Options for parsing and serializing CSV data.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCSV formats.static enumCSV separators.Nested classes/interfaces inherited from class org.basex.util.options.Options
Options.YesNo, Options.YesNoOmit -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanOptionOption: backslash flag .static final EnumOption<CsvOptions.CsvFormat>Option: format.static final BooleanOptionOption: header line.static final BooleanOptionOption: lax conversion of strings to QNames.static final BooleanOptionOption: parse quotes.static final StringOptionOption: column separator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAssigns a value after casting it to the correct type.voidAssigns a value after casting it to the correct type.intReturns the separator character or-1if character is invalid.Methods inherited from class org.basex.util.options.Options
allowed, assign, assign, assign, contains, error, free, get, get, get, get, get, get, get, get, get, invert, iterator, names, option, put, set, set, set, set, set, set, set, set, setSystem, toMap, toMap, toString, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
SEPARATOR
Option: column separator. -
FORMAT
Option: format. -
HEADER
Option: header line. -
BACKSLASHES
Option: backslash flag . -
LAX
Option: lax conversion of strings to QNames. -
QUOTES
Option: parse quotes.
-
-
Constructor Details
-
CsvOptions
public CsvOptions()Default constructor.
-
-
Method Details
-
assign
Description copied from class:OptionsAssigns a value after casting it to the correct type. If the option is unknown, it will be added as free option.- Overrides:
assignin classOptions- Parameters:
name- name of optionvalue- value- Throws:
BaseXException- database exception
-
assign
public void assign(Item name, Value value, boolean error, InputInfo ii) throws BaseXException, QueryException Description copied from class:OptionsAssigns a value after casting it to the correct type. If the option is unknown, it will be added as free option.- Overrides:
assignin classOptions- Parameters:
name- name of optionvalue- value to be assignederror- errorii- input info- Throws:
BaseXException- database exceptionQueryException- query exception
-
separator
public int separator()Returns the separator character or-1if character is invalid.- Returns:
- separator
-