|
ModeShape Distribution 3.5.0.Final | |||||||||
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 interacting 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 | |
---|---|
protected org.codehaus.jettison.json.JSONObject |
children()
|
byte[] |
getContent()
|
String |
getId()
|
abstract URL |
getUrl()
|
protected org.codehaus.jettison.json.JSONObject |
properties()
|
String |
toString()
|
protected JsonNode |
withChild(String name,
org.codehaus.jettison.json.JSONObject child)
|
protected JsonNode |
withMixin(String mixin)
|
protected JsonNode |
withPrimaryType(String primaryType)
|
protected JsonNode |
withProperty(String key,
Object value)
|
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.JSONObject
protected JsonNode withPrimaryType(String primaryType) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
protected JsonNode withMixin(String mixin) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
protected JsonNode withProperty(String key, Object value) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
protected JsonNode withChild(String name, org.codehaus.jettison.json.JSONObject child) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
protected org.codehaus.jettison.json.JSONObject children() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
protected org.codehaus.jettison.json.JSONObject properties() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
|
ModeShape Distribution 3.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |