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

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

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

Serialize a link reference pointing to a document using the format (document reference)(#anchor)(?query string).

Since:
2.5RC1
Version:
$Id$

Constructor Summary
DocumentReferenceTypeSerializer()
           
 
Method Summary
protected  java.lang.String addEscapesToExtraParts(java.lang.String text)
           
protected  java.lang.String addEscapesToReferencePart(java.lang.String text)
           
 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

DocumentReferenceTypeSerializer

public DocumentReferenceTypeSerializer()
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)

addEscapesToReferencePart

protected java.lang.String addEscapesToReferencePart(java.lang.String text)
Parameters:
text - the reference to which to add escapes to
Returns:
the modified text

addEscapesToExtraParts

protected java.lang.String addEscapesToExtraParts(java.lang.String text)
Parameters:
text - the query string and anchor parts to which to add escapes to
Returns:
the modified text


Copyright © 2004-2011 XWiki. All Rights Reserved.