com.sun.jersey.json.impl
Class JSONHelper

java.lang.Object
  extended by com.sun.jersey.json.impl.JSONHelper

public final class JSONHelper
extends java.lang.Object

Author:
japod

Method Summary
static java.lang.String getRootElementName(java.lang.Class<java.lang.Object> clazz)
          calculating local name of an appropriate XML element, pretty much the same way as it is done by JAXB 2.1 impl (for situations when we want to pretend the element was present in an incoming stream amd all we have is the type information) TODO: work out with JAXB guys a better way of doing it, probably we could take it from an existing JAXBContext?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRootElementName

public static final java.lang.String getRootElementName(java.lang.Class<java.lang.Object> clazz)
calculating local name of an appropriate XML element, pretty much the same way as it is done by JAXB 2.1 impl (for situations when we want to pretend the element was present in an incoming stream amd all we have is the type information) TODO: work out with JAXB guys a better way of doing it, probably we could take it from an existing JAXBContext?



Copyright © 2011 Sun Microsystems, Inc. All Rights Reserved.