Class CliContext


  • public class CliContext
    extends java.lang.Object
    The 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 ACliShell shell
      The cli shell.
      protected java.lang.Object usercontext
      The user context.
    • Constructor Summary

      Constructors 
      Constructor Description
      CliContext()
      Create a new CliContext.
      CliContext​(ACliShell clip, java.lang.Object usercontext)
      Create a new CliContext.
    • 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.