Class DefaultNodeReader.BuilderSupport<T>
java.lang.Object
com.networknt.schema.serialization.DefaultNodeReader.BuilderSupport<T>
- Type Parameters:
T- the super type
- Direct Known Subclasses:
DefaultNodeReader.Builder
- Enclosing class:
DefaultNodeReader
Builder support for
NodeReader.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.ObjectMapperprotected JsonNodeFactoryFactoryprotected com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjsonMapper(com.fasterxml.jackson.databind.ObjectMapper jsonMapper) Sets the json mapper.jsonNodeFactoryFactory(JsonNodeFactoryFactory jsonNodeFactoryFactory) Configures theJsonNodeFactoryFactoryto use.protected abstract Tself()yamlMapper(com.fasterxml.jackson.databind.ObjectMapper yamlMapper) Sets the yaml mapper
-
Field Details
-
jsonMapper
protected com.fasterxml.jackson.databind.ObjectMapper jsonMapper -
yamlMapper
protected com.fasterxml.jackson.databind.ObjectMapper yamlMapper -
jsonNodeFactoryFactory
-
-
Constructor Details
-
BuilderSupport
public BuilderSupport()
-
-
Method Details
-
self
-
jsonMapper
Sets the json mapper.- Parameters:
jsonMapper- the json mapper- Returns:
- the builder
-
yamlMapper
Sets the yaml mapper- Parameters:
yamlMapper- the yaml mapper- Returns:
- the builder
-
jsonNodeFactoryFactory
Configures theJsonNodeFactoryFactoryto use.To get location information from
JsonNodetheLocationJsonNodeFactoryFactorycan be used.- Parameters:
jsonNodeFactoryFactory- the factory to create json node factories- Returns:
- the builder
-