org.xwiki.rendering.internal.parser.reference
Class GenericImageReferenceParser

java.lang.Object
  extended by org.xwiki.rendering.internal.parser.reference.GenericImageReferenceParser
All Implemented Interfaces:
ResourceReferenceParser

@Component
@Named(value="default/image")
@Singleton
public class GenericImageReferenceParser
extends java.lang.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$

Constructor Summary
GenericImageReferenceParser()
           
 
Method Summary
 ResourceReference parse(java.lang.String rawReference)
          Parses a resource reference represented (reference to a link, image, attachment, etc) as a String into a ResourceReference object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericImageReferenceParser

public GenericImageReferenceParser()
Method Detail

parse

public ResourceReference parse(java.lang.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.