Package | Description |
---|---|
org.codehaus.jackson |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonParser )
instances. |
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser
Object mapper will convert Json content to ant from
basic Java wrapper types (Integer, Boolean, Double),
Collection types (List, Map), Java Beans,
Strings and nulls. |
org.codehaus.jackson.util |
Utility classes used by Jackson Core functionality.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JsonGenerator.canUseSchema(FormatSchema schema)
Method that can be used to verify that given schema can be used with
this generator (using
JsonGenerator.setSchema(org.codehaus.jackson.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(org.codehaus.jackson.FormatSchema) ). |
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 | Field and Description |
---|---|
protected FormatSchema |
ObjectWriter._schema
When using data format that uses a schema, schema is passed
to generator.
|
protected FormatSchema |
ObjectReader._schema
When using data format that uses a schema, schema is passed
to parser.
|
Modifier and Type | Method and Description |
---|---|
ObjectReader |
ObjectMapper.reader(FormatSchema schema)
Factory method for constructing
ObjectReader that will
pass specific schema object to JsonParser used for
reading content. |
ObjectReader |
ObjectMapper.schemaBasedReader(FormatSchema schema)
Deprecated.
Since 1.9, use
ObjectMapper.reader(FormatSchema) instead. |
ObjectWriter |
ObjectMapper.schemaBasedWriter(FormatSchema schema)
Deprecated.
Since 1.9, use
ObjectMapper.writer(FilterProvider) instead. |
ObjectWriter |
ObjectWriter.withSchema(FormatSchema schema) |
ObjectReader |
ObjectReader.withSchema(FormatSchema schema) |
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 |
---|
ObjectReader(ObjectMapper mapper,
DeserializationConfig config,
JavaType valueType,
java.lang.Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues) |
ObjectReader(ObjectReader base,
DeserializationConfig config,
JavaType valueType,
java.lang.Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues)
Copy constructor used for building variations.
|
ObjectWriter(ObjectMapper mapper,
SerializationConfig config,
FormatSchema s)
Alternative constructor for initial instantiation.
|
ObjectWriter(ObjectWriter base,
SerializationConfig config,
JavaType rootType,
PrettyPrinter pp,
FormatSchema s)
Copy constructor used for building variations.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JsonParserDelegate.canUseSchema(FormatSchema schema) |
boolean |
JsonGeneratorDelegate.canUseSchema(FormatSchema schema) |
void |
JsonParserDelegate.setSchema(FormatSchema schema) |
void |
JsonGeneratorDelegate.setSchema(FormatSchema schema) |