org.xwiki.rendering.internal.renderer.reference
Class DefaultResourceReferenceTypeSerializer
java.lang.Object
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$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultResourceReferenceTypeSerializer
public DefaultResourceReferenceTypeSerializer()
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.