org.cruxframework.crux.core.server.rest.util
Class JsonUtil

java.lang.Object
  extended by org.cruxframework.crux.core.server.rest.util.JsonUtil

public class JsonUtil
extends Object

Author:
Thiago da Rosa de Bustamante

Constructor Summary
JsonUtil()
           
 
Method Summary
static org.codehaus.jackson.map.ObjectReader createReader(Type type)
           
static org.codehaus.jackson.map.ObjectWriter createWriter(Type type)
           
static Class<?> getJsonSubTypesSuperClass(Type type, Class<?> clazz)
           
static boolean hasJsonSubTypes(Class<?> clazz)
           
static boolean hasJsonSubTypes(Type type, Class<?> clazz, Set<Class<?>> searched)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonUtil

public JsonUtil()
Method Detail

createReader

public static org.codehaus.jackson.map.ObjectReader createReader(Type type)
Parameters:
type - the class type.
Returns:
the Jackson ObjectWriter.

createWriter

public static org.codehaus.jackson.map.ObjectWriter createWriter(Type type)
Parameters:
type - the class type.
Returns:
the Jackson ObjectWriter.

hasJsonSubTypes

public static boolean hasJsonSubTypes(Class<?> clazz)

hasJsonSubTypes

public static boolean hasJsonSubTypes(Type type,
                                      Class<?> clazz,
                                      Set<Class<?>> searched)

getJsonSubTypesSuperClass

public static Class<?> getJsonSubTypesSuperClass(Type type,
                                                 Class<?> clazz)


Copyright © 2015. All rights reserved.