public class Resources
extends java.lang.Object
| Constructor and Description |
|---|
Resources()
Constructor.
|
Resources(java.util.List<ResourceSet> resourceSets)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResource(Resource resource,
java.lang.String processUsage)
Add an Resource to the corresponding ResourceSet.
|
void |
addResource(SpecificResource specificResource,
Part part,
java.lang.String processUsage)
Add an Resource to the corresponding ResourceSet.
|
void |
addResourceSet(ResourceSet resourceSet)
Add an ResourceSet to the known resources.
|
<T extends SpecificResource> |
findSpecificResource(java.lang.Class<T> findClass,
Part part,
java.lang.String processUsage)
Returns a list of parameter types matching the selection.
|
java.util.List<ResourceSet> |
getResourceSets()
Getter for the ResourceSets.
|
public Resources()
public Resources(@NotNull
java.util.List<ResourceSet> resourceSets)
resourceSets - List of ResourceSets to operate on.public final void addResource(@NotNull
Resource resource,
@Nullable
java.lang.String processUsage)
resource - Resource to addprocessUsage - Process usage of the resourcepublic final void addResource(@NotNull
SpecificResource specificResource,
@Nullable
Part part,
@Nullable
java.lang.String processUsage)
specificResource - Resource to addpart - Partition to add the resource toprocessUsage - Process usage of the resourcepublic <T extends SpecificResource> java.util.List<T> findSpecificResource(java.lang.Class<T> findClass, Part part, java.lang.String processUsage)
findClass - The class to search for in the list.part - The part to search for in the list.processUsage - ProcessUsage to search for.public final void addResourceSet(ResourceSet resourceSet)
resourceSet - Set of resources to add.public java.util.List<ResourceSet> getResourceSets()