Interface ResourceModule

All Known Subinterfaces:
ApiModule, DirectoryModule, IoModule, ZipModule
All Known Implementing Classes:
JarResourceModule

public sealed interface ResourceModule permits IoModule, ApiModule
Delphi page module interface
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Collection<String>
    getModulePaths(@NotNull ResourcePath pathSoFar)
    Gets a collection of files/documents contained in this module.
  • Method Details

    • getModulePaths

      @NotNull @NotNull Collection<String> getModulePaths(@NotNull @NotNull ResourcePath pathSoFar)
      Gets a collection of files/documents contained in this module.

      The resulting file paths are used mainly for suggestions in the /delphi open <player> <path> command.

      Assuming we have the following files in the module:

      
       index.xml
       item-data.json
       global-style.scss
       admin-tab/index.xml
       admin-tab/head-item.json
       admin-tab/confirm/dialogue.xml
       admin-tab/confirm/style.scss
       spectator-tab/index.xml
       
      The following inputs should yield these results:
      Input Expected result
      Empty input Returns the entire file list
      admin-tab/ index.xml, head-item.json, confirm/dialogue.xml, confirm/style.scss
      admin-tab/confirm/ dialogue.xml, style.scss
      spectator-tab/ index.xml
      Parameters:
      pathSoFar - The current page path.
      Returns:
      A list of files contained in the directory specified by pathSoFar.