public class DirectoryContentsCompletionFinder extends Object implements CompletionFinder
Modifier and Type | Class and Description |
---|---|
static class |
DirectoryContentsCompletionFinder.CompletionMode |
Modifier and Type | Field and Description |
---|---|
static DirectoryContentsCompletionFinder.CompletionMode |
DEFAULT_COMPLETION_MODE |
static com.redhat.thermostat.common.cli.DirectoryContentsCompletionFinder.DefaultFileFilter |
DEFAULT_FILE_FILTER |
Constructor and Description |
---|
DirectoryContentsCompletionFinder(File directory) |
Modifier and Type | Method and Description |
---|---|
List<CompletionInfo> |
findCompletions() |
void |
setCompletionMode(DirectoryContentsCompletionFinder.CompletionMode mode)
Set the configurable completion mode.
|
void |
setFileFilter(FileFilter filter)
Set the file filter.
|
public static final DirectoryContentsCompletionFinder.CompletionMode DEFAULT_COMPLETION_MODE
public static final com.redhat.thermostat.common.cli.DirectoryContentsCompletionFinder.DefaultFileFilter DEFAULT_FILE_FILTER
public DirectoryContentsCompletionFinder(File directory)
directory
- the directory to search. Must not be null.public void setCompletionMode(DirectoryContentsCompletionFinder.CompletionMode mode)
mode
- the completion mode. Must not be null.public void setFileFilter(FileFilter filter)
filter
- the file filter. Must not be null.public List<CompletionInfo> findCompletions()
findCompletions
in interface CompletionFinder
Copyright © 2017. All rights reserved.