Class DefaultJsonNodeReader.BuilderSupport<T>

java.lang.Object
com.networknt.schema.serialization.DefaultJsonNodeReader.BuilderSupport<T>
Type Parameters:
T - the super type
Direct Known Subclasses:
DefaultJsonNodeReader.Builder
Enclosing class:
DefaultJsonNodeReader

public abstract static class DefaultJsonNodeReader.BuilderSupport<T> extends Object
Builder support for JsonNodeReader.
  • Field Details

    • jsonMapper

      protected com.fasterxml.jackson.databind.ObjectMapper jsonMapper
    • yamlMapper

      protected com.fasterxml.jackson.databind.ObjectMapper yamlMapper
    • jsonNodeFactoryFactory

      protected JsonNodeFactoryFactory jsonNodeFactoryFactory
  • Constructor Details

    • BuilderSupport

      public BuilderSupport()
  • Method Details

    • self

      protected abstract T self()
    • jsonMapper

      public T jsonMapper(com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
      Sets the json mapper.
      Parameters:
      jsonMapper - the json mapper
      Returns:
      the builder
    • yamlMapper

      public T yamlMapper(com.fasterxml.jackson.databind.ObjectMapper yamlMapper)
      Sets the yaml mapper
      Parameters:
      yamlMapper - the yaml mapper
      Returns:
      the builder
    • jsonNodeFactoryFactory

      public T jsonNodeFactoryFactory(JsonNodeFactoryFactory jsonNodeFactoryFactory)
      Configures the JsonNodeFactoryFactory to use.

      To get location information from JsonNode the LocationJsonNodeFactoryFactory can be used.

      Parameters:
      jsonNodeFactoryFactory - the factory to create json node factories
      Returns:
      the builder