dsto.dfc.swing.text
Interface ValueConverter
- All Known Implementing Classes:
- NullValueConverter, NumberConverter, PatternSelector.SelectAllSelector, Selector.SelectAllSelector
public interface ValueConverter
Defines a class that provides conversion services from one form to
another (eg from int to String).
- Version:
- $Revision$
convertTo
Object convertTo(Object value,
Class form)
throws IllegalFormatException
- Convert a value to a given class.
- Parameters:
value
- The value to convert.form
- The new class.
- Returns:
- A new instance of form containing the converted value.
- Throws:
IllegalFormatException
- if conversion was not possible.
Copyright © 2008 Commonwealth of Australia