public class PlaceholderEnabledJsonNodeFactory
extends com.fasterxml.jackson.databind.node.JsonNodeFactory
JsonNodeFactory.
Each JSON text value is processed by the PropertyPlaceholderResolver before building a TextNode.
Inspired by
Spring Framework PropertyPlaceHolder and by
Jakarta Digester Substitution.| Constructor and Description |
|---|
PlaceholderEnabledJsonNodeFactory()
Default constructor
|
PlaceholderEnabledJsonNodeFactory(boolean bigDecimalExact)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.node.TextNode |
textNode(String text) |
_inIntRange, arrayNode, binaryNode, binaryNode, booleanNode, nullNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, objectNode, pojoNode, POJONode, withExactBigDecimalspublic PlaceholderEnabledJsonNodeFactory(boolean bigDecimalExact)
The only argument to this constructor is a boolean telling whether
DecimalNode instances must be built with exact representations of
BigDecimal instances.
This has quite an influence since, for instance, a BigDecimal (and,
therefore, a DecimalNode) constructed from input string "1.0" and
another constructed with input string "1.00" will not be
equal, since their scale differs (1 in the first case, 2 in the second
case).
Note that setting the argument to true does not
guarantee a strict inequality between JSON representations: input texts
"0.1" and "1e-1", for instance, yield two equivalent
BigDecimal instances since they have the same scale (1).
The no-arg constructor (and the default JsonNodeFactory.instance) calls this
constructor with false as an argument.
bigDecimalExact - see descriptionBigDecimalpublic PlaceholderEnabledJsonNodeFactory()
This calls PlaceholderEnabledJsonNodeFactory(boolean) with false
as an argument.
public com.fasterxml.jackson.databind.node.TextNode textNode(String text)
textNode in interface com.fasterxml.jackson.databind.node.JsonNodeCreatortextNode in class com.fasterxml.jackson.databind.node.JsonNodeFactoryCopyright © 2017. All Rights Reserved.