Interface ResourceReferenceTypeParser


  • @Role
    public interface ResourceReferenceTypeParser
    Parses a raw Resource Reference by determining if it has the right type and return a non-null ResourceReference object if it has.
    Since:
    2.5RC1
    Version:
    $Id: b913208856430980f745ace664f36cef2988914e $
    • Method Detail

      • getType

        ResourceType getType()
        Returns:
        the resource type (document, url, attachment, etc).
      • parse

        ResourceReference parse​(String reference)
        Parameters:
        reference - the raw resource reference to parse
        Returns:
        the parsed resource information if the passed reference can be parsed by this type parser or null if the passed reference isn't valid