Converter.None
Modifier and Type | Field and Description |
---|---|
protected XmlAdapter<Object,Object> |
_adapter |
protected boolean |
_forSerialization |
protected JavaType |
_inputType |
protected JavaType |
_targetType |
Constructor and Description |
---|
AdapterConverter(XmlAdapter<?,?> adapter,
JavaType inType,
JavaType outType,
boolean ser) |
Modifier and Type | Method and Description |
---|---|
Object |
convert(Object 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).
|
_findConverterType
protected final JavaType _inputType
protected final JavaType _targetType
protected final XmlAdapter<Object,Object> _adapter
protected final boolean _forSerialization
public AdapterConverter(XmlAdapter<?,?> adapter, JavaType inType, JavaType outType, boolean ser)
public Object convert(Object value)
Converter
public JavaType getInputType(TypeFactory typeFactory)
Converter
getInputType
in interface Converter<Object,Object>
getInputType
in class StdConverter<Object,Object>
public JavaType getOutputType(TypeFactory typeFactory)
Converter
getOutputType
in interface Converter<Object,Object>
getOutputType
in class StdConverter<Object,Object>
Copyright © 2021 JBoss by Red Hat. All rights reserved.