Jettison 1.3.1-redhat-2

org.codehaus.jettison.mapped
Class DefaultConverter

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

public class DefaultConverter
extends 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
 Object convertToJSONPrimitive(String text)
           
 void setEnforce32BitInt(boolean enforce32BitInt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 Object convertToJSONPrimitive(String text)
Specified by:
convertToJSONPrimitive in interface TypeConverter

Jettison 1.3.1-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.