public final class ResourceUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceUtil.VersionKey |
Modifier and Type | Method and Description |
---|---|
static VirtualFile |
getLatestVersion(VirtualFile file,
boolean library) |
static String |
getResourceQualifier(javax.faces.application.Resource resource) |
static String |
getResourceQualifier(ResourceKey resourceKey)
Returns the qualified name of resourceKey in format libraryName:resourceName.
|
static Collection<VirtualFile> |
getResourceRoots(Iterable<VFSRoot> cpRoots,
Iterable<VFSRoot> webRoots) |
static boolean |
isSameResource(javax.faces.application.Resource resource,
ResourceKey resourceKey)
Returns true if resourceKey and resource represents same resource.
|
public static VirtualFile getLatestVersion(VirtualFile file, boolean library)
public static Collection<VirtualFile> getResourceRoots(Iterable<VFSRoot> cpRoots, Iterable<VFSRoot> webRoots) throws URISyntaxException, IOException
URISyntaxException
IOException
public static String getResourceQualifier(javax.faces.application.Resource resource)
public static String getResourceQualifier(ResourceKey resourceKey)
resourceKey
- the resourceKeypublic static boolean isSameResource(javax.faces.application.Resource resource, ResourceKey resourceKey)
resourceKey
- resource key representation of resourceresource
- resource instanceCopyright © 2015 JBoss by Red Hat. All Rights Reserved.