org.xwiki.rendering.parser
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: f1aa15a6b38e57682fa5414fdbd88817c80cf839 $

Method Summary
 ResourceType getType()
           
 ResourceReference parse(String reference)
           
 

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


Copyright © 2004-2012 XWiki. All Rights Reserved.