Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| SWIXML 1.6 (#161)
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.swixml.converters
Class ComponentConverter

    java.lang.Object
      org.swixml.converters.ComponentConverter

All Implemented Interfaces:
  Converter

    public class ComponentConverter

extends Object
implements Converter

The ComponentConverter class defines a dummy converter It's simply here to allow the registration of setter-methods excepting Components

Version:
  $Revision: 1.1 $
Author:
  Wolf Paulus

Field Summary
`static Class` | `TEMPLATE` converter's return type

Constructor Summary
`ComponentConverter()`

Method Summary
`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

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### TEMPLATE

    public static final Class TEMPLATE

  converter's return type

Constructor Detail

### ComponentConverter

    public ComponentConverter()

Method Detail

### 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.

  Parameters:
    `attr` - `Attribute` the attribute, providing the value to be converted.
  Throws:
    `Exception`

### 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.
  Throws:
    `Exception`

### 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| SWIXML 1.6 (#161)
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 - 2011 - Wolf Paulus - wolfpaulus.com. All rights reserved.