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
Builder support for
JsonNodeReader
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.ObjectMapper
protected JsonNodeFactoryFactory
protected 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 theJsonNodeFactoryFactory
to use.protected abstract T
self()
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 theJsonNodeFactoryFactory
to use.To get location information from
JsonNode
theLocationJsonNodeFactoryFactory
can be used.- Parameters:
jsonNodeFactoryFactory
- the factory to create json node factories- Returns:
- the builder
-