org.exoplatform.ws.frameworks.json.impl
Class JsonGeneratorImpl
java.lang.Object
org.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl
- All Implemented Interfaces:
- JsonGenerator
public class JsonGeneratorImpl
- extends Object
- implements JsonGenerator
- Version:
- $Id: $
- Author:
- Andrey Parfonov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonGeneratorImpl
public JsonGeneratorImpl()
createJsonObject
public JsonValue createJsonObject(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(Object object)
throws JsonException
- Create JsonValue corresponding to Java object.
- Parameters:
object - source object.
- Returns:
- JsonValue.
- Throws:
JsonException - if any errors occurs.
Copyright © 2009 eXo Platform SAS. All Rights Reserved.