org.codegist.crest.serializer
Class BooleanSerializer

java.lang.Object
  extended by org.codegist.crest.serializer.BooleanSerializer
All Implemented Interfaces:
Serializer<Boolean>

public class BooleanSerializer
extends Object
implements Serializer<Boolean>

Author:
Laurent Gilles (laurent.gilles@codegist.org)

Field Summary
static String DEFAULT_FALSE
           
static String DEFAULT_TRUE
           
 
Constructor Summary
BooleanSerializer()
           
BooleanSerializer(Map<String,Object> customProperties)
           
BooleanSerializer(String trueString, String falseString)
           
 
Method Summary
 String serialize(Boolean value)
          Serialize the current arg context into a single string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TRUE

public static final String DEFAULT_TRUE
See Also:
Constant Field Values

DEFAULT_FALSE

public static final String DEFAULT_FALSE
See Also:
Constant Field Values
Constructor Detail

BooleanSerializer

public BooleanSerializer()

BooleanSerializer

public BooleanSerializer(Map<String,Object> customProperties)

BooleanSerializer

public BooleanSerializer(String trueString,
                         String falseString)
Method Detail

serialize

public String serialize(Boolean value)
Description copied from interface: Serializer
Serialize the current arg context into a single string

Specified by:
serialize in interface Serializer<Boolean>
Parameters:
value - argument value
Returns:
serialized version of the argument


Copyright © 2011. All Rights Reserved.