org.xwiki.rendering.internal.renderer.xwiki20.reference
Class XWiki20ResourceReferenceTypeSerializer

java.lang.Object
  extended by org.xwiki.rendering.internal.renderer.xwiki20.reference.XWiki20ResourceReferenceTypeSerializer
All Implemented Interfaces:
ResourceReferenceTypeSerializer

@Component
@Named(value="xwiki/2.0")
@Singleton
public class XWiki20ResourceReferenceTypeSerializer
extends java.lang.Object
implements ResourceReferenceTypeSerializer

Serialize a link by outputting the link type (if the link is typed) followed by the link reference (ie "(linktype):(reference)").

Since:
3.1
Version:
$Id$

Constructor Summary
XWiki20ResourceReferenceTypeSerializer()
           
 
Method Summary
protected  boolean isSupportedType(ResourceType type)
          Indicate if the provided type is supported by this syntax.
 java.lang.String serialize(ResourceReference reference)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWiki20ResourceReferenceTypeSerializer

public XWiki20ResourceReferenceTypeSerializer()
Method Detail

serialize

public java.lang.String serialize(ResourceReference reference)

Specified by:
serialize in interface ResourceReferenceTypeSerializer
See Also:
ResourceReferenceTypeSerializer.serialize(org.xwiki.rendering.listener.reference.ResourceReference)

isSupportedType

protected boolean isSupportedType(ResourceType type)
Indicate if the provided type is supported by this syntax.

Parameters:
type - the type of resource
Returns:
true if the type is supported


Copyright © 2004-2011 XWiki. All Rights Reserved.