org.codegist.crest.serializer
Interface Serializer<T>

Type Parameters:
T - Optional parameter value type
All Known Implementing Classes:
ArraySerializer, BooleanSerializer, DateSerializer, ToStringSerializer

public interface Serializer<T>

Serializes are used to serialize a object to a single String.

If implementor declares a constructor with a Map argument, it will be called with the user custom properties.

Author:
Laurent Gilles (laurent.gilles@codegist.org)
See Also:
Serializers, InterfaceContext.getProperties()

Method Summary
 String serialize(T value)
          Serialize the current arg context into a single string
 

Method Detail

serialize

String serialize(T value)
Serialize the current arg context into a single string

Parameters:
value - argument value
Returns:
serialized version of the argument


Copyright © 2011. All Rights Reserved.