S
- Source type for the conversionT
- Target typepublic class CompositeBinding<S,T> extends Object implements Binding<S,T>
Constructor and Description |
---|
CompositeBinding(ToMarshaller<S,T> marshal,
FromUnmarshaller<S,T> unmarshal)
|
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 CompositeBinding(ToMarshaller<S,T> marshal, FromUnmarshaller<S,T> unmarshal)
marshal
- The ToMarshaller to wrapunmarshal
- The FromUnmarshaller 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.