org.xwiki.model.internal.reference
Class LocalStringEntityReferenceSerializer

java.lang.Object
  extended by org.xwiki.model.internal.reference.DefaultStringEntityReferenceSerializer
      extended by org.xwiki.model.internal.reference.LocalStringEntityReferenceSerializer
All Implemented Interfaces:
EntityReferenceSerializer<java.lang.String>

Deprecated. DefaultStringEntityReferenceSerializer should be used instead

@Deprecated
@Component(value="local")
public class LocalStringEntityReferenceSerializer
extends DefaultStringEntityReferenceSerializer

Generate a string representation of an entity reference but without the wiki reference name specified (eg "space.page" for a document reference). This is an implementation use for backward compatibility only and it should be dropped in the future since there's no reason to not output the wiki name systematically (usually we don't want to print it but only if it's the same as the current wiki).

Since:
2.2M1
Version:
$Id$

Constructor Summary
LocalStringEntityReferenceSerializer()
          Deprecated.  
 
Method Summary
protected  void serializeEntityReference(EntityReference currentReference, java.lang.StringBuilder representation, boolean isLastReference, java.lang.Object... parameters)
          Deprecated. Serialize a reference element.
 
Methods inherited from class org.xwiki.model.internal.reference.DefaultStringEntityReferenceSerializer
serialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalStringEntityReferenceSerializer

public LocalStringEntityReferenceSerializer()
Deprecated. 
Method Detail

serializeEntityReference

protected void serializeEntityReference(EntityReference currentReference,
                                        java.lang.StringBuilder representation,
                                        boolean isLastReference,
                                        java.lang.Object... parameters)
Deprecated. 
Serialize a reference element.

Overrides:
serializeEntityReference in class DefaultStringEntityReferenceSerializer
Parameters:
currentReference - the reference to serialize
representation - the builder where to happen the serialized member
isLastReference - indicate if it's the last member of the refence
parameters - optional parameters
See Also:
DefaultStringEntityReferenceSerializer.serializeEntityReference(org.xwiki.model.reference.EntityReference, java.lang.StringBuilder, boolean, java.lang.Object...)


Copyright © 2004-2011 XWiki. All Rights Reserved.