Package org.xwiki.rendering.parser
Interface ResourceReferenceTypeParser
-
@Role public interface ResourceReferenceTypeParserParses a raw Resource Reference by determining if it has the right type and return a non-nullResourceReferenceobject if it has.- Since:
- 2.5RC1
- Version:
- $Id: b913208856430980f745ace664f36cef2988914e $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceTypegetType()ResourceReferenceparse(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
-
-