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

java.lang.Object
  extended by org.xwiki.rendering.internal.parser.reference.AbstractURIResourceReferenceTypeParser
      extended by org.xwiki.rendering.internal.parser.reference.DocumentResourceReferenceTypeParser
All Implemented Interfaces:
ResourceReferenceTypeParser

@Component
@Named(value="doc")
@Singleton
public class DocumentResourceReferenceTypeParser
extends AbstractURIResourceReferenceTypeParser

Parses a resource reference to a document.

Since:
2.5RC1
Version:
$Id$

Constructor Summary
DocumentResourceReferenceTypeParser()
           
 
Method Summary
 ResourceType getType()
          
 ResourceReference parse(String reference)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentResourceReferenceTypeParser

public DocumentResourceReferenceTypeParser()
Method Detail

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.