com.cc.framework.convert.imp
Class BooleanConverter

java.lang.Object
  extended bycom.cc.framework.convert.imp.BooleanConverter
All Implemented Interfaces:
Converter

public class BooleanConverter
extends java.lang.Object
implements Converter

Converter for the Data Type Boolean

Version:
$Revision$
Author:
Harald Schulz

Constructor Summary
BooleanConverter()
           
 
Method Summary
 java.lang.Object getAsObject(RequestContext ctx, java.lang.String newValue)
          Converts the given String value into the Converters Datatype
 java.lang.String getAsString(RequestContext ctx, java.lang.Object value)
          Converts the Object of the converters Datatype into it's String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanConverter

public BooleanConverter()
Method Detail

getAsObject

public java.lang.Object getAsObject(RequestContext ctx,
                                    java.lang.String newValue)
                             throws ConverterException
Description copied from interface: Converter
Converts the given String value into the Converters Datatype

Specified by:
getAsObject in interface Converter
Parameters:
ctx - Request Context
newValue - The String Value to convert
Returns:
Object of the Converters Datatype
Throws:
ConverterException - is thrown when a conversion error occurs
See Also:
Converter.getAsObject(com.cc.framework.adapter.RequestContext, java.lang.String)

getAsString

public java.lang.String getAsString(RequestContext ctx,
                                    java.lang.Object value)
                             throws ConverterException
Description copied from interface: Converter
Converts the Object of the converters Datatype into it's String representation

Specified by:
getAsString in interface Converter
Parameters:
ctx - Request Context
value - The Object to convert
Returns:
String
Throws:
ConverterException - is thrown when a conversion error occurs
See Also:
Converter.getAsString(com.cc.framework.adapter.RequestContext, java.lang.Object)


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.