T
- the type of the class for the conversionpublic class ToBinding<S,T> extends Object implements Binding<S,T>
Constructor and Description |
---|
ToBinding(ToMarshaller<S,T> marshal)
Create a new instance of a
Binding wrapping the given ToMarshaller |
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
|
S |
unmarshal(T inputString)
Converts from the given String into the specified object
|
public ToBinding(ToMarshaller<S,T> marshal)
Binding
wrapping the given ToMarshaller
marshal
- The ToMarshaller to wrappublic T marshal(S object)
marshal
in interface ToMarshaller<S,T>
object
- Object to transform, not nullpublic S unmarshal(T inputString)
unmarshal
in interface FromUnmarshaller<S,T>
inputString
- Object to transform, not nullpublic Class<S> getBoundClass()
getBoundClass
in interface FromUnmarshaller<S,T>
getBoundClass
in interface ToMarshaller<S,T>
public Class<T> getTargetClass()
getTargetClass
in interface FromUnmarshaller<S,T>
getTargetClass
in interface ToMarshaller<S,T>
Copyright © 2010–2018 Jadira Systems. All rights reserved.