}
return quotedString;
}
private Iterator<String> getCommandCompleter(final String partial) {
final NameCompleter completer = new NameCompleter();
// first: check for must have parameters; then rest.
if (_config.getFilename() == null) {
completer.addName("from");
} else if (_config.getTable() == null) {
completer.addName("into");
} else if (_config.getColumns() == null) {
completer.addName("columns");
} else {
if (_config.getColDelimiter() == null) {
completer.addName("column-delim");
}
if (_config.getRowDelimiter() == null) {
completer.addName("row-delim");
}
if (_config.getEncoding() == null) {
completer.addName("encoding");
}
if (_config.getStartRow() < 0) {
completer.addName("start-row");
}
if (_config.getRowCount() < 0) {
completer.addName("row-count");
completer.addName("end-row");
}
}
return completer.getAlternatives(partial);
}