Package org.openhab.core.io.console
Class StringsCompleter
java.lang.Object
org.openhab.core.io.console.StringsCompleter
- All Implemented Interfaces:
 ConsoleCommandCompleter
Completer for a set of strings.
 
 It will provide candidate completions for whichever argument the cursor is located in.
- Author:
 - Cody Cutrer - Initial contribution
 
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
StringsCompleter
public StringsCompleter() - 
StringsCompleter
- Parameters:
 strings- The set of valid strings to be completedcaseSensitive- if strings must match case sensitively when the user is typing them
 
 - 
 - 
Method Details
- 
getStrings
Gets the strings that are allowed for this completer, so that you can modify the set. - 
complete
public boolean complete(String[] args, int cursorArgumentIndex, int cursorPosition, List<String> candidates) Description copied from interface:ConsoleCommandCompleterPopulate possible completion candidates.- Specified by:
 completein interfaceConsoleCommandCompleter- Parameters:
 args- An array of all arguments to be passed to the ConsoleCommandExtension's execute methodcursorArgumentIndex- the argument index the cursor is currently incursorPosition- the position of the cursor within the argumentcandidates- a list to fill with possible completion candidates- Returns:
 - if a candidate was found
 
 
 -