Package foundry.veil.impl.resource.tree
Class VeilResourceFolder
java.lang.Object
foundry.veil.impl.resource.tree.VeilResourceFolder
A resource folder for a tree-structure
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFolder
(VeilResourceFolder folder) Adds a folder to this foldervoid
addResource
(String path, VeilResource<?> resource) Adds a resource to this folder, creating sub-folders if necessary@Nullable VeilResourceFolder
getName()
@Nullable VeilResource
<?> getResource
(String name) Iterable
<VeilResource<?>>
-
Constructor Details
-
VeilResourceFolder
-
-
Method Details
-
addResource
Adds a resource to this folder, creating sub-folders if necessary- Parameters:
path
- The path of the resourceresource
- The resource to add
-
addFolder
Adds a folder to this folder- Parameters:
folder
- The folder to add, with a pre-known name
-
getSubFolders
- Returns:
- An iterable collection of all folders contained within this folder
-
getResources
- Returns:
- An iterable collection of all resources contained within this folder
-
getName
-
getFolder
-
getResource
-