Class that handles different types of resources.
new()
Creates a ResourceHandler
object.
ResourceHandler$new()
isLoadResource()
From the resource path, it is checked if they have already been loaded. In this case, the list of the requested resource is returned. Otherwise, the resource variable is added to the list of resources, and the resource list is returned. In the event that the resource file does not exist, NULL is returned.
ResourceHandler$isLoadResource(pathResource)
pathResource
A (character) value. The resource file path.
The resources list is returned, if they exist.
getResources()
Gets of resources variable.
ResourceHandler$getResources()
The value of resources variable.
setResources()
Sets of resources variable.
ResourceHandler$setResources(resources)
resources
The new value of resources.
getNamesResources()
Gets of names of resources
ResourceHandler$getNamesResources()
Value of names of resources.
clone()
The objects of this class are cloneable with this method.
ResourceHandler$clone(deep = FALSE)
deep
Whether to make a deep clone.
It is a class that allows store the resources that are needed in the
GenericPipes
to avoid having to repeatedly read from
the file. File resources of type json are read and stored in memory.