|
eXo WS :: Framework :: JSON 2.4.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.ws.frameworks.json.impl.JsonUtils
public final class JsonUtils
| Nested Class Summary | |
|---|---|
static class |
JsonUtils.JsonToken
Types of Json tokens. |
static class |
JsonUtils.Types
|
| Method Summary | |
|---|---|
static String |
getJsonString(String string)
Transform Java String to JSON string. |
static JsonUtils.Types |
getType(Class<?> clazz)
Get corresponding JsonUtils.Types for specified class. |
static JsonUtils.Types |
getType(Object o)
Get corresponding JsonUtils.Types for specified Object. |
static boolean |
isKnownType(Class<?> clazz)
Check is given class object represents: Primitive type Primitive type wrapper String Array of T where T satisfies 1 or 2 or 3> |
static boolean |
isKnownType(Object o)
Check is given object has on of types: null
Primitive type
Primitive type wrapper
String
Array of T where T satisfies 2 or 3 or 4>
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getJsonString(String string)
string - source String.
public static boolean isKnownType(Object o)
null
o - Object
true if Object has one of described above type,
false otherwisepublic static boolean isKnownType(Class<?> clazz)
clazz - class.
true if class object represent one of described
above, false otherwisepublic static JsonUtils.Types getType(Object o)
JsonUtils.Types for specified Object. If object is NOT :
null will be returned
- Parameters:
o - Object.
- Returns:
JsonUtils.Types or null (see above)- See Also:
KNOWN_TYPES}.
public static JsonUtils.Types getType(Class<?> clazz)
JsonUtils.Types for specified class. If class object is
NOT :
null will be returned
- Parameters:
o - Object.
- Returns:
JsonUtils.Types or null (see above)- See Also:
KNOWN_TYPES}.
|
eXo WS :: Framework :: JSON 2.4.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||