Package org.omnifaces.resourcehandler
Class ResourceIdentifier
- java.lang.Object
-
- org.omnifaces.resourcehandler.ResourceIdentifier
-
public class ResourceIdentifier extends Object
Convenience class to represent a resource identifier.- Since:
- 1.3
- Author:
- Bauke Scholtz
-
-
Constructor Summary
Constructors Constructor Description ResourceIdentifier(UIComponent componentResource)
Create a new instance based on library and name attributes of the given component resource.ResourceIdentifier(String resourceIdentifier)
Create a new instance based on given standard JSF resource identifier string formatlibrary:name
.ResourceIdentifier(String library, String name)
Create a new instance based on given resource library and name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
String
getLibrary()
Returns the resource library.String
getName()
Returns the resource name.int
hashCode()
String
toString()
Returns the resource identifier as string in standard JSF resource identifier formatlibrary:name
.
-
-
-
Constructor Detail
-
ResourceIdentifier
public ResourceIdentifier(String resourceIdentifier)
Create a new instance based on given standard JSF resource identifier string formatlibrary:name
.- Parameters:
resourceIdentifier
- The standard JSF resource identifier.
-
ResourceIdentifier
public ResourceIdentifier(UIComponent componentResource)
Create a new instance based on library and name attributes of the given component resource.- Parameters:
componentResource
- The component resource.
-
-