org.crsh.cmdline.spi
Interface Completer

All Known Implementing Classes:
AbstractPathCompleter, EmptyCompleter, EnumCompleter, FileCompleter, JCRCommand

public interface Completer


Method Summary
 Completion complete(ParameterDescriptor<?> parameter, String prefix)
          Query the completer for a set of completions for the given prefix.
 

Method Detail

complete

Completion complete(ParameterDescriptor<?> parameter,
                    String prefix)
                    throws Exception

Query the completer for a set of completions for the given prefix. The returned Completion object provides the possible completion matching the prefix argument.

Parameters:
parameter - the completed parameter
prefix - the prefix to complete
Returns:
the possible suffix map
Throws:
Exception - any exception that would prevent completion to perform correctly


Copyright © 2012 eXo Platform SAS. All Rights Reserved.