net.sf.doolin.util
Class ReadOnlyAdapter<S,T>

java.lang.Object
  extended by net.sf.doolin.util.ReadOnlyAdapter<S,T>
Type Parameters:
S - Subject type
T - Target type
All Implemented Interfaces:
Adapter<S,T>
Direct Known Subclasses:
ReadOnlyNotNullBooleanAdapter, ReadOnlyStringAdapter

public abstract class ReadOnlyAdapter<S,T>
extends Object
implements Adapter<S,T>

Adapter where the update of the subject is deactivated.

Author:
Damien Coraboeuf

Constructor Summary
ReadOnlyAdapter()
           
 
Method Summary
 S convertTargetToSubject(T targetValue)
          Logs a warning and returns null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.doolin.util.Adapter
convertSubjectToTarget
 

Constructor Detail

ReadOnlyAdapter

public ReadOnlyAdapter()
Method Detail

convertTargetToSubject

public final S convertTargetToSubject(T targetValue)
Logs a warning and returns null.

Specified by:
convertTargetToSubject in interface Adapter<S,T>
Parameters:
targetValue - Target value
Returns:
Subject value


Copyright © 2011. All Rights Reserved.