org.swixml.converters

Class StringConverter

Implemented Interfaces:
Converter

public class StringConverter
extends java.lang.Object
implements Converter

The StringConverter class defines / describes
Version:
$Revision: 1.1 $
Author:
Wolf Paulus

Field Summary

static Class
TEMPLATE
converter's return type

Method Summary

Object
convert(Class type, Attribute attr, Localizer localizer)
Convert the value of the given Attribute object into an output object of the specified type.
Class
convertsTo()
A Converters conversTo method informs about the Class type the converter is returning when its convert method is called

Field Details

TEMPLATE

public static final Class TEMPLATE
converter's return type

Method Details

convert

public Object convert(Class type,
                      Attribute attr,
                      Localizer localizer)
            throws Exception
Convert the value of the given Attribute object into an output object of the specified type.
Specified by:
convert in interface Converter
Parameters:
type - Class Data type to which the Attribute's value should be converted
attr - Attribute the attribute, providing the value to be converted.

convertsTo

public Class convertsTo()
A Converters conversTo method informs about the Class type the converter is returning when its convert method is called
Specified by:
convertsTo in interface Converter
Returns:
Class - the Class the converter is returning when its convert method is called

Copyright B) 2002 - 2005 - Wolf Paulus - CarlsbadCubes.com . All rights reserved.