org.exoplatform.ws.frameworks.json.impl
Class JsonGeneratorImpl

java.lang.Object
  extended by org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl
All Implemented Interfaces:
JsonGenerator

public class JsonGeneratorImpl
extends java.lang.Object
implements JsonGenerator

Version:
$Id: $
Author:
Andrey Parfonov

Constructor Summary
JsonGeneratorImpl()
           
 
Method Summary
 JsonValue createJsonObject(java.lang.Object object)
          Get HashMap representation for Java Bean object.
protected  JsonValue createJsonValue(java.lang.Object object)
          Create JsonValue corresponding to Java object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonGeneratorImpl

public JsonGeneratorImpl()
Method Detail

createJsonObject

public JsonValue createJsonObject(java.lang.Object object)
                           throws JsonException
Get HashMap representation for Java Bean object.

Specified by:
createJsonObject in interface JsonGenerator
Parameters:
object - the source object.
Returns:
the HashMap which represented give JavaBean.
Throws:
JsonException - if Object can't be transformed in JSON representation.

createJsonValue

protected JsonValue createJsonValue(java.lang.Object object)
                             throws JsonException
Create JsonValue corresponding to Java object.

Parameters:
object - source object.
Returns:
JsonValue.
Throws:
JsonException - if any errors occurs.


Copyright © 2010 eXo Platform SAS. All Rights Reserved.