Interface GUICommandFactory

  • All Known Implementing Classes:
    GUICommandFactoryImpl

    public interface GUICommandFactory
    Factory for creating GUICommand instances from string representation.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @NotNull GUICommand createCommand​(@NotNull java.lang.String commandString)
      Creates a new GUICommand instance from string representation.
      GUICommand createCommandDecode​(@NotNull java.lang.String encodedCommandString)
      Creates a new GUICommand instance from string representation.
      @NotNull java.lang.String decode​(@NotNull java.lang.String command)
      Decodes a key binding if necessary.
      @NotNull java.lang.String encode​(@NotNull java.lang.String command)
      Encodes a key binding if necessary.
    • Method Detail

      • createCommandDecode

        GUICommand createCommandDecode​(@NotNull
                                       @NotNull java.lang.String encodedCommandString)
        Creates a new GUICommand instance from string representation.
        Parameters:
        encodedCommandString - the command string representation
        Returns:
        the new command instance
      • createCommand

        @NotNull
        @NotNull GUICommand createCommand​(@NotNull
                                          @NotNull java.lang.String commandString)
        Creates a new GUICommand instance from string representation.
        Parameters:
        commandString - the command string representation
        Returns:
        the new command instance
      • encode

        @NotNull
        @NotNull java.lang.String encode​(@NotNull
                                         @NotNull java.lang.String command)
        Encodes a key binding if necessary.
        Parameters:
        command - the key binding
        Returns:
        the encoded key binding
      • decode

        @NotNull
        @NotNull java.lang.String decode​(@NotNull
                                         @NotNull java.lang.String command)
        Decodes a key binding if necessary.
        Parameters:
        command - the key binding
        Returns:
        the decoded key binding