org.codehaus.jettison.mapped
Class DefaultConverter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENFORCE_32BIT_INTEGER
public static final boolean ENFORCE_32BIT_INTEGER
DefaultConverter
public DefaultConverter()
setEnforce32BitInt
public void setEnforce32BitInt(boolean enforce32BitInt)
convertToJSONPrimitive
public Object convertToJSONPrimitive(String text)
- Specified by:
convertToJSONPrimitive
in interface TypeConverter
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.