|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.json.RawJsonObject
public class RawJsonObject
An JsonObject that has an json string representation. Mainly used for simpliciy,
where Compass will use the configured JsonContentConverter
in order to convert to xml string into the actual XmlObject implementation.
This object will only be used when saving json object into Compass. When Compass returns json objects
as a restult of a query or get/load operations, the actual JsonObject will be returned.
Naturally, since the json string will only be parsed when Compass will convert this object, all the
JsonObject methods are not implemented. The JsonObject is just used
as a marker interface to use the correct json supported converters.
| Constructor Summary | |
|---|---|
RawJsonObject(String json)
Creates a new String based xml object using a String holding the actual xml content. |
|
| Method Summary | |
|---|---|
String |
getJson()
|
boolean |
isNullValue(Object value)
Returns true if the given value is a null value. |
Iterator<String> |
keys()
Returns a Map holding all the keys and value for the given Json Object. |
Object |
opt(String key)
Returns the given object under the key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RawJsonObject(String json)
| Method Detail |
|---|
public String getJson()
public Iterator<String> keys()
JsonObject
keys in interface JsonObjectpublic boolean isNullValue(Object value)
JsonObjecttrue if the given value is a null value.
isNullValue in interface JsonObjectpublic Object opt(String key)
JsonObjectnull if nothing
is registerd under the key.
opt in interface JsonObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||