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

## org.swixml.converters
Class DimensionConverter

    java.lang.Object
      org.swixml.converters.DimensionConverter

All Implemented Interfaces:
  Converter

    public final class DimensionConverter

extends Object
implements Converter

A Converter that turns a Strings in the form: width,height into Dimension objects.

### Examples for Valid XML attribute notations:

     size="500,300"

Version:
  $Revision: 1.1 $
Author:
  Wolf Paulus
See Also:
  `Dimension`, `ConverterLibrary`

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

Constructor Summary
`DimensionConverter()`

Method Summary
`Object` | `convert(Class type, Attribute attr, Localizer localizer)` Converts a String into an Dimension object
`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

### DimensionConverter

    public DimensionConverter()

Method Detail

### convert

    public Object convert(Class type,
                          Attribute attr,
                          Localizer localizer)

  Converts a String into an Dimension object

  Specified by:
    `convert` in interface `Converter`
  Parameters:
    `type` - `Class` not used
    `attr` - `Attribute` value fields needs provides convertable String
  Returns:
    `Object` - runtime type is `Dimension`

### 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 2.0 beta 1 (#201)
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.