public class JsonNodeUtil extends Object
Constructor and Description |
---|
JsonNodeUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
equalsToSchemaType(com.fasterxml.jackson.databind.JsonNode node,
JsonSchema schema,
SchemaValidatorsConfig config) |
static boolean |
equalsToSchemaType(com.fasterxml.jackson.databind.JsonNode node,
JsonType schemaType,
JsonSchema parentSchema,
SchemaValidatorsConfig config) |
static JsonType |
getSchemaJsonType(JsonSchema schema) |
static boolean |
isBoolean(String s) |
static boolean |
isChildNodeNullable(com.fasterxml.jackson.databind.node.ArrayNode oneOfSchemaNode,
SchemaValidatorsConfig config) |
static boolean |
isInteger(String str) |
static boolean |
isNodeNullable(com.fasterxml.jackson.databind.JsonNode schema) |
static boolean |
isNodeNullable(com.fasterxml.jackson.databind.JsonNode schema,
SchemaValidatorsConfig config) |
static boolean |
isNumber(com.fasterxml.jackson.databind.JsonNode node,
SchemaValidatorsConfig config)
Check if the type of the JsonNode's value is number based on the
status of typeLoose flag.
|
static boolean |
isNumeric(String str) |
static boolean |
matchOneOfTypeNode(com.fasterxml.jackson.databind.JsonNode oneOfSchemaNode,
JsonType nodeType) |
public static boolean isNodeNullable(com.fasterxml.jackson.databind.JsonNode schema)
public static boolean isNodeNullable(com.fasterxml.jackson.databind.JsonNode schema, SchemaValidatorsConfig config)
public static boolean isChildNodeNullable(com.fasterxml.jackson.databind.node.ArrayNode oneOfSchemaNode, SchemaValidatorsConfig config)
public static boolean matchOneOfTypeNode(com.fasterxml.jackson.databind.JsonNode oneOfSchemaNode, JsonType nodeType)
public static boolean equalsToSchemaType(com.fasterxml.jackson.databind.JsonNode node, JsonSchema schema, SchemaValidatorsConfig config)
public static JsonType getSchemaJsonType(JsonSchema schema)
public static boolean equalsToSchemaType(com.fasterxml.jackson.databind.JsonNode node, JsonType schemaType, JsonSchema parentSchema, SchemaValidatorsConfig config)
public static boolean isInteger(String str)
public static boolean isBoolean(String s)
public static boolean isNumeric(String str)
public static boolean isNumber(com.fasterxml.jackson.databind.JsonNode node, SchemaValidatorsConfig config)
node
- the JsonNode to checkconfig
- the SchemaValidatorsConfig to depend onCopyright © 2022. All rights reserved.