org.filteredpush.mapper.converter
Class BooleanConverter

java.lang.Object
  extended by org.filteredpush.mapper.converter.BooleanConverter
All Implemented Interfaces:
Converter

public class BooleanConverter
extends java.lang.Object
implements Converter

Converter to handle the boolean value.

Author:
Lei Dou $Id: $

Constructor Summary
BooleanConverter()
           
 
Method Summary
 java.lang.Object getAsObject(java.lang.String value)
          Convert data from the webUI to the format accepted by the driver.
 java.lang.String getAsString(java.lang.Object value)
          Convert data from the driver to the format accepted by the webUI.
 void setConfig(java.util.Map<java.lang.String,java.lang.String> conf)
          Configure this converter, e.g.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanConverter

public BooleanConverter()
Method Detail

getAsObject

public java.lang.Object getAsObject(java.lang.String value)
                             throws ConverterException
Description copied from interface: Converter
Convert data from the webUI to the format accepted by the driver.

Specified by:
getAsObject in interface Converter
Parameters:
value - Input value from the webUI.
Returns:
Value in the format that will be accepted by the driver
Throws:
ConverterException

getAsString

public java.lang.String getAsString(java.lang.Object value)
                             throws ConverterException
Description copied from interface: Converter
Convert data from the driver to the format accepted by the webUI.

Specified by:
getAsString in interface Converter
Parameters:
value - Object returned from driver.
Returns:
String value in the format that will be accepted by the webUI
Throws:
ConverterException

setConfig

public void setConfig(java.util.Map<java.lang.String,java.lang.String> conf)
Description copied from interface: Converter
Configure this converter, e.g. the format accepted by driver or webUI.

Specified by:
setConfig in interface Converter
Parameters:
conf - Configuration in map.