Interface TextCompleterModel<T>

All Known Implementing Classes:
DefaultTextCompleterModel, FinalTokenTextCompleterModel, TierNameTextCompleterModel, TreeTextCompleterModel

public interface TextCompleterModel<T>
  • Method Details

    • addCompletion

      void addCompletion(String completion, T value)
      Add completion to model with given data.
      Parameters:
      completion -
      key -
    • removeCompletion

      void removeCompletion(String key)
      Remove completion from model.
      Parameters:
      completion -
    • clearCompletions

      void clearCompletions()
    • getData

      T getData(String completion)
      Get data for completion key.
      Parameters:
      completion -
    • getDisplayText

      String getDisplayText(String completion)
      Get text used for display of completion.
      Returns:
      text
    • getCompletions

      List<String> getCompletions(String text)
      Return completions for given text.
      Parameters:
      text -
    • completeText

      String completeText(String text, String completion)
      Perform completion and return new text.
      Parameters:
      text -
      completion -
      Returns:
      new text
    • containsCompletion

      boolean containsCompletion(String completion)