Class ArgumentCompleter

    • Constructor Detail

      • ArgumentCompleter

        public ArgumentCompleter​(org.apache.felix.service.command.CommandSession session,
                                 CommandWithAction function,
                                 String command)
        Deprecated.
    • Method Detail

      • setStrict

        public void setStrict​(boolean strict)
        Deprecated.
        If true, a completion at argument index N will only succeed if all the completions from 0-(N-1) also succeed.
        Parameters:
        strict - The new value of the strict flag.
      • getStrict

        public boolean getStrict()
        Deprecated.
        Return whether a completion at argument index N will success if all the completions from arguments 0-(N-1) also succeed.
        Returns:
        The value of the strict flag.
      • verifyCompleter

        protected boolean verifyCompleter​(Completer completer,
                                          String argument)
        Deprecated.
      • isDelimiter

        public boolean isDelimiter​(String buffer,
                                   int pos)
        Deprecated.
        Return true if the specified character is a whitespace parameter. Check to ensure that the character is not escaped and returns true from isDelimiterChar(java.lang.String, int).
        Parameters:
        buffer - The complete command buffer.
        pos - The index of the character in the buffer.
        Returns:
        True if the character should be a delimiter, false else.
      • isEscaped

        public boolean isEscaped​(String buffer,
                                 int pos)
        Deprecated.
      • isDelimiterChar

        public boolean isDelimiterChar​(String buffer,
                                       int pos)
        Deprecated.
        The character is a delimiter if it is whitespace, and the preceding character is not an escape character.
        Parameters:
        buffer - The complete command buffer.
        pos - The index of the character in the buffer.
        Returns:
        True if the character is a delimiter, false else.