Class TypeFactory

java.lang.Object
com.networknt.schema.TypeFactory

public class TypeFactory extends Object
Type factory.
  • Constructor Details

    • TypeFactory

      public TypeFactory()
  • Method Details

    • getSchemaNodeType

      public static JsonType getSchemaNodeType(com.fasterxml.jackson.databind.JsonNode node)
      Gets the JsonType 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 the JsonType of the value node.
      Parameters:
      node - the value node
      config - the config
      Returns:
      the json type