public abstract class StdConverter<IN,OUT> extends Object implements Converter<IN,OUT>
Converter
that supports explicit
type access, instead of relying type detection of generic type
parameters.Converter.None
Constructor and Description |
---|
StdConverter() |
Modifier and Type | Method and Description |
---|---|
protected JavaType |
_findConverterType(TypeFactory tf) |
abstract OUT |
convert(IN value)
Main conversion method.
|
JavaType |
getInputType(TypeFactory typeFactory)
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).
|
JavaType |
getOutputType(TypeFactory typeFactory)
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).
|
public abstract OUT convert(IN value)
Converter
public JavaType getInputType(TypeFactory typeFactory)
Converter
getInputType
in interface Converter<IN,OUT>
public JavaType getOutputType(TypeFactory typeFactory)
Converter
getOutputType
in interface Converter<IN,OUT>
protected JavaType _findConverterType(TypeFactory tf)
Copyright © 2021 JBoss by Red Hat. All rights reserved.