S
- Source type for the conversionT
- Target typepublic class InverseCompositeBinding<S,T> extends Object implements Binding<S,T>
Constructor and Description |
---|
InverseCompositeBinding(Binding<T,S> binding)
Create a binding that reverses the interpretation of the supplied binding
|
InverseCompositeBinding(ToMarshaller<T,S> marshal,
FromUnmarshaller<T,S> unmarshal)
Create a binding that reverses the interpretation of the supplied Marshaller and Unmarshaller
|
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 input)
Converts from the given String into the specified object
|
public InverseCompositeBinding(Binding<T,S> binding)
binding
- The binding to reversepublic InverseCompositeBinding(ToMarshaller<T,S> marshal, FromUnmarshaller<T,S> unmarshal)
marshal
- The Marshaller to be interpreted as an Unmarshallerunmarshal
- The Unmarshaller to be interpreted as an Marshallerpublic T marshal(S object)
marshal
in interface ToMarshaller<S,T>
object
- Object to transform, not nullpublic S unmarshal(T input)
unmarshal
in interface FromUnmarshaller<S,T>
input
- 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.