Package | Description |
---|---|
com.fasterxml.jackson.core |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonGenerator )
instances. |
com.fasterxml.jackson.core.util |
Utility classes used by Jackson Core functionality.
|
com.fasterxml.jackson.databind |
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode ), as well as
writing Java Objects and trees as JSON. |
Modifier and Type | Method and Description |
---|---|
FormatSchema |
JsonGenerator.getSchema()
Method for accessing Schema that this generator uses, if any;
null if none. |
FormatSchema |
JsonParser.getSchema()
Method for accessing Schema that this parser uses, if any.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JsonFactory.canUseSchema(FormatSchema schema)
Method that can be used to quickly check whether given schema
is something that parsers and/or generators constructed by this
factory could use.
|
boolean |
JsonGenerator.canUseSchema(FormatSchema schema)
Method that can be used to verify that given schema can be used with
this generator (using
JsonGenerator.setSchema(com.fasterxml.jackson.core.FormatSchema) ). |
boolean |
JsonParser.canUseSchema(FormatSchema schema)
Method that can be used to verify that given schema can be used with
this parser (using
JsonParser.setSchema(com.fasterxml.jackson.core.FormatSchema) ). |
abstract boolean |
TokenStreamFactory.canUseSchema(FormatSchema schema)
Method that can be used to quickly check whether given schema
is something that parsers and/or generators constructed by this
factory could use.
|
void |
JsonGenerator.setSchema(FormatSchema schema)
Method to call to make this generator use specified schema.
|
void |
JsonParser.setSchema(FormatSchema schema)
Method to call to make this parser use specified schema.
|
Modifier and Type | Method and Description |
---|---|
FormatSchema |
JsonGeneratorDelegate.getSchema() |
FormatSchema |
JsonParserDelegate.getSchema() |
Modifier and Type | Method and Description |
---|---|
boolean |
JsonGeneratorDelegate.canUseSchema(FormatSchema schema) |
boolean |
JsonParserDelegate.canUseSchema(FormatSchema schema) |
void |
JsonGeneratorDelegate.setSchema(FormatSchema schema) |
void |
JsonParserDelegate.setSchema(FormatSchema schema) |
Modifier and Type | Field and Description |
---|---|
protected FormatSchema |
ObjectReader._schema
When using data format that uses a schema, schema is passed
to parser.
|
FormatSchema |
ObjectWriter.GeneratorSettings.schema
When using data format that uses a schema, schema is passed
to generator.
|
Modifier and Type | Method and Description |
---|---|
FormatSchema |
MappingIterator.getParserSchema()
Accessor for accessing
FormatSchema that the underlying parser
(as per MappingIterator.getParser() ) is using, if any; only parser of schema-aware
formats use schemas. |
Modifier and Type | Method and Description |
---|---|
protected ObjectReader |
ObjectReader._new(ObjectReader base,
DeserializationConfig config,
JavaType valueType,
JsonDeserializer<Object> rootDeser,
Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues,
DataFormatReaders dataFormatReaders)
Overridable factory method called by various "withXxx()" methods
|
protected ObjectReader |
ObjectMapper._newReader(DeserializationConfig config,
JavaType valueType,
Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues)
Factory method sub-classes must override, to produce
ObjectReader
instances of proper sub-type |
protected ObjectWriter |
ObjectMapper._newWriter(SerializationConfig config,
FormatSchema schema)
Factory method sub-classes must override, to produce
ObjectWriter
instances of proper sub-type |
protected void |
ObjectMapper._verifySchemaType(FormatSchema schema) |
protected void |
ObjectReader._verifySchemaType(FormatSchema schema) |
protected void |
ObjectWriter._verifySchemaType(FormatSchema schema) |
JsonParser |
DeserializationConfig.initialize(JsonParser p,
FormatSchema schema) |
ObjectReader |
ObjectMapper.reader(FormatSchema schema)
Factory method for constructing
ObjectReader that will
pass specific schema object to JsonParser used for
reading content. |
ObjectReader |
ObjectReader.with(FormatSchema schema)
Method for constructing a new instance with configuration that
passes specified
FormatSchema to JsonParser that
is constructed for parsing content. |
ObjectWriter |
ObjectWriter.with(FormatSchema schema)
Method that will construct a new instance that uses specific format schema
for serialization.
|
ObjectWriter.GeneratorSettings |
ObjectWriter.GeneratorSettings.with(FormatSchema sch) |
ObjectWriter |
ObjectWriter.withSchema(FormatSchema schema)
Deprecated.
Since 2.5 use
ObjectWriter.with(FormatSchema) instead |
ObjectWriter |
ObjectMapper.writer(FormatSchema schema)
Factory method for constructing
ObjectWriter that will
pass specific schema object to JsonGenerator used for
writing content. |
Constructor and Description |
---|
GeneratorSettings(PrettyPrinter pp,
FormatSchema sch,
CharacterEscapes esc,
SerializableString rootSep) |
ObjectReader(ObjectMapper mapper,
DeserializationConfig config,
JavaType valueType,
Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues)
Constructor called when a root deserializer should be fetched based
on other configuration.
|
ObjectReader(ObjectReader base,
DeserializationConfig config,
JavaType valueType,
JsonDeserializer<Object> rootDeser,
Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues,
DataFormatReaders dataFormatReaders)
Copy constructor used for building variations.
|
ObjectWriter(ObjectMapper mapper,
SerializationConfig config,
FormatSchema s)
Alternative constructor for initial instantiation by
ObjectMapper |
Copyright © 2021 JBoss by Red Hat. All rights reserved.