Package qupath.lib.projects
Interface ResourceManager.Manager<T>
- Type Parameters:
T- the generic type of the resource being managed
- Enclosing class:
ResourceManager
public static interface ResourceManager.Manager<T>
Simple manager to handle saving and retrieving resources of different kinds, for example from projects
or a user directory.
Examples of resources are scripts or classifiers. Several of these may be stored per project, and may be identified by name.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturns true if the manager knows a resource with the specified name exists.Retrieve a resource by name.getNames()Get a list of the available resources.voidSave a resource within the project.booleanRemove a resource within the project.
-
Method Details
-
getNames
Get a list of the available resources.- Returns:
- Throws:
IOException
-
get
Retrieve a resource by name.- Parameters:
name-- Returns:
- Throws:
IOException
-
put
Save a resource within the project.- Parameters:
name-resource-- Throws:
IOException
-
remove
Remove a resource within the project.- Parameters:
name-- Returns:
- true if a resource was successfully removed, false otherwise
- Throws:
IOException
-
contains
Returns true if the manager knows a resource with the specified name exists.- Parameters:
name- the name to check- Returns:
- true if a resource with the name exists, false otherwise
- Throws:
IOException
-