org.xwiki.rendering.internal.parser.reference
Class InterWikiResourceReferenceTypeParser
java.lang.Object
org.xwiki.rendering.internal.parser.reference.AbstractURIResourceReferenceTypeParser
org.xwiki.rendering.internal.parser.reference.InterWikiResourceReferenceTypeParser
- All Implemented Interfaces:
- ResourceReferenceTypeParser
@Component
@Named(value="interwiki")
@Singleton
public class InterWikiResourceReferenceTypeParser
- extends AbstractURIResourceReferenceTypeParser
Parses a resource reference to a document in another wiki (interwiki).
- Since:
- 2.5RC1
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INTERWIKI_ALIAS_SEPARATOR
public static final String INTERWIKI_ALIAS_SEPARATOR
- Separator between the interwiki alias and the interwiki path (eg "alias" in interwiki:alias:path).
- See Also:
- Constant Field Values
InterWikiResourceReferenceTypeParser
public InterWikiResourceReferenceTypeParser()
getType
public ResourceType getType()
-
- Returns:
- the resource type (document, url, attachment, etc).
- See Also:
ResourceReferenceTypeParser.getType()
parse
public ResourceReference parse(String reference)
-
- Specified by:
parse in interface ResourceReferenceTypeParser- Overrides:
parse in class AbstractURIResourceReferenceTypeParser
- 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
- See Also:
AbstractURIResourceReferenceTypeParser.parse(String)
Copyright © 2004-2011 XWiki. All Rights Reserved.