org.crsh.cli.completers
Class ObjectNameCompleter

java.lang.Object
  extended by org.crsh.cli.completers.ObjectNameCompleter
All Implemented Interfaces:
Completer

public class ObjectNameCompleter
extends Object
implements Completer

Author:
Julien Viet

Constructor Summary
ObjectNameCompleter()
           
 
Method Summary
 Completion complete(ParameterDescriptor parameter, String prefix)
          Query the completer for a set of completions for the given prefix.
private static String[] parseKeyValue(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectNameCompleter

public ObjectNameCompleter()
Method Detail

parseKeyValue

private static String[] parseKeyValue(String s)

complete

public Completion complete(ParameterDescriptor parameter,
                           String prefix)
                    throws Exception
Description copied from interface: 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.

Specified by:
complete in interface Completer
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 © 2015 eXo Platform SAS. All Rights Reserved.