@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, NUMBER_PATTERN| Constructor and Description |
|---|
JsonJcrNode(javax.jcr.Node node)
Deprecated.
Creates a JSONObject out of
node. |
JsonJcrNode(javax.jcr.Node node,
Set<String> propertyNamesToIgnore)
Deprecated.
Creates a
JSONObject out of node. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addProperty(javax.jcr.Property p)
Deprecated.
|
protected void |
addValue(String key,
javax.jcr.Value v)
Deprecated.
|
accumulate, append, clear, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getMapType, getNames, getNames, getNumber, getString, has, increment, isDecimalNotation, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optBooleanObject, optBooleanObject, optDouble, optDouble, optDoubleObject, optDoubleObject, optEnum, optEnum, optFloat, optFloat, optFloatObject, optFloatObject, optInt, optInt, optIntegerObject, optIntegerObject, optJSONArray, optJSONArray, optJSONObject, optJSONObject, optLong, optLong, optLongObject, optLongObject, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToNumber, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, writepublic JsonJcrNode(javax.jcr.Node node)
throws JSONException,
javax.jcr.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 objectjavax.jcr.RepositoryException - If there's a problem reading data from the JCR
repositorypublic JsonJcrNode(javax.jcr.Node node,
Set<String> propertyNamesToIgnore)
throws JSONException,
javax.jcr.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 objectjavax.jcr.RepositoryException - If there's a problem reading data from the JCR
repositoryprotected void addProperty(javax.jcr.Property p)
throws javax.jcr.ValueFormatException,
javax.jcr.RepositoryException,
JSONException
javax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionJSONExceptionprotected void addValue(String key, javax.jcr.Value v) throws IllegalStateException, javax.jcr.RepositoryException, JSONException
IllegalStateExceptionjavax.jcr.RepositoryExceptionJSONExceptionCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.