|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.json.types.JsonValue
org.directwebremoting.json.types.JsonBoolean
public class JsonBoolean
The Json version of a boolean
| Constructor Summary | |
|---|---|
JsonBoolean(boolean value)
All JsonBoolean wrap a Java boolean value |
|
JsonBoolean(java.lang.String text)
All JsonBoolean wrap a Java boolean value |
|
| Method Summary | |
|---|---|
boolean |
getBoolean()
Often when dealing with a JsonValue you know which subtype it is,
this allows you to assume it is a boolean and get the Java value quickly. |
java.lang.String |
toExternalRepresentation()
i.e. |
java.lang.String |
toString()
|
| Methods inherited from class org.directwebremoting.json.types.JsonValue |
|---|
getDouble, getInteger, getJsonArray, getJsonObject, getLong, getString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JsonBoolean(boolean value)
public JsonBoolean(java.lang.String text)
| Method Detail |
|---|
public boolean getBoolean()
JsonValueJsonValue you know which subtype it is,
this allows you to assume it is a boolean and get the Java value quickly.
getBoolean in class JsonValueJsonNumber implementing thispublic java.lang.String toExternalRepresentation()
JsonValue
toExternalRepresentation in class JsonValuepublic java.lang.String toString()
toString in class java.lang.Object
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||