S
- source typeT
- output type for the marshallerpublic class MarshallerToUnmarshaller<S,T> extends Object implements FromUnmarshaller<S,T>
Constructor and Description |
---|
MarshallerToUnmarshaller(ToMarshaller<T,S> marshaller)
Create a new instance of a
FromUnmarshaller wrapping the given ToMarshaller |
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 MarshallerToUnmarshaller(ToMarshaller<T,S> marshaller)
FromUnmarshaller
wrapping the given ToMarshaller
marshaller
- The ToMarshaller to wrappublic 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.