Class VeilResourceFolder

java.lang.Object
foundry.veil.impl.resource.tree.VeilResourceFolder

public class VeilResourceFolder extends Object
A resource folder for a tree-structure
  • Constructor Details

    • VeilResourceFolder

      public VeilResourceFolder(String name)
  • Method Details

    • addResource

      public void addResource(String path, VeilResource<?> resource)
      Adds a resource to this folder, creating sub-folders if necessary
      Parameters:
      path - The path of the resource
      resource - The resource to add
    • addFolder

      public void addFolder(VeilResourceFolder folder)
      Adds a folder to this folder
      Parameters:
      folder - The folder to add, with a pre-known name
    • getSubFolders

      public Collection<VeilResourceFolder> getSubFolders()
      Returns:
      An iterable collection of all folders contained within this folder
    • getResources

      public Iterable<VeilResource<?>> getResources()
      Returns:
      An iterable collection of all resources contained within this folder
    • getName

      public String getName()
    • getFolder

      @Nullable public @Nullable VeilResourceFolder getFolder(String name)
    • getResource

      @Nullable public @Nullable VeilResource<?> getResource(String name)