eu.unicore.hila.shell
Class ShellContext

java.lang.Object
  extended by eu.unicore.hila.shell.ShellContext

public class ShellContext
extends Object

Author:
bjoernh 16.10.2009 13:42:10

Constructor Summary
ShellContext(jline.ConsoleReader _cs)
           
 
Method Summary
 String getAlias(String string)
           
 Map<String,String> getAliases()
           
 ShellCommand getCommand(String _cmd)
           
 Collection<String> getCommands()
           
 jline.ConsoleReader getCs()
           
 File getCurrentLocalDir()
           
 eu.unicore.hila.Location getCurrentLocation()
           
 boolean isAlias(String string)
           
 boolean isDone()
           
 void registerCommand(ShellCommand _cmd)
           
 void registerCommand(String _cmdName, ShellCommand _cmd)
           
 void setCurrentLocalDir(File currentLocalDir)
           
 void setCurrentLocation(eu.unicore.hila.Location currentLocation)
           
 void setDone(boolean isDone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellContext

public ShellContext(jline.ConsoleReader _cs)
             throws eu.unicore.hila.exceptions.HiLALocationSyntaxException
Throws:
eu.unicore.hila.exceptions.HiLALocationSyntaxException
Method Detail

getCs

public jline.ConsoleReader getCs()
Returns:
the cs

setDone

public void setDone(boolean isDone)
Parameters:
isDone - the isDone to set

getCurrentLocation

public eu.unicore.hila.Location getCurrentLocation()
Returns:
the currentLocation

setCurrentLocation

public void setCurrentLocation(eu.unicore.hila.Location currentLocation)
Parameters:
currentLocation - the currentLocation to set

getCurrentLocalDir

public File getCurrentLocalDir()
Returns:
the currentLocalDir

setCurrentLocalDir

public void setCurrentLocalDir(File currentLocalDir)
Parameters:
currentLocalDir - the currentLocalDir to set

getCommand

public ShellCommand getCommand(String _cmd)

registerCommand

public void registerCommand(String _cmdName,
                            ShellCommand _cmd)

registerCommand

public void registerCommand(ShellCommand _cmd)

isDone

public boolean isDone()
Returns:

getCommands

public Collection<String> getCommands()
Returns:

isAlias

public boolean isAlias(String string)
Parameters:
string -
Returns:

getAlias

public String getAlias(String string)
Parameters:
string -
Returns:

getAliases

public Map<String,String> getAliases()
Returns:
the aliases


Copyright © 2010-2013 UNICORE. All Rights Reserved.