org.richfaces.cdk.resource.util
Class ResourceUtil
java.lang.Object
org.richfaces.cdk.resource.util.ResourceUtil
public final class ResourceUtil
- extends Object
- Author:
- Nick Belaevski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getLatestVersion
public static VirtualFile getLatestVersion(VirtualFile file,
boolean library)
getResourceRoots
public static Collection<VirtualFile> getResourceRoots(Iterable<VFSRoot> cpRoots,
Iterable<VFSRoot> webRoots)
throws URISyntaxException,
IOException
- Throws:
URISyntaxException
IOException
getResourceQualifier
public static String getResourceQualifier(javax.faces.application.Resource resource)
getResourceQualifier
public static String getResourceQualifier(org.richfaces.resource.ResourceKey resourceKey)
- Returns the qualified name of resourceKey in format libraryName:resourceName.
- Parameters:
resourceKey - the resourceKey
- Returns:
- the qualified name of resourceKey in format libraryName:resourceName.
isSameResource
public static boolean isSameResource(javax.faces.application.Resource resource,
org.richfaces.resource.ResourceKey resourceKey)
- Returns true if resourceKey and resource represents same resource.
- Parameters:
resourceKey - resource key representation of resourceresource - resource instance
- Returns:
- true if resourceKey and resource represents same resource; false otherwise
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.