@Deprecated public class JsonJcrNode extends JSONObject
JsonItemWriter
,
but instead of writing the resulting JSON directly to an output, you get a JSONObject that you can deal with.NULL
Constructor and Description |
---|
JsonJcrNode(Node node)
Deprecated.
Creates a JSONObject out of
node . |
JsonJcrNode(Node node,
java.util.Set<java.lang.String> propertyNamesToIgnore)
Deprecated.
Creates a
JSONObject out of node . |
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, toString, valueToString, write
public JsonJcrNode(Node node) throws JSONException, RepositoryException
node
. All node
's properties will be reflected in the JSON
object. In addition, properties jcr:path
and jcr:name
are added. Their values are
those returned by node.getPath()
and node.getName()
, respectively.node
- The JCR node to useJSONException
- If there's a problem generating the JSON objectRepositoryException
- If there's a problem reading data from the JCR repositorypublic JsonJcrNode(Node node, java.util.Set<java.lang.String> propertyNamesToIgnore) throws JSONException, RepositoryException
JSONObject
out of node
. All node
's properties will be reflected
in the JSON object, except those in propertyNamesToIgnore
. In addition, properties
jcr:path
and jcr:name
are added. Their values are those returned by
node.getPath()
and node.getName()
, respectively.node
- The JCR node to usepropertyNamesToIgnore
- A set of property names that should not be reflected in the resulting
JSON object.JSONException
- If there's a problem generating the JSON objectRepositoryException
- If there's a problem reading data from the JCR repository"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"