org.xwiki.rendering.parser
Interface ResourceReferenceTypeParser


@ComponentRole
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: ResourceReferenceTypeParser.java 31687 2010-10-08 19:37:36Z vmassol $

Method Summary
 ResourceType getType()
           
 ResourceReference parse(java.lang.String reference)
           
 

Method Detail

getType

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

parse

ResourceReference parse(java.lang.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-2011 XWiki. All Rights Reserved.