Top Description Constructors Methods
tools.jackson.databind.util

public abstract Class StdConverter<IN, OUT>

extends Object
implements Converter<IN, OUT>
Class Inheritance
All Implemented Interfaces
tools.jackson.databind.util.Converter
Imports
tools.jackson.databind.DeserializationContext, .JavaType, .SerializationContext, tools.jackson.databind.type.TypeFactory

Standard implementation of Converter that supports explicit type access, instead of relying type detection of generic type parameters.
Since
2.2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected JavaType
public OUT
convert(DeserializationContext ctxt, IN value)

Implements tools.jackson.databind.util.Converter.convert.

Conversion method to use on deserialization side.

public OUT
convert(SerializationContext ctxt, IN value)

Implements tools.jackson.databind.util.Converter.convert.

Conversion method to use on serialization side.

public abstract OUT
convert(IN value)

public JavaType
getInputType(TypeFactory typeFactory)

Implements tools.jackson.databind.util.Converter.getInputType.

Method that can be used to find out actual input (source) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).

public JavaType
getOutputType(TypeFactory typeFactory)

Implements tools.jackson.databind.util.Converter.getOutputType.

Method that can be used to find out actual output (target) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StdConverterback to summary
public StdConverter()

Method Detail

_findConverterTypeback to summary
protected JavaType _findConverterType(TypeFactory tf)
convertback to summary
public OUT convert(DeserializationContext ctxt, IN value)

Implements tools.jackson.databind.util.Converter.convert.

Doc from tools.jackson.databind.util.Converter.convert.

Conversion method to use on deserialization side.

Annotations
@Override
convertback to summary
public OUT convert(SerializationContext ctxt, IN value)

Implements tools.jackson.databind.util.Converter.convert.

Doc from tools.jackson.databind.util.Converter.convert.

Conversion method to use on serialization side.

Annotations
@Override
convertback to summary
public abstract OUT convert(IN value)
getInputTypeback to summary
public JavaType getInputType(TypeFactory typeFactory)

Implements tools.jackson.databind.util.Converter.getInputType.

Doc from tools.jackson.databind.util.Converter.getInputType.

Method that can be used to find out actual input (source) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).

Annotations
@Override
getOutputTypeback to summary
public JavaType getOutputType(TypeFactory typeFactory)

Implements tools.jackson.databind.util.Converter.getOutputType.

Doc from tools.jackson.databind.util.Converter.getOutputType.

Method that can be used to find out actual output (target) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).

Annotations
@Override