org.crsh.cli.completers
Class FileCompleter

java.lang.Object
  extended by org.crsh.cli.completers.AbstractPathCompleter<File>
      extended by org.crsh.cli.completers.FileCompleter
All Implemented Interfaces:
Completer

public class FileCompleter
extends AbstractPathCompleter<File>


Constructor Summary
FileCompleter()
           
 
Method Summary
protected  boolean exists(File path)
           
protected  Collection<File> getChilren(File path)
           
protected  String getCurrentPath()
           
protected  String getName(File path)
           
protected  File getPath(String path)
           
protected  boolean isDirectory(File path)
           
protected  boolean isFile(File path)
           
 
Methods inherited from class org.crsh.cli.completers.AbstractPathCompleter
complete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCompleter

public FileCompleter()
Method Detail

getCurrentPath

protected String getCurrentPath()
                         throws Exception
Specified by:
getCurrentPath in class AbstractPathCompleter<File>
Throws:
Exception

getPath

protected File getPath(String path)
Specified by:
getPath in class AbstractPathCompleter<File>

exists

protected boolean exists(File path)
Specified by:
exists in class AbstractPathCompleter<File>

isDirectory

protected boolean isDirectory(File path)
Specified by:
isDirectory in class AbstractPathCompleter<File>

isFile

protected boolean isFile(File path)
Specified by:
isFile in class AbstractPathCompleter<File>

getChilren

protected Collection<File> getChilren(File path)
Specified by:
getChilren in class AbstractPathCompleter<File>

getName

protected String getName(File path)
Specified by:
getName in class AbstractPathCompleter<File>


Copyright © 2014 eXo Platform SAS. All Rights Reserved.