org.swixml.converters
Class ComponentConverter
java.lang.Object
org.swixml.converters.ComponentConverter
- Converter
public class ComponentConverter
extends java.lang.Object
The ComponentConverter class defines a dummy converter
It's simply here to allow the registration of setter-methods excepting Components
static Class | TEMPLATE - converter's return type
|
static Component | conv(Attribute attr) - Convert the value of the given
Attribute object into an output object of the
specified type.
|
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
|
TEMPLATE
public static final Class TEMPLATE
converter's return type
conv
public static Component conv(Attribute attr)
throws Exception
Convert the value of the given Attribute
object into an output object of the
specified type.
attr
- Attribute
the attribute, providing the value to be converted.
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.
- convert in interface Converter
type
- Class
Data type to which the Attribute's value should be convertedattr
- 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
- convertsTo in interface Converter
Class
- the Class the converter is returning when its convert method is called
Copyright B) 2002 - 2005 - Wolf Paulus - CarlsbadCubes.com . All rights reserved.