Package com.networknt.schema
Class TypeFactory
java.lang.Object
com.networknt.schema.TypeFactory
Type factory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
TypeFactory
public TypeFactory()
-
-
Method Details
-
getSchemaNodeType
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
-