com.cc.framework.convert.imp
Class DateConverter

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

public class DateConverter
extends java.lang.Object
implements Converter

Converter for datatype Date

Version:
$Revision$
Author:
Harald Schulz

Constructor Summary
DateConverter()
           
 
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
private  java.util.Locale getLocale(RequestContext context)
          Retrieves the Locale for this Converter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateConverter

public DateConverter()
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)

getLocale

private java.util.Locale getLocale(RequestContext context)
Retrieves the Locale for this Converter

Parameters:
context - The RequestContext
Returns:
Locale


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