org.xwiki.model.internal.reference
Class LocalReferenceEntityReferenceSerializer

java.lang.Object
  extended by org.xwiki.model.internal.reference.LocalReferenceEntityReferenceSerializer
All Implemented Interfaces:
EntityReferenceSerializer<EntityReference>

Deprecated. DefaultStringEntityReferenceSerializer should be used instead

@Deprecated
@Component(value="local/reference")
public class LocalReferenceEntityReferenceSerializer
extends java.lang.Object
implements EntityReferenceSerializer<EntityReference>

Generate a entity reference but without the wiki reference part. This is an implementation use for backward compatibility only and it should be dropped in the future since there's no reason to remove 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.2.3
Version:
$Id$

Constructor Summary
LocalReferenceEntityReferenceSerializer()
          Deprecated.  
 
Method Summary
 EntityReference serialize(EntityReference reference, java.lang.Object... parameters)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalReferenceEntityReferenceSerializer

public LocalReferenceEntityReferenceSerializer()
Deprecated. 
Method Detail

serialize

public EntityReference serialize(EntityReference reference,
                                 java.lang.Object... parameters)
Deprecated. 

Specified by:
serialize in interface EntityReferenceSerializer<EntityReference>
Parameters:
reference - the reference to serialize
parameters - optional parameters. Their meaning depends on the serializer implementation
Returns:
the new representation (eg as a String)
See Also:
EntityReferenceSerializer.serialize(org.xwiki.model.reference.EntityReference, Object...)


Copyright © 2004-2011 XWiki. All Rights Reserved.