Example usage for com.google.gwt.json.client JSONString isString

List of usage examples for com.google.gwt.json.client JSONString isString

Introduction

In this page you can find the example usage for com.google.gwt.json.client JSONString isString.

Prototype

@Override
public JSONString isString() 

Source Link

Document

Returns this, as this is a JSONString.

Usage

From source file:org.livespark.formmodeler.editor.client.editor.rendering.renderers.selectors.utils.JSONParamsReader.java

License:Apache License

protected String readParam(String params, String paramToRead) {
    JSONObject object = JSONParser.parseStrict(params).isObject();

    if (object != null) {
        JSONString paramValue = object.get(paramToRead).isString();
        if (paramValue != null && paramValue.isString() != null)
            return paramValue.stringValue();
    }/*  w  w w  . j av a  2  s .  c o m*/

    return "";
}