com.flexive.shared.value.mapper
Class VoidInputMapper

java.lang.Object
  extended by com.flexive.shared.value.mapper.InputMapper<FxValue,FxVoid>
      extended by com.flexive.shared.value.mapper.VoidInputMapper

public final class VoidInputMapper
extends InputMapper<FxValue,FxVoid>

An input mapper that maps any FxValue to FxVoid, meaning that no input element or output will be generated.

Version:
$Rev: 590 $
Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Constructor Summary
VoidInputMapper()
           
 
Method Summary
protected  FxValue doDecode(FxVoid value)
          Decode the mapped type.
protected  FxVoid doEncode(FxValue value)
          Map the given value to the destination FxValue type.
static VoidInputMapper getInstance()
          Return the singleton instance of the void input mapper.
 
Methods inherited from class com.flexive.shared.value.mapper.InputMapper
buildAutocompleteHandler, decode, encode, getAutocompleteHandler, getAvailableValueComparators, getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoidInputMapper

public VoidInputMapper()
Method Detail

doEncode

protected FxVoid doEncode(FxValue value)
Map the given value to the destination FxValue type. The resulting object will be used for rendering the input element for the given value.

Specified by:
doEncode in class InputMapper<FxValue,FxVoid>
Parameters:
value - the value to be mapped
Returns:
the mapped type

doDecode

protected FxValue doDecode(FxVoid value)
Decode the mapped type. Called after the mapped type has been updated in the user form.

Specified by:
doDecode in class InputMapper<FxValue,FxVoid>
Parameters:
value - the mapped value type, possibly modified by the user
Returns:
the corresponding base type

getInstance

public static VoidInputMapper getInstance()
Return the singleton instance of the void input mapper.

Returns:
the singleton instance of the void input mapper.