Uses of Class
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JsonNode
Package
Description
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode
), as well as
writing Java Objects and trees as JSON.Contains implementation classes of deserialization part of
data binding.
Contains public standard implementations of abstraction that
Jackson uses.
Contains extended support for "external" packages: things that
may or may not be present in runtime environment, but that are
commonly enough used so that explicit support can be added.
Classes needed for JSON schema support (currently just ability
to generate schemas using serialization part of data mapping)
Package that contains classes and interfaces to help implement
custom extension
Module
s
(which are registered using
ObjectMapper.registerModule(edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.Module)
.Contains concrete
JsonNode
implementations
Jackson uses for the Tree model.Contains implementation classes of serialization part of
data binding.
Contains implementation classes of serialization part of
data binding.
-
Uses of JsonNode in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind
Modifier and TypeMethodDescriptionprotected <T extends JsonNode>
TJsonNode._this()
abstract <T extends JsonNode>
TJsonNode.deepCopy()
Method that can be called to get a node that is guaranteed not to allow changing of this node through mutators on this node or any of its children.<T extends JsonNode>
TJsonNode.require()
Method that may be called to verify thatthis
node is NOT so-called "missing node": that is, one for whichisMissingNode()
returnstrue
.<T extends JsonNode>
TJsonNode.requireNonNull()
Method that may be called to verify thatthis
node is neither so-called "missing node" (that is, one for whichisMissingNode()
returnstrue
) nor "null node" (one for whichisNull()
returnstrue
).<T extends JsonNode>
TObjectMapper.valueToTree
(Object fromValue) Method that is reverse ofObjectMapper.treeToValue(edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.core.TreeNode, java.lang.Class<T>)
: it will convert given Java value (usually bean) into its equivalent Tree modeJsonNode
representation.<T extends JsonNode>
TDeprecated.<T extends JsonNode>
TMethod that works in one of possible ways, depending on whetherexprOrProperty
is a validJsonPointer
expression or not (valid expression is either empty String""
or starts with leading slash/
character).Modifier and TypeMethodDescriptionprotected abstract JsonNode
JsonNode._at
(JsonPointer ptr) Helper method used by other methods for traversing the next step of given path expression, and returning matching value node if any: if no match,null
is returned.protected final JsonNode
ObjectReader._bindAndCloseAsTree
(JsonParser p0) protected final JsonNode
ObjectReader._bindAsTree
(JsonParser p) protected final JsonNode
ObjectReader._bindAsTreeOrNull
(JsonParser p) Same asObjectReader._bindAsTree(edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.core.JsonParser)
except end-of-input is reported by returningnull
, not "missing node"protected JsonNode
ObjectReader._detectBindAndCloseAsTree
(InputStream in) protected JsonNode
ObjectMapper._readTreeAndClose
(JsonParser p0) Similar toObjectMapper._readMapAndClose(edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.core.JsonParser, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JavaType)
but specialized forJsonNode
reading.final JsonNode
JsonNode.at
(JsonPointer ptr) Method for locating node specified by given JSON pointer instances.final JsonNode
Convenience method that is functionally equivalent to:ObjectReader.createArrayNode()
ObjectReader.createObjectNode()
abstract JsonNode
JsonNode.findParent
(String fieldName) Method for finding a JSON Object that contains specified field, within this node or its descendants.abstract JsonNode
Method similar tofindValue(java.lang.String)
, but that will return a "missing node" instead of null if no field is found.abstract JsonNode
Method for finding a JSON Object field with specified name in this node or its child nodes, and returning value it has.abstract JsonNode
JsonNode.get
(int index) Method for accessing value of the specified element of an array node.Method for accessing value of the specified field of an object node.ObjectMapper.missingNode()
ObjectReader.missingNode()
ObjectMapper.nullNode()
ObjectReader.nullNode()
abstract JsonNode
JsonNode.path
(int index) This method is similar toget(int)
, except that instead of returning null if no such element exists (due to index being out of range, or this node not being an array), a "missing node" (node that returns true forisMissingNode()
) will be returned.abstract JsonNode
This method is similar toget(String)
, except that instead of returning null if no such value exists (due to this node not being an object, or object not having value for the specified field), a "missing node" (node that returns true forisMissingNode()
) will be returned.DeserializationContext.readTree
(JsonParser p) Convenience method for reading the value that passedJsonParser
points to as aJsonNode
.ObjectMapper.readTree
(byte[] content) Same asObjectMapper.readTree(InputStream)
except content read from passed-in byte array.ObjectMapper.readTree
(byte[] content, int offset, int len) Same asObjectMapper.readTree(InputStream)
except content read from passed-in byte array.Same asObjectMapper.readTree(InputStream)
except content read from passed-inFile
.ObjectMapper.readTree
(InputStream in) Method to deserialize JSON content as tree expressed using set ofJsonNode
instances.Same asObjectMapper.readTree(InputStream)
except content accessed through passed-inReader
Same asObjectMapper.readTree(InputStream)
except content read from passed-inString
Same asObjectMapper.readTree(InputStream)
except content read from passed-inURL
.ObjectReader.readTree
(byte[] json) Same asObjectReader.readTree(InputStream)
except content read from passed-in byte array.ObjectReader.readTree
(byte[] json, int offset, int len) Same asObjectReader.readTree(InputStream)
except content read from passed-in byte array.Same asObjectReader.readTree(InputStream)
except content read using passed-inDataInput
.ObjectReader.readTree
(InputStream src) Method that reads content from given input source, using configuration of this reader, and binds it as JSON Tree.Same asObjectReader.readTree(InputStream)
except content accessed through passed-inReader
Same asObjectReader.readTree(InputStream)
except content read from passed-inString
JsonNode.required
(int index) Method is functionally equivalent topath(index).required()
and can be used to check that this node is anArrayNode
(that is, represents JSON Array value) and has value for specifiedindex
(but note that value may be explicit JSON null value).Method is functionally equivalent topath(fieldName).required()
and can be used to check that this node is anObjectNode
(that is, represents JSON Object value) and has value for specified property with keyfieldName
(but note that value may be explicit JSON null value).final JsonNode
JsonNode.requiredAt
(JsonPointer path) Method is functionally equivalent toat(path).required()
and can be used to check that there is an actual value node at specifiedJsonPointer
starting fromthis
node (but note that value may be explicit JSON null value).JsonNode.requiredAt
(String pathExpr) Method is functionally equivalent toat(pathExpr).required()
and can be used to check that there is an actual value node at specifiedJsonPointer
starting fromthis
node (but note that value may be explicit JSON null value).Modifier and TypeMethodDescriptionJsonNode.elements()
Method for accessing all value nodes of this Node, iff this node is a JSON Array or Object node.JsonNode.fields()
JsonNode.findParents
(String fieldName) Method for finding a JSON Object that contains specified field, within this node or its descendants.JsonNode.findParents
(String fieldName, List<JsonNode> foundSoFar) JsonNode.findValues
(String fieldName) Method for finding JSON Object fields with specified name, and returning found ones as a List.JsonNode.findValues
(String fieldName, List<JsonNode> foundSoFar) JsonNode.iterator()
Same as callingelements()
; implemented so that convenience "for-each" loop can be used for looping over elements of JSON Array constructs.Modifier and TypeMethodDescriptionboolean
JsonNode.equals
(Comparator<JsonNode> comparator, JsonNode other) Entry method for invoking customizable comparison, using passed-inComparator
object.<T> T
DeserializationContext.readTreeAsValue
(JsonNode n, JavaType targetType) Same asDeserializationContext.readTreeAsValue(JsonNode, Class)
but will fully resolvedJavaType
astargetType
<T> T
DeserializationContext.readTreeAsValue
(JsonNode n, Class<T> targetType) Helper method similar toObjectReader.treeToValue(TreeNode, Class)
which will read contents of given tree (JsonNode
) and bind them into specified target type.<T> T
Convenience method for converting results from given JSON tree into given value type.<T> T
Same asObjectReader.readValue(JsonNode)
except that target value type overridden asvalueType
void
ObjectMapper.writeTree
(JsonGenerator g, JsonNode rootNode) Method to serialize given JSON Tree, using generator provided.Modifier and TypeMethodDescriptionboolean
JsonNode.equals
(Comparator<JsonNode> comparator, JsonNode other) Entry method for invoking customizable comparison, using passed-inComparator
object.JsonNode.findParents
(String fieldName, List<JsonNode> foundSoFar) JsonNode.findValues
(String fieldName, List<JsonNode> foundSoFar) -
Uses of JsonNode in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser
Modifier and TypeMethodDescriptionprotected void
SettableAnyProperty.JsonNodeFieldAnyProperty.setProperty
(Object instance, String propName, JsonNode value) Modifier and TypeMethodDescriptionprotected JsonDeserializer<?>
BasicDeserializerFactory._findCustomTreeNodeDeserializer
(Class<? extends JsonNode> type, DeserializationConfig config, BeanDescription beanDesc) Deserializers.Base.findTreeNodeDeserializer
(Class<? extends JsonNode> nodeType, DeserializationConfig config, BeanDescription beanDesc) Deserializers.findTreeNodeDeserializer
(Class<? extends JsonNode> nodeType, DeserializationConfig config, BeanDescription beanDesc) Method called to locate deserializer for specified JSON tree node type. -
Uses of JsonNode in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.std
Modifier and TypeMethodDescriptionJsonNodeDeserializer.deserialize
(JsonParser p, DeserializationContext ctxt) Implementation that will produce types of any JSON nodes; not just one deserializer is registered to handle (in case of more specialized handler).JsonNodeDeserializer.getNullValue
(DeserializationContext ctxt) Modifier and TypeMethodDescriptionstatic JsonDeserializer<? extends JsonNode>
JsonNodeDeserializer.getDeserializer
(Class<?> nodeClass) Factory method for accessing deserializer for specific node typeModifier and TypeMethodDescriptionabstract T
StdNodeBasedDeserializer.convert
(JsonNode root, DeserializationContext ctxt) -
Uses of JsonNode in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ext
Modifier and TypeMethodDescriptionDOMSerializer.getSchema
(SerializerProvider provider, Type typeHint) -
Uses of JsonNode in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.jsonschema
Modifier and TypeMethodDescriptionstatic JsonNode
JsonSchema.getDefaultSchemaNode()
Deprecated.Get the default schema node.SchemaAware.getSchema
(SerializerProvider provider, Type typeHint) Get the representation of the schema to which this serializer will conform.SchemaAware.getSchema
(SerializerProvider provider, Type typeHint, boolean isOptional) Get the representation of the schema to which this serializer will conform. -
Uses of JsonNode in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.module
Modifier and TypeMethodDescriptionSimpleDeserializers.findTreeNodeDeserializer
(Class<? extends JsonNode> nodeType, DeserializationConfig config, BeanDescription beanDesc) -
Uses of JsonNode in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.node
Modifier and TypeClassDescriptionclass
Node class that represents Arrays mapped from JSON content.class
Abstract base class common to all standardJsonNode
implementations.class
Numeric node that contains simple 64-bit integer values.class
Value node that contains Base64 encoded binary value, which will be output and stored as Json String value.class
This concrete value class is used to contain boolean (true / false) values.class
ContainerNode<T extends ContainerNode<T>>
This intermediate base class is used for all container nodes, specifically, array and object nodes.class
Numeric node that contains values that do not fit in simple integer (int, long) or floating point (double) values.class
Numeric node that contains 64-bit ("double precision") floating point values simple 32-bit integer values.class
JsonNode
implementation for efficiently containing 32-bit `float` values.class
Numeric node that contains simple 32-bit integer values.class
Numeric node that contains simple 64-bit integer values.final class
This singleton node class is generated to denote "missing nodes" along paths that do not exist.class
This singleton value class is used to contain explicit JSON null value.class
Intermediate value node used for numeric nodes.class
Node that maps to JSON Object structures in JSON content.class
Value node that contains a wrapped POJO, to be serialized as a JSON constructed through data mapping (usually done by callingObjectMapper
).class
Numeric node that contains simple 16-bit integer values.class
Value node that contains a text value.class
This intermediate base class is used for all leaf nodes, that is, all non-container (array or object) nodes, except for the "missing node".Modifier and TypeMethodDescription<T extends JsonNode>
TMissingNode.deepCopy()
<T extends JsonNode>
TValueNode.deepCopy()
All current value nodes are immutable, so we can just return them as is.<T extends JsonNode>
TMethod that will set specified property, replacing old value, if any.<T extends JsonNode>
TObjectNode.setAll
(ObjectNode other) Method for adding all properties of the given Object, overriding any existing values for those properties.<T extends JsonNode>
TMethod for adding given properties to this object node, overriding any existing values for those properties.<T extends JsonNode>
TMethod for removing property from this ObjectNode, and returning instance after removal.<T extends JsonNode>
TObjectNode.without
(Collection<String> propertyNames) Method for removing specified field properties out of this ObjectNode.Modifier and TypeMethodDescriptionprotected JsonNode
ArrayNode._at
(JsonPointer ptr) protected JsonNode
ObjectNode._at
(JsonPointer ptr) protected JsonNode
ValueNode._at
(JsonPointer ptr) protected JsonNode
TreeTraversingParser.currentNode()
protected JsonNode
TreeTraversingParser.currentNumericNode()
final JsonNode
final JsonNode
ArrayNode.get
(int index) abstract JsonNode
ContainerNode.get
(int index) abstract JsonNode
ObjectNode.get
(int index) final JsonNode
ValueNode.get
(int index) final JsonNode
ContainerNode.missingNode()
JsonNodeFactory.missingNode()
ArrayNode.path
(int index) ObjectNode.path
(int index) final JsonNode
ValueNode.path
(int index) final JsonNode
Deprecated.Since 2.4 use eitherObjectNode.set(String,JsonNode)
orObjectNode.replace(String,JsonNode)
,ObjectNode.putAll
(ObjectNode other) Deprecated.Since 2.4 useObjectNode.setAll(ObjectNode)
,Deprecated.Since 2.4 useObjectNode.setAll(Map)
,ObjectNode.putIfAbsent
(String propertyName, JsonNode value) Method that will set value of specified property if (and only if) it had no set value previously.ArrayNode.remove
(int index) Method for removing an entry from this ArrayNode.Method for removing a property from thisObjectNode
.Method for replacing value of specific property with passed value, and returning value (or null if none).MissingNode.require()
ArrayNode.required
(int index) BaseJsonNode.required
(int index) MissingNode.requireNonNull()
NullNode.requireNonNull()
Method that will set specified field, replacing old value, if any.Modifier and TypeMethodDescriptionArrayNode.elements()
ObjectNode.elements()
ObjectNode.fields()
Method to use for accessing all properties (with both names and values) of this JSON Object.ArrayNode.findParents
(String fieldName, List<JsonNode> foundSoFar) ObjectNode.findParents
(String propertyName, List<JsonNode> foundSoFar) ValueNode.findParents
(String fieldName, List<JsonNode> foundSoFar) ArrayNode.findValues
(String fieldName, List<JsonNode> foundSoFar) ObjectNode.findValues
(String propertyName, List<JsonNode> foundSoFar) ValueNode.findValues
(String fieldName, List<JsonNode> foundSoFar) Modifier and TypeMethodDescriptionprotected ArrayNode
protected ArrayNode
protected ObjectNode
protected ArrayNode
protected boolean
BaseJsonNode._withXxxMayReplace
(JsonNode node, JsonNode.OverwriteMode overwriteMode) protected void
ArrayNode._withXxxSetArrayElement
(int index, JsonNode value) protected void
BaseJsonNode._withXxxVerifyReplace
(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex, JsonNode toReplace) Method for adding specified node at the end of this array.boolean
ArrayNode.equals
(Comparator<JsonNode> comparator, JsonNode o) boolean
ObjectNode.equals
(Comparator<JsonNode> comparator, JsonNode o) Method for inserting specified child node as an element of this Array.Deprecated.Since 2.4 use eitherObjectNode.set(String,JsonNode)
orObjectNode.replace(String,JsonNode)
,ObjectNode.putIfAbsent
(String propertyName, JsonNode value) Method that will set value of specified property if (and only if) it had no set value previously.Method for replacing value of specific property with passed value, and returning value (or null if none).Method that will set specified field, replacing old value, if any.<T extends JsonNode>
TMethod that will set specified property, replacing old value, if any.Modifier and TypeMethodDescriptionArrayNode.addAll
(Collection<? extends JsonNode> nodes) Method for adding given nodes as child nodes of this array node.boolean
ArrayNode.equals
(Comparator<JsonNode> comparator, JsonNode o) boolean
ObjectNode.equals
(Comparator<JsonNode> comparator, JsonNode o) ArrayNode.findParents
(String fieldName, List<JsonNode> foundSoFar) ObjectNode.findParents
(String propertyName, List<JsonNode> foundSoFar) ValueNode.findParents
(String fieldName, List<JsonNode> foundSoFar) ArrayNode.findValues
(String fieldName, List<JsonNode> foundSoFar) ObjectNode.findValues
(String propertyName, List<JsonNode> foundSoFar) ValueNode.findValues
(String fieldName, List<JsonNode> foundSoFar) Deprecated.Since 2.4 useObjectNode.setAll(Map)
,<T extends JsonNode>
TMethod for adding given properties to this object node, overriding any existing values for those properties.ModifierConstructorDescriptionArrayNode
(JsonNodeFactory nf, List<JsonNode> children) ObjectNode
(JsonNodeFactory nc, Map<String, JsonNode> kids) -
Uses of JsonNode in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser
Modifier and TypeMethodDescriptionprotected void
BeanPropertyWriter._depositSchemaProperty
(ObjectNode propertiesNode, JsonNode schemaNode) -
Uses of JsonNode in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.impl
Modifier and TypeMethodDescriptionprotected JsonNode
IndexedStringListSerializer.contentSchema()
protected JsonNode
StringCollectionSerializer.contentSchema()
StringArraySerializer.getSchema
(SerializerProvider provider, Type typeHint) Modifier and TypeMethodDescriptionprotected void
UnwrappingBeanPropertyWriter._depositSchemaProperty
(ObjectNode propertiesNode, JsonNode schemaNode) -
Uses of JsonNode in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std
Modifier and TypeMethodDescriptionprotected abstract JsonNode
StaticListSerializerBase.contentSchema()
AsArraySerializerBase.getSchema
(SerializerProvider provider, Type typeHint) BeanSerializerBase.getSchema
(SerializerProvider provider, Type typeHint) Deprecated.BooleanSerializer.getSchema
(SerializerProvider provider, Type typeHint) ByteArraySerializer.getSchema
(SerializerProvider provider, Type typeHint) ClassSerializer.getSchema
(SerializerProvider provider, Type typeHint) DateTimeSerializerBase.getSchema
(SerializerProvider serializers, Type typeHint) EnumSerializer.getSchema
(SerializerProvider provider, Type typeHint) FileSerializer.getSchema
(SerializerProvider provider, Type typeHint) JsonValueSerializer.getSchema
(SerializerProvider ctxt, Type typeHint) MapSerializer.getSchema
(SerializerProvider provider, Type typeHint) NullSerializer.getSchema
(SerializerProvider provider, Type typeHint) NumberSerializer.getSchema
(SerializerProvider provider, Type typeHint) NumberSerializers.Base.getSchema
(SerializerProvider provider, Type typeHint) RawSerializer.getSchema
(SerializerProvider provider, Type typeHint) SqlTimeSerializer.getSchema
(SerializerProvider provider, Type typeHint) StaticListSerializerBase.getSchema
(SerializerProvider provider, Type typeHint) StdArraySerializers.BooleanArraySerializer.getSchema
(SerializerProvider provider, Type typeHint) StdArraySerializers.CharArraySerializer.getSchema
(SerializerProvider provider, Type typeHint) StdArraySerializers.DoubleArraySerializer.getSchema
(SerializerProvider provider, Type typeHint) StdArraySerializers.FloatArraySerializer.getSchema
(SerializerProvider provider, Type typeHint) StdArraySerializers.IntArraySerializer.getSchema
(SerializerProvider provider, Type typeHint) StdArraySerializers.LongArraySerializer.getSchema
(SerializerProvider provider, Type typeHint) StdArraySerializers.ShortArraySerializer.getSchema
(SerializerProvider provider, Type typeHint) StdDelegatingSerializer.getSchema
(SerializerProvider provider, Type typeHint) StdDelegatingSerializer.getSchema
(SerializerProvider provider, Type typeHint, boolean isOptional) StdJdkSerializers.AtomicBooleanSerializer.getSchema
(SerializerProvider provider, Type typeHint) StdJdkSerializers.AtomicIntegerSerializer.getSchema
(SerializerProvider provider, Type typeHint) StdJdkSerializers.AtomicLongSerializer.getSchema
(SerializerProvider provider, Type typeHint) StdScalarSerializer.getSchema
(SerializerProvider provider, Type typeHint) StdSerializer.getSchema
(SerializerProvider provider, Type typeHint) Default implementation simply claims type is "string"; usually overriden by custom serializers.StdSerializer.getSchema
(SerializerProvider provider, Type typeHint, boolean isOptional) Default implementation simply claims type is "string"; usually overriden by custom serializers.StringSerializer.getSchema
(SerializerProvider provider, Type typeHint) ToEmptyObjectSerializer.getSchema
(SerializerProvider provider, Type typeHint) TokenBufferSerializer.getSchema
(SerializerProvider provider, Type typeHint) ToStringSerializerBase.getSchema
(SerializerProvider provider, Type typeHint)
withObject(String)
instead