org.xwiki.rendering.internal.renderer.reference
Class DefaultResourceReferenceTypeSerializer

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

@Component
@Singleton
public class DefaultResourceReferenceTypeSerializer
extends 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
DefaultResourceReferenceTypeSerializer()
           
 
Method Summary
protected  boolean isSupportedType(ResourceType type)
          Indicate if the provided type is supported by this syntax.
 String serialize(ResourceReference reference)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResourceReferenceTypeSerializer

public DefaultResourceReferenceTypeSerializer()
Method Detail

serialize

public String serialize(ResourceReference reference)

Specified by:
serialize in interface ResourceReferenceTypeSerializer
Parameters:
reference - the link reference to serialize
Returns:
the string representation of the passed ResourceReference object
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.