Class JacksonJsonNodeAdapter
java.lang.Object
com.floragunn.codova.documents.DocNode
com.floragunn.codova.documents.jackson.JacksonJsonNodeAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.floragunn.codova.documents.DocNode
DocNode.DocNodeParserBuilder -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionJacksonJsonNodeAdapter(com.fasterxml.jackson.databind.JsonNode jsonNode) JacksonJsonNodeAdapter(com.fasterxml.jackson.databind.JsonNode jsonNode, String key) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) entrySet()com.floragunn.fluent.collections.ImmutableList<DocNode>getAsListOfNodes(String attribute) getBigDecimal(String attribute) <R> com.floragunn.fluent.collections.ImmutableList<R>getList(String attribute, ValidatingFunction<String, R> conversionFunction, Object expected) booleanisEmpty()booleanisList()booleanbooleanisMap()keySet()intsize()com.floragunn.fluent.collections.ImmutableList<Object>toList()toMap()values()Methods inherited from class com.floragunn.codova.documents.DocNode
array, clear, containsValue, equals, findByJsonPath, findNodesByJsonPath, findSingleNodeByJsonPath, findSingleValueByJsonPath, flatten, get, get, get, getAsList, getAsListFromNodes, getAsListFromNodes, getAsListOfStrings, getAsNode, getAsString, getBoolean, getFromNode, getKey, getListFromNodes, getListOfStrings, getNumber, hasAny, hasNonNull, isFlat, isNull, isNumber, isScalar, isString, of, of, of, of, of, parse, parse, parse, put, putAll, remove, toBasicObject, toJsonString, toListOfNodes, toListOfStrings, toMapOfNodes, toNormalizedMap, toNumber, toString, toString, toString, toYamlString, with, with, without, wrapMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.floragunn.codova.documents.Document
meta, toBytes, toDeepBasicObject, toDocNode, toPrettyJsonString, toSmileMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
JacksonJsonNodeAdapter
public JacksonJsonNodeAdapter(com.fasterxml.jackson.databind.JsonNode jsonNode) -
JacksonJsonNodeAdapter
-
-
Method Details
-
get
-
getAsNode
-
getAsListOfNodes
- Specified by:
getAsListOfNodesin classDocNode
-
toList
-
getList
public <R> com.floragunn.fluent.collections.ImmutableList<R> getList(String attribute, ValidatingFunction<String, R> conversionFunction, Object expected) throws ConfigValidationException- Overrides:
getListin classDocNode- Throws:
ConfigValidationException
-
getBigDecimal
- Overrides:
getBigDecimalin classDocNode- Throws:
ConfigValidationException
-
toMap
-
isMap
public boolean isMap() -
isList
-
isList
public boolean isList() -
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
-
keySet
-
values
-
entrySet
-
splitDottedAttributeNamesToTree
- Specified by:
splitDottedAttributeNamesToTreein classDocNode- Throws:
UnexpectedDocumentStructureException
-