Package io.wcm.devops.conga.resource
Interface ResourceCollection
-
- All Superinterfaces:
Comparable<ResourceInfo>
,ResourceInfo
public interface ResourceCollection extends ResourceInfo
Abstraction for a list of resources from filesystem or classpath.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Resource
getResource(String path)
Get child resource.ResourceCollection
getResourceCollection(String path)
Get child resource collection.SortedSet<ResourceCollection>
getResourceCollections()
SortedSet<Resource>
getResources()
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface io.wcm.devops.conga.resource.ResourceInfo
exists, getCanonicalPath, getName, getPath
-
-
-
-
Method Detail
-
getResource
Resource getResource(String path)
Get child resource.- Parameters:
path
- Resource path relative to resource collection- Returns:
- Resource or null if not found
-
getResourceCollection
ResourceCollection getResourceCollection(String path)
Get child resource collection.- Parameters:
path
- Resource path relative to resource collection- Returns:
- Resource collection or null if not found
-
getResourceCollections
SortedSet<ResourceCollection> getResourceCollections()
- Returns:
- Resource collections in this collection.
-
-