org.overlord.sramp.ui.client.util
Class JsonMap

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by org.overlord.sramp.ui.client.util.JsonMap

public class JsonMap
extends com.google.gwt.core.client.JavaScriptObject

A javascript map object. This class is typically used to wrap some map data returned as JSON from the server.

Author:
eric.wittmann@redhat.com

Constructor Summary
protected JsonMap()
          Constructor.
 
Method Summary
static JsonMap fromJSON(String jsonData)
          Convert a string of json data into a useful map.
 String get(String key)
          Gets a value from the map.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonMap

protected JsonMap()
Constructor.

Method Detail

get

public final String get(String key)
Gets a value from the map.

Parameters:
key -

fromJSON

public static final JsonMap fromJSON(String jsonData)
Convert a string of json data into a useful map.

Parameters:
jsonData -


Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.