public abstract class AbstractPathCompleter<P> extends Object implements Completer
Constructor and Description |
---|
AbstractPathCompleter() |
Modifier and Type | Method and Description |
---|---|
Completion |
complete(ParameterDescriptor parameter,
String prefix)
Query the completer for a set of completions for the given prefix.
|
protected abstract boolean |
exists(P path) |
protected abstract Collection<P> |
getChilren(P path) |
protected abstract String |
getCurrentPath() |
protected abstract String |
getName(P path) |
protected abstract P |
getPath(String path) |
protected abstract boolean |
isDirectory(P path) |
protected abstract boolean |
isFile(P path) |
private Completion |
listDir(P dir,
String filter) |
public AbstractPathCompleter()
protected abstract String getCurrentPath() throws Exception
Exception
protected abstract boolean isDirectory(P path) throws Exception
Exception
protected abstract Collection<P> getChilren(P path) throws Exception
Exception
public final Completion complete(ParameterDescriptor parameter, String prefix) throws Exception
Completer
Query the completer for a set of completions for the given prefix. The returned Completion
object
provides the possible completion matching the prefix argument.
Copyright © 2015 eXo Platform SAS. All Rights Reserved.