S
- source typeT
- output type for the marshallerpublic class UnmarshallerToMarshaller<S,T> extends Object implements ToMarshaller<S,T>
Constructor and Description |
---|
UnmarshallerToMarshaller(FromUnmarshaller<T,S> unmarshaller)
Create a new instance of a
ToMarshaller wrapping the given FromUnmarshaller |
Modifier and Type | Method and Description |
---|---|
Class<S> |
getBoundClass()
Obtain the bound class
|
Class<T> |
getTargetClass()
Obtain the bound class
|
T |
marshal(S object)
Converts to the given object from the specified object
|
public UnmarshallerToMarshaller(FromUnmarshaller<T,S> unmarshaller)
ToMarshaller
wrapping the given FromUnmarshaller
unmarshaller
- The FromUnmarshaller to wrappublic T marshal(S object)
marshal
in interface ToMarshaller<S,T>
object
- Object to transform, not nullpublic Class<S> getBoundClass()
getBoundClass
in interface ToMarshaller<S,T>
public Class<T> getTargetClass()
getTargetClass
in interface ToMarshaller<S,T>
Copyright © 2010–2018 Jadira Systems. All rights reserved.