tigase.jaxmpp.gwt.client

## Class JsonSerializationHelper

- java.lang.Object
- - tigase.jaxmpp.gwt.client.JsonSerializationHelper

-     public class JsonSerializationHelper
      extends Object

  Author:
    andrzej

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static interface` | `JsonSerializationHelper.Serializable`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JsonSerializationHelper(SessionObject sessionObject, JsonSerializationHelper.Serializable[] serializers)`
    `JsonSerializationHelper(SessionObject sessionObject, Map<String,AbstractSessionObject.Entry> properties)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `addToArray(com.google.gwt.core.client.JavaScriptObject jsArr, com.google.gwt.core.client.JavaScriptObject val)`
    `Object` | `fromJSON(com.google.gwt.core.client.JavaScriptObject obj)`
    `static com.google.gwt.core.client.JsArrayString` | `getKeysFromObject(com.google.gwt.core.client.JavaScriptObject obj)`
    `static com.google.gwt.core.client.JavaScriptObject` | `getObjectFromObject(com.google.gwt.core.client.JavaScriptObject obj, String key)`
    `SessionObject` | `getSessionObject()`
    `static String` | `getStringFromObject(com.google.gwt.core.client.JavaScriptObject obj, String key)`
    `static void` | `putToObject(com.google.gwt.core.client.JavaScriptObject jsMap, String key, com.google.gwt.core.client.JavaScriptObject val)`
    `static void` | `putToObject(com.google.gwt.core.client.JavaScriptObject jsMap, String key, String val)`
    `static com.google.gwt.core.client.JavaScriptObject` | `toJSON(Object val)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JsonSerializationHelper

          public JsonSerializationHelper(SessionObject sessionObject,
                                         Map<String,AbstractSessionObject.Entry> properties)

    - #### JsonSerializationHelper

          public JsonSerializationHelper(SessionObject sessionObject,
                                         JsonSerializationHelper.Serializable[] serializers)

  - ### Method Detail

    - #### getSessionObject

          public SessionObject getSessionObject()

    - #### toJSON

          public static com.google.gwt.core.client.JavaScriptObject toJSON(Object val)
                                                                    throws XMLException

      Throws:
        `XMLException`

    - #### putToObject

          public static void putToObject(com.google.gwt.core.client.JavaScriptObject jsMap,
                                         String key,
                                         String val)

    - #### putToObject

          public static void putToObject(com.google.gwt.core.client.JavaScriptObject jsMap,
                                         String key,
                                         com.google.gwt.core.client.JavaScriptObject val)

    - #### addToArray

          public static void addToArray(com.google.gwt.core.client.JavaScriptObject jsArr,
                                        com.google.gwt.core.client.JavaScriptObject val)

    - #### fromJSON

          public Object fromJSON(com.google.gwt.core.client.JavaScriptObject obj)
                          throws JaxmppException

      Throws:
        `JaxmppException`

    - #### getStringFromObject

          public static String getStringFromObject(com.google.gwt.core.client.JavaScriptObject obj,
                                                   String key)

    - #### getObjectFromObject

          public static com.google.gwt.core.client.JavaScriptObject getObjectFromObject(com.google.gwt.core.client.JavaScriptObject obj,
                                                                                        String key)

    - #### getKeysFromObject

          public static com.google.gwt.core.client.JsArrayString getKeysFromObject(com.google.gwt.core.client.JavaScriptObject obj)

Copyright © 2006–2016 Tigase. All rights reserved.