Package jadex.platform.service.cli
Class CliContext
- java.lang.Object
-
- jadex.platform.service.cli.CliContext
-
public class CliContext extends java.lang.ObjectThe cli context that is passed to the commands. Provides access to the cli platform and a user context.
-
-
Field Summary
Fields Modifier and Type Field Description protected ACliShellshellThe cli shell.protected java.lang.ObjectusercontextThe user context.
-
Constructor Summary
Constructors Constructor Description CliContext()Create a new CliContext.CliContext(ACliShell clip, java.lang.Object usercontext)Create a new CliContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ACliShellgetShell()Get the clip.java.lang.ObjectgetUserContext()Get the userContext.voidsetShell(ACliShell clip)Set the clip.voidsetUserContext(java.lang.Object usercontext)Set the userContext.
-
-
-
Field Detail
-
shell
protected ACliShell shell
The cli shell.
-
usercontext
protected java.lang.Object usercontext
The user context.
-
-
Constructor Detail
-
CliContext
public CliContext()
Create a new CliContext.
-
CliContext
public CliContext(ACliShell clip, java.lang.Object usercontext)
Create a new CliContext.
-
-
Method Detail
-
getShell
public ACliShell getShell()
Get the clip.- Returns:
- The clip.
-
setShell
public void setShell(ACliShell clip)
Set the clip.- Parameters:
clip- The clip to set.
-
getUserContext
public java.lang.Object getUserContext()
Get the userContext.- Returns:
- The userContext.
-
setUserContext
public void setUserContext(java.lang.Object usercontext)
Set the userContext.- Parameters:
userContext- The userContext to set.
-
-