S
- Source type for the conversionT
- Target typepublic final class ConverterFromUnmarshaller<S,T> extends Object implements FromUnmarshaller<S,T>
Constructor and Description |
---|
ConverterFromUnmarshaller(Converter<T,S> converter)
Create a new instance for the given converter
|
Modifier and Type | Method and Description |
---|---|
Class<S> |
getBoundClass()
Obtain the bound class
|
Class<T> |
getTargetClass()
Obtain the bound class
|
S |
unmarshal(T object)
Converts from the given String into the specified object
|
public ConverterFromUnmarshaller(Converter<T,S> converter)
converter
- The converter to be wrappedpublic S unmarshal(T object)
unmarshal
in interface FromUnmarshaller<S,T>
object
- Object to transform, not nullpublic Class<S> getBoundClass()
getBoundClass
in interface FromUnmarshaller<S,T>
public Class<T> getTargetClass()
getTargetClass
in interface FromUnmarshaller<S,T>
Copyright © 2010–2018 Jadira Systems. All rights reserved.