Class ResourceInfo
- java.lang.Object
-
- com.sun.faces.application.resource.ResourceInfo
-
- Direct Known Subclasses:
ClientResourceInfo,FaceletResourceInfo
public class ResourceInfo extends Object
-
-
Constructor Summary
Constructors Constructor Description ResourceInfo(ContractInfo contract, String name, VersionInfo version, ResourceHelper helper)ResourceInfo(LibraryInfo library, ContractInfo contract, String name, VersionInfo version)ResourceInfo(ResourceInfo other, boolean copyLocalePrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(ResourceInfo other)booleanequals(Object obj)StringgetContract()ResourceHelpergetHelper()LibraryInfogetLibraryInfo()StringgetLocalePrefix()StringgetName()StringgetPath()VersionInfogetVersion()inthashCode()booleanisDoNotCache()voidsetDoNotCache(boolean doNotCache)
-
-
-
Constructor Detail
-
ResourceInfo
public ResourceInfo(LibraryInfo library, ContractInfo contract, String name, VersionInfo version)
-
ResourceInfo
public ResourceInfo(ContractInfo contract, String name, VersionInfo version, ResourceHelper helper)
-
ResourceInfo
public ResourceInfo(ResourceInfo other, boolean copyLocalePrefix)
-
-
Method Detail
-
copy
public void copy(ResourceInfo other)
-
isDoNotCache
public boolean isDoNotCache()
-
setDoNotCache
public void setDoNotCache(boolean doNotCache)
-
getHelper
public ResourceHelper getHelper()
- Returns:
- return the
ResourceHelperfor this resource
-
getLibraryInfo
public LibraryInfo getLibraryInfo()
- Returns:
- the Library associated with this resource, if any.
-
getLocalePrefix
public String getLocalePrefix()
- Returns:
- the Locale prefix, if any.
-
getName
public String getName()
- Returns:
- return the library name.
-
getPath
public String getPath()
- Returns:
- the full path (including the library, if any) of the resource.
-
getContract
public String getContract()
-
getVersion
public VersionInfo getVersion()
- Returns:
- return the version of the resource, or
nullif the resource isn't versioned.
-
-