org.xwiki.rendering.internal.parser.reference
Class GenericImageReferenceParser
java.lang.Object
org.xwiki.rendering.internal.parser.reference.GenericImageReferenceParser
- All Implemented Interfaces:
- ResourceReferenceParser
@Component
@Named(value="default/image")
@Singleton
public class GenericImageReferenceParser
- extends Object
- implements ResourceReferenceParser
Each syntax should have its own resource reference parser. However while we wait for syntax specific parser to be
implemented this generic parser should provide a good approximation.
- Since:
- 2.5RC1
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericImageReferenceParser
public GenericImageReferenceParser()
parse
public ResourceReference parse(String rawReference)
- Parses a resource reference represented (reference to a link, image, attachment, etc) as a String into a
ResourceReference object.
- Specified by:
parse in interface ResourceReferenceParser
- Parameters:
rawReference - the string representation of the resource reference to parse (the supported syntax depends
on the parser implementation used)
- Returns:
- the parsed resource reference
- See Also:
ResourceReferenceParser.parse(String)
Copyright © 2004-2011 XWiki. All Rights Reserved.