|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
org.gcube.portlets.user.tdw.client.model.json.JSonValue
public final class JSonValue
| Constructor Summary | |
|---|---|
protected |
JSonValue()
|
| Method Summary | |
|---|---|
boolean |
getAsBool(String key)
Returns the value for the specified key as boolean |
Boolean |
getAsBoolean(String key)
|
Date |
getAsDate(String key)
|
Double |
getAsDouble(String key)
|
Float |
getAsFloat(String key)
|
Integer |
getAsInteger(String key)
|
Long |
getAsLong(String key)
|
double |
getAsNumber(String key)
Returns the value for the specified key as Number |
String |
getAsString(String key)
Returns the value for the specified key as String |
String |
getType(String key)
|
boolean |
isNull(String key)
Check if the specified value is null. |
void |
set(String key,
boolean value)
Set the specified value. |
void |
set(String key,
Boolean value)
Set the specified value. |
void |
set(String key,
Date value)
Set the specified value. |
void |
set(String key,
double value)
Set the specified value. |
void |
set(String key,
Double value)
Set the specified value. |
void |
set(String key,
Float value)
Set the specified value. |
void |
set(String key,
Integer value)
Set the specified value. |
void |
set(String key,
Long value)
Set the specified value. |
void |
set(String key,
String value)
Set the specified value. |
| 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 |
|---|
protected JSonValue()
| Method Detail |
|---|
public String getAsString(String key)
key - the value key.
public void set(String key,
String value)
key - the key.value - the value to set.public double getAsNumber(String key)
key - the value key.
public void set(String key,
double value)
key - the key.value - the value to set.public boolean getAsBool(String key)
key - the value key.
public void set(String key,
boolean value)
key - the key.value - the value to set.public boolean isNull(String key)
key - the value key.
True if the values is null, false otherwise.public String getType(String key)
public Boolean getAsBoolean(String key)
public void set(String key,
Boolean value)
key - the key.value - the value to set.public Date getAsDate(String key)
public void set(String key,
Date value)
key - the key.value - the value to set.public Double getAsDouble(String key)
public void set(String key,
Double value)
key - the key.value - the value to set.public Float getAsFloat(String key)
public void set(String key,
Float value)
key - the key.value - the value to set.public Integer getAsInteger(String key)
public void set(String key,
Integer value)
key - the key.value - the value to set.public Long getAsLong(String key)
public void set(String key,
Long value)
key - the key.value - the value to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||