|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.jettison.json.JSONObject
org.modeshape.web.jcr.rest.client.json.JsonNode
public abstract class JsonNode

The JsonNode class defines the API for interacing with JSON objects. Every JsonNode knows how to
create their URL and create their JCR content.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.jettison.json.JSONObject |
|---|
NULL |
| Constructor Summary | |
|---|---|
protected |
JsonNode(String id)
|
| Method Summary | |
|---|---|
byte[] |
getContent()
|
String |
getId()
|
abstract URL |
getUrl()
|
String |
toString()
|
| Methods inherited from class org.codehaus.jettison.json.JSONObject |
|---|
accumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getString, has, isNull, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOpt, quote, remove, toJSONArray, toString, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected JsonNode(String id)
id - the node identifier (never null)| Method Detail |
|---|
public byte[] getContent()
throws Exception
Exception - if there is a problem obtaining the node contentpublic String getId()
public abstract URL getUrl()
throws Exception
Exception - if there is a problem constructing the URLpublic String toString()
toString in class org.codehaus.jettison.json.JSONObjectJSONObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||