S
- Source type for the conversionT
- Target typepublic final class MethodFromUnmarshaller<S,T> extends Object implements FromUnmarshaller<S,T>
public static BoundType unmarshal(String string)
Constructor and Description |
---|
MethodFromUnmarshaller(Class<S> boundClass,
Method unmarshal)
Create a new instance
|
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 MethodFromUnmarshaller(Class<S> boundClass, Method unmarshal)
boundClass
- Bound classunmarshal
- Unmarshal method on the target classpublic 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.