Class JacksonJsonNodeAdapter
- java.lang.Object
-
- com.floragunn.codova.documents.DocNode
-
- com.floragunn.codova.documents.jackson.JacksonJsonNodeAdapter
-
-
Constructor Summary
Constructors Constructor Description JacksonJsonNodeAdapter(com.fasterxml.jackson.databind.JsonNode jsonNode)JacksonJsonNodeAdapter(com.fasterxml.jackson.databind.JsonNode jsonNode, String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(Object key)Set<Map.Entry<String,Object>>entrySet()Objectget(String attribute)com.floragunn.fluent.collections.ImmutableList<DocNode>getAsListOfNodes(String attribute)DocNodegetAsNode(String attribute)BigDecimalgetBigDecimal(String attribute)<R> com.floragunn.fluent.collections.ImmutableList<R>getList(String attribute, ValidatingFunction<String,R> conversionFunction, Object expected)booleanisEmpty()booleanisList()booleanisList(String attribute)booleanisMap()Set<String>keySet()intsize()DocNodesplitDottedAttributeNamesToTree()com.floragunn.fluent.collections.ImmutableList<Object>toList()com.floragunn.fluent.collections.ImmutableMap<String,Object>toMap()Collection<Object>values()-
Methods inherited from class com.floragunn.codova.documents.DocNode
array, clear, containsValue, equals, findByJsonPath, findNodesByJsonPath, findSingleNodeByJsonPath, findSingleValueByJsonPath, get, get, get, getAsList, getAsListFromNodes, getAsListFromNodes, getAsListOfStrings, getAsNode, getAsString, getBoolean, getFromNode, getKey, getListFromNodes, getListOfStrings, getNumber, hasAny, hasNonNull, 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, wrap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.floragunn.codova.documents.Document
meta, toBytes, toDeepBasicObject, toDocNode, toPrettyJsonString, toSmile
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
JacksonJsonNodeAdapter
public JacksonJsonNodeAdapter(com.fasterxml.jackson.databind.JsonNode jsonNode)
-
JacksonJsonNodeAdapter
public JacksonJsonNodeAdapter(com.fasterxml.jackson.databind.JsonNode jsonNode, String key)
-
-
Method Detail
-
getAsListOfNodes
public com.floragunn.fluent.collections.ImmutableList<DocNode> getAsListOfNodes(String attribute)
- Specified by:
getAsListOfNodesin classDocNode
-
toList
public com.floragunn.fluent.collections.ImmutableList<Object> 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
public BigDecimal getBigDecimal(String attribute) throws ConfigValidationException
- Overrides:
getBigDecimalin classDocNode- Throws:
ConfigValidationException
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Object key)
-
values
public Collection<Object> values()
-
splitDottedAttributeNamesToTree
public DocNode splitDottedAttributeNamesToTree() throws UnexpectedDocumentStructureException
- Specified by:
splitDottedAttributeNamesToTreein classDocNode- Throws:
UnexpectedDocumentStructureException
-
-