org.codehaus.jettison.mapped
Class DefaultConverter

java.lang.Object
  extended by org.codehaus.jettison.mapped.DefaultConverter
All Implemented Interfaces:
TypeConverter

public class DefaultConverter
extends java.lang.Object
implements TypeConverter

Default converter that tries to convert value to appropriate primitive (if fails, returns original string)

Since:
1.1
Author:
Dejan Bosanac

Field Summary
static boolean ENFORCE_32BIT_INTEGER
           
 
Constructor Summary
DefaultConverter()
           
 
Method Summary
 java.lang.Object convertToJSONPrimitive(java.lang.String text)
           
 void setEnforce32BitInt(boolean enforce32BitInt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENFORCE_32BIT_INTEGER

public static final boolean ENFORCE_32BIT_INTEGER
Constructor Detail

DefaultConverter

public DefaultConverter()
Method Detail

setEnforce32BitInt

public void setEnforce32BitInt(boolean enforce32BitInt)

convertToJSONPrimitive

public java.lang.Object convertToJSONPrimitive(java.lang.String text)
Specified by:
convertToJSONPrimitive in interface TypeConverter