Class ResourceIdentifier


  • public class ResourceIdentifier
    extends Object
    Convenience class to represent a resource identifier.
    Since:
    1.3
    Author:
    Bauke Scholtz
    • Constructor Detail

      • ResourceIdentifier

        public ResourceIdentifier​(String resourceIdentifier)
        Create a new instance based on given standard JSF resource identifier string format library: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.
      • ResourceIdentifier

        public ResourceIdentifier​(String library,
                                  String name)
        Create a new instance based on given resource library and name.
        Parameters:
        library - The resource lirbary.
        name - The resource name.
    • Method Detail

      • getLibrary

        public String getLibrary()
        Returns the resource library.
        Returns:
        The resource library.
      • getName

        public String getName()
        Returns the resource name.
        Returns:
        The resource name.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Returns the resource identifier as string in standard JSF resource identifier format library:name. If there is no library, then only the name is returned without the colon separator like so name.
        Overrides:
        toString in class Object