com.kiwisoft.utils.format
Interface BooleanFormat

All Superinterfaces:
ObjectFormat

public interface BooleanFormat
extends ObjectFormat

Interface class for displaying objects in UI text components like table cells, lists, labels and text fields.

Version:
$Revision: 1.3 $, $Date: 2005/08/10 18:55:15 $
Author:
Stefan Stiller

Field Summary
 
Fields inherited from interface com.kiwisoft.utils.format.ObjectFormat
DEFAULT
 
Method Summary
 Boolean format(Object value)
          Returns the String representing the specified value.
 Object parse(Boolean value, Class targetClass)
          Returns the Object created from the specified String.
 
Methods inherited from interface com.kiwisoft.utils.format.ObjectFormat
canFormat, canParse, getGroup, getName
 

Method Detail

format

public Boolean format(Object value)
Returns the String representing the specified value.

Parameters:
value - The object which should be formated.
Returns:
The string representing the specified object.
See Also:
ObjectFormat.canFormat(Class)

parse

public Object parse(Boolean value,
                    Class targetClass)
Returns the Object created from the specified String. The method may throw an RuntimeException if the String is invalid.

Parameters:
value - The String which should be parsed.
targetClass - The Class the return value should have. Can be ignored if the format handles only one class.
Returns:
The Object created from the String.
See Also:
ObjectFormat.canParse(Class)