dsto.dfc.swing.text
Class NullValueConverter

java.lang.Object
  extended by dsto.dfc.swing.text.NullValueConverter
All Implemented Interfaces:
ValueConverter

public final class NullValueConverter
extends Object
implements ValueConverter

Simple value converter that does no conversion at all.

Version:
$Revision$

Field Summary
static ValueConverter INSTANCE
           
 
Method Summary
 Object convertTo(Object value, Class form)
          Convert a value to a given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ValueConverter INSTANCE
Method Detail

convertTo

public Object convertTo(Object value,
                        Class form)
                 throws IllegalFormatException
Description copied from interface: ValueConverter
Convert a value to a given class.

Specified by:
convertTo in interface ValueConverter
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