Package com.networknt.schema
Class TypeFactory
- java.lang.Object
-
- com.networknt.schema.TypeFactory
-
public class TypeFactory extends java.lang.Object
Type factory.
-
-
Constructor Summary
Constructors Constructor Description TypeFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonType
getSchemaNodeType(com.fasterxml.jackson.databind.JsonNode node)
Gets theJsonType
indicated by the schema node.static JsonType
getValueNodeType(com.fasterxml.jackson.databind.JsonNode node, SchemaValidatorsConfig config)
Gets theJsonType
of the value node.
-
-
-
Method Detail
-
getSchemaNodeType
public static JsonType getSchemaNodeType(com.fasterxml.jackson.databind.JsonNode node)
Gets theJsonType
indicated by the schema node.- Parameters:
node
- the schema node- Returns:
- the json type
-
getValueNodeType
public static JsonType getValueNodeType(com.fasterxml.jackson.databind.JsonNode node, SchemaValidatorsConfig config)
Gets theJsonType
of the value node.- Parameters:
node
- the value nodeconfig
- the config- Returns:
- the json type
-
-