net.sf.japaki.beans
Class ValuePropertyTransformer<B,S,T>

java.lang.Object
  extended by net.sf.japaki.beans.ValuePropertyTransformer<B,S,T>
All Implemented Interfaces:
TwoWayTransformer<Property<B,S>,Property<B,T>>

public class ValuePropertyTransformer<B,S,T>
extends Object
implements TwoWayTransformer<Property<B,S>,Property<B,T>>

Property transformer based on a transformer for the values.


Constructor Summary
ValuePropertyTransformer(TwoWayTransformer<S,T> transformer)
          Constructs a value property transformer from the given arguments.
 
Method Summary
 boolean isRetrievable(Property<B,T> input)
          Returns false.
 Property<B,S> retransform(Property<B,T> input)
          Not implemented.
 Property<B,T> transform(Property<B,S> input)
          Creates a property from the underlying transformer and the specified base property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValuePropertyTransformer

public ValuePropertyTransformer(TwoWayTransformer<S,T> transformer)
Constructs a value property transformer from the given arguments.

Method Detail

transform

public Property<B,T> transform(Property<B,S> input)
Creates a property from the underlying transformer and the specified base property.

Specified by:
transform in interface TwoWayTransformer<Property<B,S>,Property<B,T>>
Parameters:
input - a property
Returns:
the created property or null, if the input is null

retransform

public Property<B,S> retransform(Property<B,T> input)
Not implemented.

Specified by:
retransform in interface TwoWayTransformer<Property<B,S>,Property<B,T>>
Parameters:
input - the object for which the transformation origin is searched.
Returns:
the transformation origin of the specified object.
Throws:
UnsupportedOperationException - always

isRetrievable

public boolean isRetrievable(Property<B,T> input)
Returns false.

Specified by:
isRetrievable in interface TwoWayTransformer<Property<B,S>,Property<B,T>>
Parameters:
input - the object for which the transformation origin is searched.
Returns:
always false